[asterisk-dev] H323 64 bit Nightmare

Felipe Bergo fbergo at gmail.com
Thu May 22 19:59:34 CDT 2008

On many packages the -fPIC error message means that the package
authors provided a bad Makefile/autoconf/automake, but in the case of
openh323's pwlib, I have just tried compiling ptlib 1.12.0 from the
source on two 64-bit boxes (one running CentOS-4.4, the other with
CentOS-5.0), and both compiled it cleanly with a mere

./configure; make

Your setup (gcc / binutils / libtool) does seem to be corrupted and/or
outdated, or you don't have a 64-bit version of one of the shared
libraries ptlib depends on.

-- Felipe

On Thu, May 22, 2008 at 9:30 PM, Venefax <venefax at gmail.com> wrote:
> Can you elaborate about the -fPIC? I exported
> export CFLAGS="-fPIC"
> and also tried ./configure -CFLAGS=-fPIC
> but the problem is getting worse. Now I cannot even compile Asterisk. I get
> the same error when compiling curl.
> -----Original Message-----
> From: asterisk-dev-bounces at lists.digium.com
> [mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of Patrick
> Sent: Thursday, May 22, 2008 7:35 PM
> To: Asterisk Developers Mailing List
> Subject: Re: [asterisk-dev] H323 64 bit Nightmare
> 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?
> Regards,
> Patrick
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--

More information about the asterisk-dev mailing list