[asterisk-dev] Compiling trunk on AMD64

Max Tulyev maxtul at nline.ru
Fri Oct 19 05:52:10 CDT 2007


Hi All,

I'm trying to compile trunk branch asterisk-addons on AMD x86_64 Gentoo,
and get this error:

make[1]: Leaving directory `/home/maxtul/asterisk/trunk/trunk/menuselect'
make[1]: Entering directory `/home/maxtul/asterisk/trunk/trunk'
build_tools/mkdep -fPIC  -fPIC  chan_mobile.c
   [CC] chan_mobile.c -> chan_mobile.o
gcc -shared -Xlinker -x -fPIC -o chan_mobile.so chan_mobile.o -lbluetooth
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld:
chan_mobile.o: relocation R_X86_64_32 against `a local symbol' can not
be used when making a shared object; recompile with -fPIC
chan_mobile.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [chan_mobile.so] Error 1
make[1]: Leaving directory `/home/maxtul/asterisk/trunk/trunk'
make: *** [all] Error 2

I tried to add -fPIC everywhere, but it still fails. Google also gives
no result.

What's wrong?



More information about the asterisk-dev mailing list