Error compiling python pjsua in 64bit Linux

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

 



It doesn't compile on 1.0.1 nor 1.3 :(


On Friday, July 10, 2009, Sa?l Ibarra <saghul at gmail.com> wrote:
> Hi,
>
> I just downloaded new pjsip 1.0.x release (1.0.3) and it compiled OK
> in my 32 bit Debian, but it doesn't compile on 64bit. I'm geting the
> following error when trying to compile python bindings:
>
> saghul at hal:/tmp/pjsip/pjproject-1.0.3/pjsip-apps/src/python$ python
> setup.py install --record=lala.log
> 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 -g -fwrapv -O2 -Wall
> -Wstrict-prototypes -fPIC -DPJ_AUTOCONF=1
> -I/tmp/pjsip/pjproject-1.0.3/pjlib/include
> -I/tmp/pjsip/pjproject-1.0.3/pjlib-util/include
> -I/tmp/pjsip/pjproject-1.0.3/pjnath/include
> -I/tmp/pjsip/pjproject-1.0.3/pjmedia/include
> -I/tmp/pjsip/pjproject-1.0.3/pjsip/include -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?:
> _pjsua.c:2154: warning: cast to pointer from integer of different size
> _pjsua.c: In function ?py_pjsua_call_send_im?:
> _pjsua.c:3681: warning: cast to pointer from integer of different size
> gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
> build/temp.linux-x86_64-2.5/_pjsua.o
> -L/tmp/pjsip/pjproject-1.0.3/pjlib/lib
> -L/tmp/pjsip/pjproject-1.0.3/pjlib-util/lib
> -L/tmp/pjsip/pjproject-1.0.3/pjnath/lib
> -L/tmp/pjsip/pjproject-1.0.3/pjmedia/lib
> -L/tmp/pjsip/pjproject-1.0.3/pjsip/lib
> -L/tmp/pjsip/pjproject-1.0.3/third_party/lib
> -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 -lasound -lssl -lcrypto -o
> build/lib.linux-x86_64-2.5/_pjsua.so
> /usr/bin/ld: /tmp/pjsip/pjproject-1.0.3/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
> /tmp/pjsip/pjproject-1.0.3/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
>
>
> Any ideas? Thanks in advance!
>
> --
> Sa?l -- "Nunca subestimes el ancho de banda de un cami?n lleno de disketes."
> ----------------------------------------------------------------
> http://www.saghul.net/
>

-- 
Sa?l -- "Nunca subestimes el ancho de banda de un cami?n lleno de disketes."
----------------------------------------------------------------
http://www.saghul.net/



[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