LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Mediatomb and Sqlite in Slackware 12.2 (http://www.linuxquestions.org/questions/slackware-14/mediatomb-and-sqlite-in-slackware-12-2-a-699150/)

marnold 01-22-2009 10:36 AM

Mediatomb and Sqlite in Slackware 12.2
 
I'm having issues getting Mediatomb to compile on Slackware 12.2. Basically the configure script is claiming that it can't compile against the version of sqlite that comes with 12.2. Here's a snip from config.log:

configure:20119: checking for sqlite3.h
configure:20126: result: yes
configure:20372: checking for sqlite3_open in -lsqlite3
configure:20407: g++ -o conftest -g -O2 -lrt conftest.cpp -lsqlite3 -lz >&5
/usr/lib/gcc/i486-slackware-linux/4.2.4/../../../libsqlite3.so: undefined reference to `dlsym'
/usr/lib/gcc/i486-slackware-linux/4.2.4/../../../libsqlite3.so: undefined reference to `dlerror'
/usr/lib/gcc/i486-slackware-linux/4.2.4/../../../libsqlite3.so: undefined reference to `dlopen'
/usr/lib/gcc/i486-slackware-linux/4.2.4/../../../libsqlite3.so: undefined reference to `dlclose'

I didn't have this problem with earlier versions of Slackware with sqlite that I had compiled myself.

marnold 01-22-2009 10:43 AM

Wouldn't you know it--after weeks of fruitless Googling I came across the fix right after I posted this. Before running ./configure, I typed this:
export LDFLAGS="$LDFLAGS -ldl"

Now it works. Is this a bug in the sqlite3 package?


All times are GMT -5. The time now is 05:07 AM.