A new release for the Asterisk PBX is available. Reproducible: Always Steps to Reproduce:
Asterisk is able to build with support for Speex, but it searches it on a non-Gentoo location /usr/include/speex.h or /usr/local/include/speex.h. If this is changed (I have done this with a patch) is codecs/Makefile Speex can be used too.
Trying on AMD64. Libpri and zaptel compile. format_mp3 error.. gcc -I/var/tmp/portage/asterisk-1.0.3/work/asterisk-1.0.3/include -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -O6 -m64 -shared -Xlinker -x -o format_mp3.so common.o dct64_i386.o decode_ntom.o layer3.o tabinit.o interface.o format_mp3.o /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: common.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC common.o: could not read symbols: Bad value collect2: ld returned 1 exit status make[1]: *** [format_mp3.so] Error 1 make[1]: Leaving directory `/var/tmp/portage/asterisk-1.0.3/work/asterisk-addons-1.0.1/format_mp3' make: *** [format_mp3/format_mp3.so] Error 2
fixed
You did not fix the speex path.
1.0.5 patches the makefile to check for /usr/include/speex.h (<=speex-1.0) and /usr/include/speex/speex.h (>=speex-1.1.0)