[itsdb] compilation error (bdb.so)

Francis Bond fcbond at gmail.com
Tue Sep 5 03:59:07 CEST 2006


G'day,


On 6/24/06, Ben Waldron <bmw20 at hf.ntnu.no> wrote:
> My attempts to compile itsdb fail with the following error:
>
> ;   Foreign loading /home/bmw20/lkb/src/tsdb/linux.x86.32/bdb.so.
> Error: Loading /home/bmw20/lkb/src/tsdb/linux.x86.32/bdb.so failed with
> error:
>        /home/bmw20/lkb/src/tsdb/linux.x86.32/bdb.so: undefined symbol:
> db_create.
>   [condition type: FILE-ERROR]
>
> bmw20 at t41:~/lkb/lexdb$ ldd /home/bmw20/lkb/src/tsdb/linux.x86.32/bdb.so
>         linux-gate.so.1 =>  (0xffffe000)
>         libdb-4.2.so => /usr/lib/libdb-4.2.so (0xb7e50000)
>         libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d21000)
>         /lib/ld-linux.so.2 (0x80000000)
>
> Can you help fix this? Thanks,

There appear to be several incompatible versions of libdb-4.2.so with
the same name (;_;).   For example,  I get this problem with debian
sarge, but not ubuntu dapper.

One solution is to load the libdb-4.2.so distributed with the lkb:
lkb/lib/linux.x86.32/libdb-4.2.so

This can be done by setting LD_LIBRARY_PATH:
LD_LIBRARY_PATH=/home/bond/delphin/lkb/lib/linux.x86.32

If you use the dot.bashrc in lkb/etc/dot.bashrc it will set
LD_LIBRARY_PATH for you.

Hope this helps.

-- 
Francis Bond  <www.kecl.ntt.co.jp/icl/mtg/members/bond/>
NTT Communication Science Laboratories | Natural Language Research Group



More information about the itsdb mailing list