Mostafa Hagog <[EMAIL PROTECTED]> writes: | I guess its due to the following patch ( | http://gcc.gnu.org/ml/gcc-cvs/2005-03/msg01320.html). | I get the following error when trying to build gcc on powerpc-apple-darwin: | gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../gcc/libiberty/../include -W | -Wall -Wtraditional -pedantic ../../../gcc/libiberty/getopt1.c -o getopt1.o | ../../../gcc/libiberty/getopt1.c: In function `getopt_long': | ../../../gcc/libiberty/getopt1.c:71: warning: traditional C rejects ISO C | style function definitions | ../../../gcc/libiberty/getopt1.c: At top level: | ../../../gcc/libiberty/getopt1.c:83: error: conflicting types for | 'getopt_long_only' | ../../../gcc/libiberty/../include/getopt.h:125: error: previous declaration | of 'getopt_long_only' was here | ../../../gcc/libiberty/getopt1.c: In function `getopt_long_only': | ../../../gcc/libiberty/getopt1.c:83: warning: traditional C rejects ISO C | style function definitions | ../../../gcc/libiberty/getopt1.c:84: warning: passing arg 3 of | `_getopt_internal' from incompatible pointer type | make[1]: *** [getopt1.o] Error 1 | make: *** [all-build-libiberty] Error 2
Fixed with this http://gcc.gnu.org/ml/gcc-patches/2005-03/msg02450.html Please try again and let me know. -- Gaby