delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/18/15:59:32

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <pechtcha AT cs DOT nyu DOT edu>
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: <Pine.GSO.4.44.0302181504420.7773-200000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

---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 <pechtcha AT cs DOT nyu DOT edu>

	* 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: <Pine DOT GSO DOT 4 DOT 44 DOT 0302181515140 DOT 7773 AT slinky DOT cs DOT nyu DOT edu>
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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019