Upon emerging hexcurse the following error occurs: gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"hexcurse\" -DVERSION=\"1.55\" -DHAVE_LIBNCURSES=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DRETSIGTYPE=void -I. -I. -I../include -march=athlon-xp -O2 -fomit-frame-pointer -fweb -pipe -c `test -f acceptch.c || echo './'`acceptch.c getopt.c:40: error: conflicting types for 'alloca' getopt.c:40: error: conflicting types for 'alloca' make[1]: *** [getopt.o] Error 1 Reproducible: Always Steps to Reproduce:
The problem is caused by this code portion in getopt.c: -------------------- #ifdef _SGIAPI #include <alloca.h> #else char *alloca (); #endif ------------------- By simply removing the redefinition of alloca the problem is solved. I've attached a patch for this and an updated ebuild. I've tested the ebuild using gcc-3.4.1 and gcc-3.3.4
Created attachment 37090 [details] updated ebuild
Created attachment 37091 [details, diff] Patch to fix compiltion for gcc 3.4
awesome, thanks for the patch, added to cvs