
do_sqlite3 accesses missing symbols in libsqlite3
Reported by Postmodern | April 16th, 2010 @ 01:32 AM
Just noticed that do_sqlite3 has trouble accessing symbols in it's own C extension library.
ruby-1.8.7-p249 > require 'do_sqlite3'
LoadError: /home/hal/.rvm/gems/ruby-1.8.7-p249/bundler/gems/do-ead4d72fd14942d850490058a50494994eca82c1-master/do_sqlite3/lib/do_sqlite3/do_sqlite3.so: undefined symbol: sqlite3_enable_load_extension - /home/hal/.rvm/gems/ruby-1.8.7-p249/bundler/gems/do-ead4d72fd14942d850490058a50494994eca82c1-master/do_sqlite3/lib/do_sqlite3/do_sqlite3.so
from /home/hal/.rvm/gems/ruby-1.8.7-p249/bundler/gems/do-ead4d72fd14942d850490058a50494994eca82c1-master/do_sqlite3/lib/do_sqlite3/do_sqlite3.so
from /home/hal/.rvm/gems/ruby-1.8.7-p249/bundler/gems/do-ead4d72fd14942d850490058a50494994eca82c1-master/do_sqlite3/lib/do_sqlite3.rb:22
from (irb):1:in `require'
from (irb):1
$ nm /usr/lib/libsqlite3.a | grep sqlite3_enable_load_extension
$ nm /home/hal/.rvm/gems/ruby-1.8.7-p249/bundler/gems/do-ead4d72fd14942d850490058a50494994eca82c1-master/do_sqlite3/lib/do_sqlite3/do_sqlite3.so | grep sqlite3_enable_load_extension
U sqlite3_enable_load_extension
libsqlite3: 3.6.22
uname -a: Linux example 2.6.28 #8 SMP Sun May 9 22:53:00 PDT 2010 x86_64 AMD
Athlon(tm) 64 Processor 3400+ AuthenticAMD GNU/Linux
Comments and changes to this ticket
-
Postmodern April 18th, 2010 @ 01:04 AM
After testing this on another system, it appears that somehow /usr/lib/libsqlite3.so.0.8.6 was compiled and linked without symbols. After re-installing the library and do_sqlite3, sqlite3_enable_load_extension was visible again in the symbol table and do_sqlite3 could be loaded.
-
Postmodern April 18th, 2010 @ 01:05 AM
- Assigned user cleared.
-
Dirkjan Bussink May 25th, 2010 @ 01:20 PM
- State changed from new to not-applicable
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
People watching this ticket
Tags
Referenced by
-
1242 Strange segfault when creating a connection to an sqlite3 database. This is probably related to ticket #1246. You can close t...