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

Reply via email to