more compile problems (Berkeley db)

Derek Atkins warlord at MIT.EDU
Tue Jul 1 13:42:18 CDT 2003


Rene,

"Gerlich, Rene" <Rene.Gerlich at commerzbank.com> writes:

> here's ls -la /uar/local/BerkeleyDB.4.1
> 
> total 3736
> -rw-r--r--   1 gerlichr staff    1033552 Jul  1 17:49 libdb-4.1.a
> -rw-r--r--   1 gerlichr staff        724 Jul  1 17:49 libdb-4.1.la
> -rwxr-xr-x   1 gerlichr staff     847332 Jul  1 17:49 libdb-4.1.so
> lrwxrwxrwx   1 root     other         12 Jul  1 17:50 libdb-4.so ->
> libdb-4.1.so
> lrwxrwxrwx   1 root     other         11 Jul  1 17:50 libdb.a -> libdb-4.1.a
> lrwxrwxrwx   1 root     other         12 Jul  1 17:50 libdb.so ->
> libdb-4.1.so

Ok, so it's got libdb, libdb-4, libdb-4.1...

> here's all the config.log stuff related to BerkeleyDB (i guess)

Yp, it is...

> configure:11754: checking for dbopen
> configure:11782: gcc -o conftest -g -O2 -I/usr/local/BerkeleyDB.4.1/include
> -L/usr/local/BerkeleyDB.4.1/lib conftest.c -lm  -lm 1>&5

Looking in libc.. ;)

[snip]

> configure:11839: checking for dbopen in -ldb
> configure:11858: gcc -o conftest -g -O2 -I/usr/local/BerkeleyDB.4.1/include
> -L/usr/local/BerkeleyDB.4.1/lib conftest.c -ldb  -lm  -lm 1>&5
> Undefined                       first referenced
>  symbol                             in file
> dbopen                              /var/tmp//ccccAcNR.o
> ld: fatal: Symbol referencing errors. No output written to conftest
> collect2: ld returned 1 exit status
> configure: failed program was:

So, this is weird... Either it's not finding libdb, it's finding some
OTHER libdb, or your libdb does not have "dbopen".

[snip]

> configure:11915: checking for __db185_open in -ldb-4.0
> configure:11934: gcc -o conftest -g -O2 -I/usr/local/BerkeleyDB.4.1/include
> -L/usr/local/BerkeleyDB.4.1/lib conftest.c -ldb-4.0  -lm  -lm 1>&5
> ld: fatal: library -ldb-4.0: not found

And here it's looking for libdb-4.0, but you don't have 4.0, you have
4.1.

> thanks for your assistance. where do you take the time for all these
> questions?

Good question!  :)

Any chance you could "downgrade" to bdb-4.0?  Also, file a bug report
about searching for bdb-4.1...

> cheers
> 
> rene

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-user mailing list