Dear All,
I am getting stress to install python pjsua on Ubuntu x64. I have tried 6 hours but no luck.
I am also trying install pjsua on Ubuntu x86 it work fine and easy.
I got this error when trying to "make" on pjsip-app/src/python
/usr/bin/ld: /home/triatmoko/pjproject2/pjsip/lib/libpjsua-x86_64-unknown-linux-gnu.a(pjsua_acc.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/home/triatmoko/pjproject2/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
could somebody help me solve this problem??
thank in advance
I can't say about the specific thing that you'll need to fix this in
pjsua, but I can tell you this: in normal x86 when you want to make a
shared lib only the "top-level" code needs to be compiled PIC. One of
the many differences in the x86_64 ABI is that all code that compiles
into a library must be built as PIC. The short of it is that you should
be able to get it to compile by making sure that -fPIC is part of CFLAGS
in each Makefile.
On 5/18/11 2:00 AM, Triatmoko wrote:
Dear All,
I am getting stress to install python pjsua on Ubuntu x64. I have
tried 6 hours but no luck.
I am also trying install pjsua on Ubuntu x86 it work fine and easy.
I got this error when trying to "make" on pjsip-app/src/python
/usr/bin/ld:
/home/triatmoko/pjproject2/pjsip/lib/libpjsua-x86_64-unknown-linux-gnu.a(pjsua_acc.o):
relocation R_X86_64_32S against `.rodata' can not be used when making
a shared object; recompile with -fPIC
/home/triatmoko/pjproject2/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
could somebody help me solve this problem??
thank in advance
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
Jens B. Jorgensen
jbj1@ultraemail.net