I'm getting following compile error on amd64: x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"amrnb\" -DPACKAGE_TARNAME=\"amrnb\" -DPACKAGE_VERSION=\"7.0.0.2\" "-DPACKAGE_STRING=\"amrnb 7.0.0.2\"" "-DPACKAGE_BUGREPORT=\"Stanislav Brabec <utx@penguin.cz>\"" -DPACKAGE=\"amrnb\" -DVERSION=\"7.0.0.2\" -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_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_FLOAT_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_FLOOR=1 -DHAVE_MEMSET=1 -DHAVE_SQRT=1 -DHAVE_STRTOL=1 -I. -I. -march=native -ggdb -O2 -pipe -MT sp_dec.lo -MD -MP -MF .deps/sp_dec.Tpo -c sp_dec.c -fPIC -DPIC -o .libs/sp_dec.o sp_dec.c: In function 'Speech_Decode_Frame_init': sp_dec.c:6118: warning: passing argument 1 of 'Speech_Decode_Frame_exit' from incompatible pointer type x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"amrnb\" -DPACKAGE_TARNAME=\"amrnb\" -DPACKAGE_VERSION=\"7.0.0.2\" "-DPACKAGE_STRING=\"amrnb 7.0.0.2\"" "-DPACKAGE_BUGREPORT=\"Stanislav Brabec <utx@penguin.cz>\"" -DPACKAGE=\"amrnb\" -DVERSION=\"7.0.0.2\" -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_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_FLOAT_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_FLOOR=1 -DHAVE_MEMSET=1 -DHAVE_SQRT=1 -DHAVE_STRTOL=1 -I. -I. -march=native -ggdb -O2 -pipe -MT sp_dec.lo -MD -MP -MF .deps/sp_dec.Tpo -c sp_dec.c -o sp_dec.o >/dev/null 2>&1 if /bin/sh ./libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"amrnb\" -DPACKAGE_TARNAME=\"amrnb\" -DPACKAGE_VERSION=\"7.0.0.2\" -DPACKAGE_STRING=\"amrnb\ 7.0.0.2\" -DPACKAGE_BUGREPORT=\"Stanislav\ Brabec\ \<utx@penguin.cz\>\" -DPACKAGE=\"amrnb\" -DVERSION=\"7.0.0.2\" -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_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_FLOAT_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_FLOOR=1 -DHAVE_MEMSET=1 -DHAVE_SQRT=1 -DHAVE_STRTOL=1 -I. -I. -march=native -ggdb -O2 -pipe -MT sp_enc.lo -MD -MP -MF ".deps/sp_enc.Tpo" -c -o sp_enc.lo sp_enc.c; \ then mv -f ".deps/sp_enc.Tpo" ".deps/sp_enc.Plo"; else rm -f ".deps/sp_enc.Tpo"; exit 1; fi x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"amrnb\" -DPACKAGE_TARNAME=\"amrnb\" -DPACKAGE_VERSION=\"7.0.0.2\" "-DPACKAGE_STRING=\"amrnb 7.0.0.2\"" "-DPACKAGE_BUGREPORT=\"Stanislav Brabec <utx@penguin.cz>\"" -DPACKAGE=\"amrnb\" -DVERSION=\"7.0.0.2\" -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_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_FLOAT_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_FLOOR=1 -DHAVE_MEMSET=1 -DHAVE_SQRT=1 -DHAVE_STRTOL=1 -I. -I. -march=native -ggdb -O2 -pipe -MT sp_enc.lo -MD -MP -MF .deps/sp_enc.Tpo -c sp_enc.c -fPIC -DPIC -o .libs/sp_enc.o sp_enc.c: In function 'VAD1cod_amr': sp_enc.c:10762: warning: passing argument 1 of 'vad' from incompatible pointer type sp_enc.c:10870: warning: passing argument 1 of 'vad_pitch_detection' from incompatible pointer type sp_enc.c: In function 'VAD2cod_amr': sp_enc.c:11103: warning: passing argument 1 of 'vad2' from incompatible pointer type sp_enc.c:11104: warning: passing argument 1 of 'vad2' from incompatible pointer type sp_enc.c:11173: error: dereferencing pointer to incomplete type sp_enc.c:11174: error: dereferencing pointer to incomplete type sp_enc.c:11209: warning: passing argument 1 of 'LTP_flag_update' from incompatible pointer type sp_enc.c: In function 'VADxSpeech_Encode_Frame_init': sp_enc.c:12062: warning: passing argument 1 of 'Speech_Encode_Frame_exit' from incompatible pointer type make: *** [sp_enc.lo] Error 1 Also, is -DPACKAGE_BUGREPORT="Stanislav Brabec <utx@penguin.cz>" ok?
It works for me with GCC 4.3 and 4.3.1 using ~amd64. In fact, I haven't even tried older compilers. loki_val said he had the problem once, and after upgrading the system the problem disappeared. So.. please, at least emerge --info and do some more digging if possible, and if you can still reproduce it.
Locale problem (et_EE). Works fine under LC_ALL=C. LC_ALL=et_EE emerge amrnb
+ 23 Sep 2008; Peter Alfredsen <loki_val@gentoo.org> amrnb-7.0.0.2.ebuild: + Fix bug 232636, not building with et_EE locale. +
You've set LC_ALL=C in the ebuild, but you don't export it. If LC_ALL was set already, this isn't a problem (it will stay exported, but with the value you set), but if I set LANG or LC_COLLATE, you don't override it. If you change "LC_ALL=C" to "export LC_ALL=C", it'll work.
Still happening. :)
+ 01 Mar 2009; Peter Alfredsen <loki_val@gentoo.org> amrnb-7.0.0.0.ebuild, + amrnb-7.0.0.2.ebuild: + Really fix bug 232636. export LC_ALL=C +