[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 [r...@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] Problem with Luasql on x86_64
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 [r...@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... ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] Problem with Luasql on x86_64
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 djbin...@yahoo.com To: FREESWITCH-USERS MAILING LIST freeswitch-users@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 [r...@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org