[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gEDA: pcb-20050127: build error using OS X 10.4 gcc4
- To: geda-dev-at-NOSPAMseul_dot_org
- Subject: gEDA: pcb-20050127: build error using OS X 10.4 gcc4
- From: Charles Lepple <clepple-at-NOSPAMgmail_dot_com>
- Date: Sat, 14 May 2005 11:17:18 -0400
- Delivery-Date: Sat, 14 May 2005 11:17:11 -0400
- DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=pMMSbSUbLcHc7DhXCuONdTWPE7nKDYZtCyfq1sDMOKGQOXY2y7hy/UGPSyT6tsNw+mxOdsXOothHKgrxNwTUsg+8iFeKyXhDSET6yrSOWW3Bffk422qztv+HBlUBIeXbeJfeUBrocvrNKin5g6delcHL0oqi3kyoJli/UrCsjyM=
- Reply-To: geda-dev-at-NOSPAMseul_dot_org
- Sender: owner-geda-dev-at-NOSPAMseul_dot_org
I do not have a copy of 10.4 ("Tiger") to test this, but I have been
told that pcb-20050127 does not build with Apple's GCC (apparently
from the GCC team's v4.0 branch).
Here's the build log:
http://fink.opendarwin.org/build/2005-05-08/logs/pcb.log
Apparently, the compiler is more strict about these sorts of errors:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./icons
-I/Volumes/SandBox/fink/sw/include
-DPCBLIBDIR=\"/Volumes/SandBox/fink/sw/share/pcb\"
-DPCBTREEDIR=\"/Volumes/SandBox/fink/sw/share/pcb/newlib\" -DNDEBUG -g
-O2 -Wall -I/usr/X11R6/include -c djopt.c
djopt.c:280: error: static declaration of 'abs' follows non-static declaration
... because 10.3 (using GCC 3.3) doesn't mind having the static
declaration overriding the stdlib version of abs.
If anyone has GCC 4 (or any other version of GCC that trips over this)
and a working knowledge of autoconf, it would be great if you could
figure out how to detect the stdlib version (AC_CHECK_FUNCS?) and put
the necessary #ifdef wrapper around the definition in djopt.c.
Thanks,
--
- Charles Lepple