py_pjsua build question

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

 



Thanks!

That fixed my problem.

Dan


-----Original Message-----
From: Benny Prijono <bennylp@xxxxxxxxx>
Reply-To: pjsip embedded/DSP SIP discussion <pjsip at lists.pjsip.org>
To: pjsip embedded/DSP SIP discussion <pjsip at lists.pjsip.org>
Subject: Re: py_pjsua build question
Date: Tue, 20 Nov 2007 02:54:16 +0000

the libraries are not compiled with -fPIC by default (not sure if 
they probably should). But you can always add your own CFLAGS 
customization, either by putting it in user.mak in the PJ root 
directory, something like:

   export CFLAGS += -Wno-unused-label -fPIC
   #export LDFLAGS +=

or specifying the full base CFLAGS in ./configure:

   ./configure CFLAGS='-O2 -fPIC'

cheers,
  -benny

Daniel Mikusa wrote:
> I've pulled down the latest version from svn, and the
> normal ./configure, make procedure works fine.  
> 
> When I try to build the python module, I get this error.
> 
> /usr/bin/ld: /home/daniel/Code/pjproject-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
> 
> System is 64 bit Ubuntu 7.10.
> 
> Full make output below...
> 
> python setup.py install
> running install
> running build
> running build_ext
> building 'py_pjsua' extension
> warning: no library file corresponding to 'make[1]: Entering directory
> `/home/daniel/Code/pjproject-trunk/pjsip-apps/src/py_pjsua'' found
> (skipping)
> warning: no library file corresponding to 'make[1]: Leaving directory
> `/home/daniel/Code/pjproject-trunk/pjsip-apps/src/py_pjsua'' found
> (skipping)
> gcc -pthread -shared -Wl,-O1 build/temp.linux-x86_64-2.5/py_pjsua.o
> -Lmake[1]: Entering directory
> `/home/daniel/Code/pjproject-trunk/pjsip-apps/src/py_pjsua'
> -L/home/daniel/Code/pjproject-trunk/pjlib/lib
> -L/home/daniel/Code/pjproject-trunk/pjlib-util/lib
> -L/home/daniel/Code/pjproject-trunk/pjnath/lib
> -L/home/daniel/Code/pjproject-trunk/pjmedia/lib
> -L/home/daniel/Code/pjproject-trunk/pjsip/lib
> -L/home/daniel/Code/pjproject-trunk/third_party/lib -Lmake[1]: Leaving
> directory `/home/daniel/Code/pjproject-trunk/pjsip-apps/src/py_pjsua'
> -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
> -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
> -luuid -lnsl -lrt -lpthread -lasound -lssl -lcrypto -o
> build/lib.linux-x86_64-2.5/py_pjsua.so
> /usr/bin/ld: /home/daniel/Code/pjproject-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/daniel/Code/pjproject-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
> 
> Thanks.
> 
> Dan
> 
> 


-- 
Benny Prijono
http://www.pjsip.org

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip at lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




[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