Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: "BB" , References: <01d301c309e6$3838a3f0$6dee86d9 AT ellixia> Subject: [PATCH] Re: cygrunsrv build error Date: Thu, 24 Apr 2003 00:24:48 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit 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 * 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/