Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Type: multipart/mixed; boundary="----=_NextPart_000_E7BD5_01C2E7CD.FDE01BF0" X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: From: "Bruce Adams [TEPG Sunbury]" To: Subject: Post install smoke test (or "Oh no not again") Date: Tue, 11 Mar 2003 12:57:14 -0000 MIME-Version: 1.0 X-OriginalArrivalTime: 11 Mar 2003 12:59:00.0671 (UTC) FILETIME=[FC4864F0:01C2E7CD] ------=_NextPart_000_E7BD5_01C2E7CD.FDE01BF0 x-gfisavedcharset: Windows-1252 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi, I just did a fresh installation of gcc on another machine and had an "oh no not again" moment. Attempting to compile: int main(int argc,char** argv) { return 0; } //main Gives the output: gcc hello.o -o hello.exe -lstdc++ hello.o(.text+0x0):fake: multiple definition of `_mainCRTStartup' /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../crt0.o(.text+0x0): first defined he re hello.o(.text+0x40):fake: multiple definition of `___do_frame_init' /usr/lib/gcc-lib/i686-pc-cygwin/3.2/crtbegin.o(.text+0x0): first defined here hello.o(.text+0x70):fake: multiple definition of `___do_frame_fini' /usr/lib/gcc-lib/i686-pc-cygwin/3.2/crtbegin.o(.text+0x30): first defined here hello.o(.data+0x0): In function `main': /cygdrive/c/BruceA/code/typelist/hello.cpp:4: multiple definition of `___cygwin_ crt0_bp' /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../crt0.o(.data+0x0): first defined he re hello.o(.rdata+0x0): In function `main': /cygdrive/c/BruceA/code/typelist/hello.cpp:4: multiple definition of `___EH_FRAM E_BEGIN__' /usr/lib/gcc-lib/i686-pc-cygwin/3.2/crtbegin.o(.eh_frame+0x0): first defined her e collect2: ld returned 1 exit status make: *** [hello.exe] Error 1 I guess this means I have another corrupted installation. Which brings me to two questions. 1) what standard corrective actions can we suggest for "dodgey" installations 2) what would be the appropriate way to implement a post-install smoke test. I'd volunteer my services for 2 except that I doubt I have the time or the familiarity with setup to be much use in the near future. I'm likely to remain strictly a consumer for the immediate future. Anyway here is an attempt to partially answer my own questions 1) run cygcheck -c See enclosed output. This doesn't actually help me. Should I try re-installing from a different mirror? 2) Presumably raw bash would be preferable to tcl or perl. Dos is just sick. Personally I would like to use TCL because it is what I know best but it needs to be compatible with whatever's already being used as it probably ought to possible to install cygwin without TCL or perl. at end of gcc package installation - append gcc-smoke.sh to a list of post install smoke tests to run. At (current) end of post install have another bash script iterate over the scripts in smoketest.lst or whatever and dump the output into a detailed postinstall log. Each script can generate one line (or at least minimal) error reports that get displayed to the user at the very end a long with a bit of advice saying what to try to fix it before coming here. It would be good if we could associate each error with a separate piece of advice but maybe that's version 2. I can probably supply the smoke test itself, though my bash is a bit rusty but so probably can pretty much anyone on the list. Is the rest of it a 5 minute job? Regards, Bruce A. ============================================================================ Any opinions expressed in this e-mail are those of the individual and not necessarily those of Tyco Safety Products. Any prices for the supply of goods or services are only valid if supported by a formal written quotation. This e-mail and any files transmitted with it, including replies and forwarded copies (which may contain alterations) subsequently transmitted from Tyco Saftey Products are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivery to the intended recipient, be advised that you have received this e-mail in error and that any use is strictly prohibited. In this event, please notify us via e-mail at 'helpdesk DOT tepg AT tycoint DOT com' or telephone on 0121 255 6499 and then delete the e-mail and any copies of it. ============================================================================ ------=_NextPart_000_E7BD5_01C2E7CD.FDE01BF0 Content-Disposition: attachment; filename="cygcheck.txt" x-gfisavedcharset: Windows-1252 Content-Type: text/plain; name="cygcheck.txt"; name="cygcheck.txt" Content-Transfer-Encoding: 7bit Cygwin Package Information Package Version _update-info-dir 00150-1 ash 20020731-1 base-files 1.1-1 base-passwd 1.0-1 bash 2.05b-8 binutils 20030307-1 bzip2 1.0.2-2 crypt 1.0-1 cvs 1.11.0-1 cygrunsrv 0.95-1 cygutils 1.1.3-1 cygwin 1.3.20-1 cygwin-doc 1.3-2 diffutils 2.8.1-1 doxygen 1.2.18-1 ELFIO 1.0.0-1 enscript 1.6.3-3 expect 20030128-1 figlet 2.2-1 file 3.39-1 fileutils 4.1-1 findutils 4.1.7-4 gawk 3.1.1-5 gcc 3.2-3 gcc-mingw 20020817-5 gdb 20030303-1 gdbm 1.8.0-4 gnugo 3.2-1 grep 2.5-1 groff 1.18.1-2 gzip 1.3.3-4 less 378-1 libbz2_1 1.0.2-2 libcharset1 1.8-2 libiconv 1.8-2 libiconv2 1.8-2 libintl 0.10.38-3 libintl1 0.10.40-1 libintl2 0.11.5-1 libncurses5 5.2-1 libncurses6 5.2-8 libncurses7 5.3-1 libpng12 1.2.5-1 libpopt0 1.6.4-4 libreadline4 4.1-2 libreadline5 4.3-2 login 1.7-1 make 3.79.1-7 man 1.5j-2 mingw-runtime 2.4-1 mktemp 1.4-1 nasm 0.98.35-1 ncurses 5.2-8 newlib-man 20020801 openssl 0.9.7a-1 openssl096 0.9.6i-1 patch 2.5.8-3 pcre 3.7-1 perl 5.6.1-2 rcs 5.7-3 readline 4.3-2 regex 4.4-2 rsync 2.5.5-2 rxvt 2.7.9-4 sed 4.0.5-1 sh-utils 2.0.15-3 sharutils 4.2.1-2 tar 1.13.25-1 tcltk 20030214-1 tcsh 6.12.00-5 termcap 20020930-1 terminfo 5.3-1 texinfo 4.2-4 textutils 2.0.21-1 unzip 5.50-2 w32api 2.2-1 wget 1.8.2-2 which 1.5-1 zip 2.3-2 zlib 1.1.4-1 Use -h to see help about each section ------=_NextPart_000_E7BD5_01C2E7CD.FDE01BF0 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ------=_NextPart_000_E7BD5_01C2E7CD.FDE01BF0--