[GRASS-user] Strange Build Error Needs Other Eyes
Markus Neteler
neteler at osgeo.org
Thu Dec 30 16:32:57 EST 2010
On Thu, Dec 30, 2010 at 10:23 PM, Rich Shepard <rshepard at appl-ecosys.com> wrote:
> On Thu, 30 Dec 2010, Markus Neteler wrote:
>
>> You need to look close to the end of the file config.log which
>> will contain the error related to sqlite3.
>
> Markus,
>
> configure:10149: checking for sqlite3_open in -lsqlite3
> configure:10166: gcc -o conftest -g -O2 -L/usr/lib/ -Wl,--export-dynamic
> conftest.c -lsqlite3 -lm 1>&5
> /usr/lib//libsqlite3.so: undefined reference to `dlsym'
> /usr/lib//libsqlite3.so: undefined reference to `dlerror'
> /usr/lib//libsqlite3.so: undefined reference to `dlopen'
> /usr/lib//libsqlite3.so: undefined reference to `dlclose'
> collect2: ld returned 1 exit status
> configure: failed program was:
> #line 10155 "configure"
> #include "confdefs.h"
> /* Override any gcc2 internal prototype to avoid an error. */
> /* We use char because int might match the return type of a gcc2
> builtin and then its argument prototype would still apply. */
> char sqlite3_open();
Which Linux do you use? I see this bug report for Debian:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=478980
The answer there is
"Please specify -ldl in your LDFLAGS for the linker."
AFAIK that would mean:
LDFLAGS="-ldl" ./configure ... (more flags as before)
Markus
More information about the grass-user
mailing list