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] Re: cygrunsrv build error


BB wrote:
> As I stated in my initial post, I downloaded the cygrunsrv code using
> cvs -d :pserver:anoncvs at sources dot redhat dot com:/cvs/cygwin-apps co cygrunsrv
> Then I ran make in the cygrunsrv directory which by default uses the
> Makefile
> downloaed by the cvs command.
>
> I get the error [undefined reference to `___gxx_personality_v0']
> When I use cygrunsrv's Makefile, gcc is called for the link step.
> When I manually run "g++ -o cygrunsrv.exe -s cygrunsrv.o crit.o utils.o"
> instead of gcc.., it works. I'm assuming that because this is the
> code in cvs it must be working for others.  I'm just trying to get
> it working for me.

Not necessarily a good assumption.

I submit the following patch to fix cygrunsrv:

2003-04-24  Max Bowsher  <maxb at ukf dot net>

* Makefile: Use $(CXX) to link, not $(CC)
* utils.cc (error): Don't re-specify default parameter in definition
 (gcc3 doesn't like that).

Index: Makefile
===================================================================
RCS file: /home/max/cvsmirror/cygwin-apps-cvs/cygrunsrv/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- Makefile 23 May 2001 09:06:15 -0000 1.2
+++ Makefile 23 Apr 2003 23:18:27 -0000
@@ -18,7 +18,7 @@ OBJ= cygrunsrv.o \
  utils.o

 $(TARGET).exe: $(OBJ)
- $(CC) -o $@ $(LDFLAGS) $(OBJ)
+ $(CXX) -o $@ $(LDFLAGS) $(OBJ)

 install: $(TARGET).exe
  mkdir -p $(bindir) $(docdir)
Index: utils.cc
===================================================================
RCS file: /home/max/cvsmirror/cygwin-apps-cvs/cygrunsrv/utils.cc,v
retrieving revision 1.9
diff -u -p -r1.9 utils.cc
--- utils.cc 11 Mar 2002 11:56:42 -0000 1.9
+++ utils.cc 23 Apr 2003 23:17:55 -0000
@@ -72,7 +72,7 @@ char *reason_list[] = {
 };

 int
-error (reason_t reason, const char *func = NULL, DWORD win_err)
+error (reason_t reason, const char *func, DWORD win_err)
 {
   if (reason > UnrecognizedOption && reason < MaxReason)
     {


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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]