delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/23/19:25:00

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
Message-ID: <000701c309ef$88a45290$78d96f83@pomello>
From: "Max Bowsher" <maxb AT ukf DOT net>
To: "BB" <canofspam AT att DOT net>, <cygwin AT cygwin DOT com>
References: <b8734q$7io$1 AT main DOT gmane DOT org> <01d301c309e6$3838a3f0$6dee86d9 AT ellixia> <b873mp$a97$1 AT main DOT gmane DOT org> <Law10-OE176z46lsEGR00004890 AT hotmail DOT com> <b8762k$ka2$1 AT main DOT gmane DOT org>
Subject: [PATCH] Re: cygrunsrv build error
Date: Thu, 24 Apr 2003 00:24:48 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

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/

- Raw text -


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