[asterisk-dev] H323 64 bit Nightmare

Maxim Sobolev sobomax at sippysoft.com
Fri May 23 16:47:49 CDT 2008

Patrick wrote:
> On Thu, 2008-05-22 at 12:55 -0400, Venefax wrote:
>> I downloaded the latest version as instructed and I get this error after I
>> issue a 
>> ./configure
>> make clean opt
>> o  /usr/src/ptlib_v1_12_0/lib/obj_linux_x86_64_r/collect.o
>> /usr/src/ptlib_v1_12_0/lib/obj_linux_x86_64_r/contain.o
>> /usr/src/ptlib_v1_12_0/lib/obj_linux_x86_64_r/object.o  -lldap -llber
>> -lldap_r  -lpthread -lsasl2 -lssl -lcrypto -lexpat -lodbc -lresolv
>> /usr/bin/ld:
>> /vz/usr/bin/../lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libresolv
>> .a(res_comp.o): relocation R_X86_64_32 against `a local symbol' can not be
>> used when making a shared object; recompile with -fPIC
>                                     ^^^^^^^^^^^^^^^^^^^^
> Did you add -fPIC to the CFLAGS in the Makefile as suggested?

In this particular case the issue had nothing to do with 64-bitness or 
with -fPIC. It is just that for some unknown to me reason the links to 
some shared libraries in /usr/lib64 were pointing to the wrong places, 
so that linker had no choice but to pick up static library instead.

Maksym Sobolyev
Sippy Software, Inc.
Internet Telephony (VoIP) Experts
T/F: +1-646-651-1110
Web: http://www.sippysoft.com

More information about the asterisk-dev mailing list