This is the mail archive of the cygwin@cygwin.com 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


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@cs.nyu.edu>

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

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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

Attachment: cygrunsrv-compile.patch
Description: Text document

--
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/

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