Helo!
Upgrading to version 3.6.2, I have got the following compile error:
make[2]: Entering directory `/usr/src/httpd/sqwebmail-3.6.0/bdbobj'
g++ -g -O2 -o testbdb testbdb.o libbdbobj.a -ldb
libbdbobj.a(bdbobj.o): In function `bdbobj_open':
/usr/src/httpd/sqwebmail-3.6.0/bdbobj/bdbobj.c:126: undefined reference to `db_create'
collect2: ld returned 1 exit status
make[2]: *** [testbdb] Error 1
I'm using Berkeley DB 4.1.25 (wich I use for Openldap too).
Your error message shows that:
1) BDB code was compiled succesfully, the error is reported during the link phase. This means that at least the BDB header files are installed.
2) The error message reports an undefined function. If the BDB library was not installed, the linker would've complained about libdb.so missing. As such, libdb.so was found, but did not contain the db_create function.
Therefore, the only two possibilities are:
A) Your libdb.so is corrupted.
B) You have multiple versions of the Berkeley DB library sprayed all over your filesystem, and the linker probably picks up some old libdb.so, probably version 1 or version 2, which uses a completely different API.
pgp00000.pgp
Description: PGP signature
