"Bernhard R. Link" <[EMAIL PROTECTED]> (11/09/2007): > * Lucas Nussbaum <[EMAIL PROTECTED]> [070910 21:55]: > > checking db.h usability... yes > > checking db.h presence... yes > > checking for db.h... yes > > checking for DB_VERSION_MAJOR... 4 > > checking for DB_VERSION_MINOR... 3 > > checking for db_create in -ldb-4.3... no > > configure: error: "no libdb-4.3 found" > > make: *** [config.status] Error 1 > > That is strange. Do you have a way to get the config.log from that?
Same error here in a sid chroot. BTW, putting the test code in a dummy file and compiling it: | $ gcc dummy.c -ldb-4.3 | /usr/lib/gcc/i486-linux-gnu/4.2.1/../../../../lib/libdb-4.3.so: undefined reference to `pthread_mutex_trylock' | /usr/lib/gcc/i486-linux-gnu/4.2.1/../../../../lib/libdb-4.3.so: undefined reference to `pthread_mutexattr_setpshared' | /usr/lib/gcc/i486-linux-gnu/4.2.1/../../../../lib/libdb-4.3.so: undefined reference to `pthread_mutexattr_destroy' | /usr/lib/gcc/i486-linux-gnu/4.2.1/../../../../lib/libdb-4.3.so: undefined reference to `pthread_condattr_setpshared' | /usr/lib/gcc/i486-linux-gnu/4.2.1/../../../../lib/libdb-4.3.so: undefined reference to `pthread_mutexattr_init' Adding -lpthread makes it compile fine. Anyway, you can trivially reproduce this in a sid chroot. ;-) I also tried putting “-lpthread” into debian/rules' LDFLAGS, it makes the package build fine, although I doubt it is the way to go. I also tried regenerating the configure script using autoconf, then autoreconf (using “-vfi”), but that didn't help ./configure detect libdb4.3. [automake1.10] Maybe use AC_CHECK_LIB on pthread or something like that? Sorry, but not in an automaky moon so I'll let it up to you to test that. ;-) For the sake of it, I tried with libdb-dev (4.6), which gives: | checking for DB_VERSION_MAJOR... 4 | checking for DB_VERSION_MINOR... 6 | configure: error: Unsupported libdb major 4 minor 6 | Only 4.3 (stronly recommended) or 3.2 or 4.4 are supported | make: *** [config.status] Error 1 OK. Switched to 4.4: | checking for db.h... yes | checking for DB_VERSION_MAJOR... 4 | checking for DB_VERSION_MINOR... 4 | configure: error: Found libdb major version 4.4, need 4.3 | make: *** [config.status] Error 1 Cheers, -- Cyril Brulebois
pgpAitn1eCtnO.pgp
Description: PGP signature