Package: pcb Severity: normal Tags: patch When building 'pcb' on amd64 with gcc-4.0, I get the following error:
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./icons -DPCBLIBDIR=\"/usr/share/pcb\" -DPCBTREEDIR=\"/usr/share/pcb/newlib\" -DNDEBUG -g -O2 -Wall -I/usr/X11R6/include -MT djopt.o -MD -MP -MF ".deps/djopt.Tpo" -c -o djopt.o djopt.c; \ then mv -f ".deps/djopt.Tpo" ".deps/djopt.Po"; else rm -f ".deps/djopt.Tpo"; exit 1; fi djopt.c:280: error: static declaration of 'abs' follows non-static declaration make[5]: *** [djopt.o] Error 1 make[5]: Leaving directory `/pcb-1.99j+20050127/src' With the attached patch 'pcb' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/pcb-1.99j+20050127/src/djopt.c ./src/djopt.c --- ../tmp-orig/pcb-1.99j+20050127/src/djopt.c 2005-01-06 04:46:26.000000000 +0100 +++ ./src/djopt.c 2005-02-09 08:12:00.059565814 +0100 @@ -276,12 +276,6 @@ } static int -abs (int x) -{ - return x > 0 ? x : -x; -} - -static int max (int x, int y) { return x > y ? x : y; -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]