[Freeswitch-users] Problem with Luasql on x86_64

DJB djbinter at yahoo.com
Mon Oct 12 17:28:13 PDT 2009


If anyone ran into the same problem, here is the fix that I got from [stkn] on IRC:

make CFLAGS="-O2 -fPIC" 

I hope it might help someone in the future.

Regards.



----- Original Message ----
From: DJB <djbinter at yahoo.com>
To: FREESWITCH-USERS MAILING LIST <freeswitch-users at lists.freeswitch.org>
Sent: Mon, October 12, 2009 4:45:27 PM
Subject: [Freeswitch-users] Problem with Luasql on x86_64

Hello,

I am trying to use luasql with freeswitch but having a hard time compile it with x86_64 Server running CentOS 5.3

Linux  2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux

[root at fsx1 luasql-2.1.1]# make
export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -ansi -pedantic -I../compat/src -I/opt/local/include -I/usr/local/include  -o src/sqlite3.so -shared  src/luasql.o src/ls_sqlite3.o  -L/opt/local/lib -lsqlite3
/usr/bin/ld: src/luasql.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
src/luasql.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [src/sqlite3.so] Error 1


Any suggestions.

Thank you.


      

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



      




More information about the FreeSWITCH-users mailing list