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 X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Tue, 18 Feb 2003 15:15:14 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: [PATCH] cygrunsrv 0.95-1 doesn't compile from source OOTB Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-1307206911-1045599314=:7773" ---559023410-1307206911-1045599314=:7773 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi, There seem to be two problems compiling cygrunsrv from source with gcc 3.2: - gcc now complains that the default argument for the func parameter of error() in utils.cc is specified twice (once in the prototype and once in the definition). Exact output below: g++ -c -o utils.o utils.cc utils.cc: In function `int error(reason_t, const char*, long unsigned int)': utils.cc:75: default argument given for parameter 2 of `int error(reason_t, const char* = 0, long unsigned int)' utils.h:65: after previous specification in `int error(reason_t, const char* = 0, long unsigned int = 0)' make: *** [utils.o] Error 1 - Makefile uses gcc to link, which results in an "undefined symbol: ___gxx_personality_v0" errors. Exact output below: gcc -o cygrunsrv.exe -s cygrunsrv.o crit.o utils.o cygrunsrv.o(.eh_frame+0x11):cygrunsrv.cc: undefined reference to `___gxx_personality_v0' crit.o(.eh_frame+0x11):crit.cc: undefined reference to `___gxx_personality_v0' utils.o(.eh_frame+0x11):utils.cc: undefined reference to `___gxx_personality_v0' collect2: ld returned 1 exit status make: *** [cygrunsrv.exe] Error 1 The attached patch fixes both of the above issues. Igor =========================================================================== ChangeLog: 2003-02-18 Igor Pechtchanski * utils.cc: (error) Fix function definition. * Makefile: Use correct linker in $(TARGET).exe rule. -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk! -- /usr/games/fortune ---559023410-1307206911-1045599314=:7773 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="cygrunsrv-compile.patch" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename="cygrunsrv-compile.patch" LS0tIC4vTWFrZWZpbGUtb3JpZwkyMDAxLTA1LTIzIDA1OjA2OjE1LjAwMDAw MDAwMCAtMDQwMA0KKysrIC4vTWFrZWZpbGUJMjAwMy0wMi0xOCAxNDo1NTox OC4wMDAwMDAwMDAgLTA1MDANCkBAIC0xOCw3ICsxOCw3IEBAIE9CSj0JY3ln cnVuc3J2Lm8gXA0KIAl1dGlscy5vDQogDQogJChUQVJHRVQpLmV4ZTogJChP QkopDQotCSQoQ0MpIC1vICRAICQoTERGTEFHUykgJChPQkopDQorCSQoQ1hY KSAtbyAkQCAkKExERkxBR1MpICQoT0JKKQ0KIA0KIGluc3RhbGw6ICQoVEFS R0VUKS5leGUNCiAJbWtkaXIgLXAgJChiaW5kaXIpICQoZG9jZGlyKQ0KLS0t IC4vdXRpbHMuY2Mtb3JpZwkyMDAyLTAyLTI2IDA2OjIyOjI5LjAwMDAwMDAw MCAtMDUwMA0KKysrIC4vdXRpbHMuY2MJMjAwMy0wMi0xOCAxNDo1MjoxMy4w MDAwMDAwMDAgLTA1MDANCkBAIC03MSw3ICs3MSw3IEBAIGNoYXIgKnJlYXNv bl9saXN0W10gPSB7DQogfTsNCiANCiBpbnQNCi1lcnJvciAocmVhc29uX3Qg cmVhc29uLCBjb25zdCBjaGFyICpmdW5jID0gTlVMTCwgRFdPUkQgd2luX2Vy cikNCitlcnJvciAocmVhc29uX3QgcmVhc29uLCBjb25zdCBjaGFyICpmdW5j LCBEV09SRCB3aW5fZXJyKQ0KIHsNCiAgIGlmIChyZWFzb24gPiBVbnJlY29n bml6ZWRPcHRpb24gJiYgcmVhc29uIDwgTWF4UmVhc29uKQ0KICAgICB7DQo= ---559023410-1307206911-1045599314=:7773 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/ ---559023410-1307206911-1045599314=:7773--