[Freeswitch-users] Problem with Luasql on x86_64

Stefan Knoblich stkn at freeswitch.org
Mon Oct 12 16:56:01 PDT 2009


DJB wrote:
> 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.


Well, i'm sure people could've helped you on IRC if you stay for more than two minutes,
after asking your question...




More information about the FreeSWITCH-users mailing list