Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Problem with Luasql on x86_64


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
djbinter at yahoo.com
Guest





PostPosted: Mon Oct 12, 2009 6:54 pm    Post subject: [Freeswitch-users] Problem with Luasql on x86_64 Reply with quote

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@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
Back to top
stkn at freeswitch.org
Guest





PostPosted: Mon Oct 12, 2009 7:04 pm    Post subject: [Freeswitch-users] Problem with Luasql on x86_64 Reply with quote

DJB wrote:
Quote:
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@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
Back to top
djbinter at yahoo.com
Guest





PostPosted: Mon Oct 12, 2009 7:36 pm    Post subject: [Freeswitch-users] Problem with Luasql on x86_64 Reply with quote

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@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

[root@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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services