Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232636 - media-libs/amrnb-7.0.0.2 fails to build with et_EE locale
Summary: media-libs/amrnb-7.0.0.2 fails to build with et_EE locale
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-22 10:11 UTC by Priit Laes (IRC: plaes)
Modified: 2009-03-01 14:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Priit Laes (IRC: plaes) 2008-07-22 10:11:49 UTC
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?
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2008-07-30 13:41:53 UTC
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.

Comment 2 Priit Laes (IRC: plaes) 2008-07-31 11:05:09 UTC
Locale problem (et_EE).
Works fine under LC_ALL=C.

LC_ALL=et_EE emerge amrnb
Comment 3 Peter Alfredsen (RETIRED) gentoo-dev 2008-09-23 22:51:21 UTC
+  23 Sep 2008; Peter Alfredsen <loki_val@gentoo.org> amrnb-7.0.0.2.ebuild:
+  Fix bug 232636, not building with et_EE locale.
+
Comment 4 Harald van Dijk (RETIRED) gentoo-dev 2009-01-24 09:19:46 UTC
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.
Comment 5 Priit Laes (IRC: plaes) 2009-03-01 13:31:07 UTC
Still happening. :)
Comment 6 Peter Alfredsen (RETIRED) gentoo-dev 2009-03-01 14:06:27 UTC
+  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
+