python API build error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm trying to build the python stuff of pjproject 1.8.10. The apps are
build fine, but building the python API fails

> $ make
> python setup.py build
> running build
> running build_py
> creating build
> creating build/lib.linux-x86_64-2.7
> copying pjsua.py -> build/lib.linux-x86_64-2.7
> running build_ext
> building '_pjsua' extension
> creating build/temp.linux-x86_64-2.7
> gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPJ_AUTOCONF=1 -Imake[1]: Entering directory `/home/jh/build/pjproject/pjproject-1.8.10/pjsip-apps/src/python' -I/home/jh/build/pjproject/pjproject-1.8.10/pjlib/include -I/home/jh/build/pjproject/pjproject-1.8.10/pjlib-util/include -I/home/jh/build/pjproject/pjproject-1.8.10/pjnath/include -I/home/jh/build/pjproject/pjproject-1.8.10/pjmedia/include -I/home/jh/build/pjproject/pjproject-1.8.10/pjsip/include -Imake[1]: Leaving directory `/home/jh/build/pjproject/pjproject-1.8.10/pjsip-apps/src/python' -I/usr/include/python2.7 -c _pjsua.c -o build/temp.linux-x86_64-2.7/_pjsua.o
> warning: no library file corresponding to 'make[1]: Entering directory `/home/jh/build/pjproject/pjproject-1.8.10/pjsip-apps/src/python'' found (skipping)
> warning: no library file corresponding to 'make[1]: Leaving directory `/home/jh/build/pjproject/pjproject-1.8.10/pjsip-apps/src/python'' found (skipping)
> gcc -pthread -shared build/temp.linux-x86_64-2.7/_pjsua.o -Lmake[1]: Entering directory `/home/jh/build/pjproject/pjproject-1.8.10/pjsip-apps/src/python' -L/home/jh/build/pjproject/pjproject-1.8.10/pjlib/lib -L/home/jh/build/pjproject/pjproject-1.8.10/pjlib-util/lib -L/home/jh/build/pjproject/pjproject-1.8.10/pjnath/lib -L/home/jh/build/pjproject/pjproject-1.8.10/pjmedia/lib -L/home/jh/build/pjproject/pjproject-1.8.10/pjsip/lib -L/home/jh/build/pjproject/pjproject-1.8.10/third_party/lib -Lmake[1]: Leaving directory `/home/jh/build/pjproject/pjproject-1.8.10/pjsip-apps/src/python' -L/usr/lib64 -lpjsua-x86_64-unknown-linux-gnu -lpjsip-ua-x86_64-unknown-linux-gnu -lpjsip-simple-x86_64-unknown-linux-gnu -lpjsip-x86_64-unknown-linux-gnu -lpjmedia-codec-x86_64-unknown-linux-gnu -lpjmedia-x86_64-unknown-linux-gnu -lpjmedia-audiodev-x86_64-unknown-linux-gnu -lpjnath-x86_64-unknown-linux-gnu -lpjlib-util-x86_64-unknown-linux-gnu -lresample-x86_64-unknown-linux-gnu -lmilenage-x86_64-
unknown-linux-gnu -lsrtp-x86_64-unknown-linux-gnu -lgsmcodec-x86_64-unknown-linux-gnu -lspeex-x86_64-unknown-linux-gnu -lilbccodec-x86_64-unknown-linux-gnu -lg7221codec-x86_64-unknown-linux-gnu -lportaudio-x86_64-unknown-linux-gnu -lpj-x86_64-unknown-linux-gnu -lm -lnsl -lrt -lpthread -lasound -lcrypto -lssl -lpython2.7 -o build/lib.linux-x86_64-2.7/_pjsua.so
> /usr/bin/ld: /home/jh/build/pjproject/pjproject-1.8.10/pjsip/lib/libpjsua-x86_64-unknown-linux-gnu.a(pjsua_acc.o): relocation R_X86_64_32 against `pjsua_var' can not be used when making a shared object; recompile with -fPIC
> /home/jh/build/pjproject/pjproject-1.8.10/pjsip/lib/libpjsua-x86_64-unknown-linux-gnu.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> error: command 'gcc' failed with exit status 1
> make: *** [all] Error 1

This is Fedora 14 on a x86_64 machine with python-devel-2.7-8, gcc 4.5.1
and ld 2.20.51.0.7-6.fc14.

Can anybody help me solve this?


Regards,
J



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux