From owner-freebsd-ports@FreeBSD.ORG Mon Oct 31 11:44:17 2005 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A94B716A420 for ; Mon, 31 Oct 2005 11:44:17 +0000 (GMT) (envelope-from parv@pair.com) Received: from mta13.adelphia.net (mta13.adelphia.net [68.168.78.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DF6143D46 for ; Mon, 31 Oct 2005 11:44:16 +0000 (GMT) (envelope-from parv@pair.com) Received: from default.chvlva.adelphia.net ([69.160.76.67]) by mta13.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051031114416.TAWF23334.mta13.adelphia.net@default.chvlva.adelphia.net> for ; Mon, 31 Oct 2005 06:44:16 -0500 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id 3FD8CB587; Mon, 31 Oct 2005 06:44:28 -0500 (EST) Date: Mon, 31 Oct 2005 06:44:28 -0500 From: Parv To: ports@freebsd.org Message-ID: <20051031114428.GA30438@holestein.holy.cow> Mail-Followup-To: ports@freebsd.org References: <20051030084719.GP574@snoozy.vdgrift.org> <20051031012259.GA17712@holestein.holy.cow> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051030084719.GP574@snoozy.vdgrift.org> Cc: Subject: Re: Compile problem (syntax error) ports/x11-wm/fvwm2-devel X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Oct 2005 11:44:17 -0000 in message <20051030084719.GP574@snoozy.vdgrift.org>, wrote Bert van de Grift thusly... > > There seems to be a problem with ports/x11-wm/fvwm2-devel. > > Recently it is upgraded from 2.5.13_1 to 2.5.14_4 but when I try > to compile this new version I get the following error in > FvwmProxy.c: > > > cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/usr/local/include > -I/usr/X11R6/include -I/usr/local/include/freetype2 -I/usr/local/include > -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/local/include > -I/usr/X11R6/include -I/usr/local/include -Wall -Wno-implicit-int -O > -pipe -c FvwmProxy.c > FvwmProxy.c: In function `AdjustOneWindow': > FvwmProxy.c:728: syntax error before `int' > FvwmProxy.c:730: `dx' undeclared (first use in this function) > FvwmProxy.c:730: (Each undeclared identifier is reported only once > FvwmProxy.c:730: for each function it appears in.) > gmake[3]: *** [FvwmProxy.o] Error 1 Trying a shot in the dark based on that 4.11 has 2.9x gcc & 5.4 has 3.4 AND old C requirement that a variable must be declared before assignment (which may be total waste of time) ... Does the following compile on your 4.11 box ... #include int main() { int i; for (i = 0; i < 3 ; i++) { int q = i + 1; printf( "%d " , q); } return 0; } ... and if that fails but does this compile ... #include int main() { int i; for (i = 0; i < 3 ; i++) { int q; q = i + 1; printf( "%d " , q); } return 0; } ... try the command (assuming code is saved in a file called hogwash.c) ... cc -Wall -Wno-implicit-int -O -pipe -o hogwash hogwash.c \ && ./hogwash # [ws]hould print 1 2 3. - Parv --