I try to use PJSUA Python Module and appeared the error below:

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

 



Hello,
I try to use PJSUA Python Module (Site: http://trac.pjsip.org/repos/wiki/Python_SIP_Tutorial), and appeared the error below:

caribe at linux-rajs:~/trunk/pjsip-apps/src/python> sudo make
python setup.py install
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.5
copying pjsua.py -> build/lib.linux-x86_64-2.5
running build_ext
building '_pjsua' extension
creating build/temp.linux-x86_64-2.5
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -g -fwrapv -fPIC -DPJ_AUTOCONF=1 -Imake[1]:Entering directory `/home/caribe/trunk/pjsip-apps/src/python' -I/home/caribe/trunk/pjlib/include -I/home/caribe/trunk/pjlib-util/include -I/home/caribe/trunk/pjnath/include -I/home/caribe/trunk/pjmedia/include -I/home/caribe/trunk/pjsip/include -Imake[1]: Leaving directory `/home/caribe/trunk/pjsip-apps/src/python' -I/usr/include/python2.5 -c _pjsua.c -o build/temp.linux-x86_64-2.5/_pjsua.o
_pjsua.c: In function ??~py_pjsua_im_send??TM:
_pjsua.c:2151: warning: cast to pointer from integer of different size
_pjsua.c: In function ??~py_pjsua_call_send_im??TM:
_pjsua.c:3676: warning: cast to pointer from integer of different size
warning: no library file corresponding to 'make[1]: Entering directory `/home/caribe/trunk/pjsip-apps/src/python'' found (skipping)
warning: no library file corresponding to 'make[1]: Leaving directory `/home/caribe/trunk/pjsip-apps/src/python'' found (skipping)
gcc -pthread -shared build/temp.linux-x86_64-2.5/_pjsua.o -Lmake[1]: Entering directory `/home/caribe/trunk/pjsip-apps/src/python' -L/home/caribe/trunk/pjlib/lib -L/home/caribe/trunk/pjlib-util/lib -L/home/caribe/trunk/pjnath/lib -L/home/caribe/trunk/pjmedia/lib -L/home/caribe/trunk/pjsip/lib -L/home/caribe/trunk/third_party/lib -Lmake[1]: Leaving directory `/home/caribe/trunk/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 -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 -lportaudio-x86_64-unknown-linux-gnu -lpj-x86_64-unknown-linux-gnu -lm -lnsl -lrt -lpthread -lpython2.5 -o build/lib.linux-x86_64-2.5/_pjsua.so
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: /home/caribe/trunk/pjsip/lib/libpjsua-x86_64-unknown-linux-gnu.a(pjsua_acc.o):relocation R_X86_64_32S against `pjsua_var' can not be used when making a shared object; recompile with -fPIC
/home/caribe/trunk/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
caribe at linux-rajs:~/trunk/pjsip-apps/src/python>

Does someone have any idea?

Thanks in advance,
Edson 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080823/a0055d70/attachment.html 


[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