This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] cygrunsrv 0.95-1 doesn't compile from source OOTB

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 is specified twice (once in the prototype and once
  in the definition).  Exact output below:
	g++    -c -o utils.o In function `int error(reason_t, const char*, long unsigned int)': 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) undefined reference to `___gxx_personality_v0'
	crit.o(.eh_frame+0x11) undefined reference to `___gxx_personality_v0'
	utils.o(.eh_frame+0x11) 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.
2003-02-18  Igor Pechtchanski <>

	* (error) Fix function definition.
	* Makefile: Use correct linker in $(TARGET).exe rule.

      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,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

Attachment: cygrunsrv-compile.patch
Description: Text document

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]