On Fri, 2005-12-02 at 17:34 +0100, GUILLEMOT Yann wrote: > Hello, > > I need help. > > I install squid2.5stable12 on redhat server 3. > > I install db.4.0.14 on /usr/loca/BerkeleyDB > i modify my ld.so.conf and do ldconfig -v > > But when i do ./configure --with-db=/usr/loca/BerkeleyDB/bin > > i have this result : > checking for db_version in -ldb... no > > ** The Berkley DB library is required for squidGuard > to compile. Get it from http://www.sleepycat.com > use --with-db=DIR or --with-db-lib=DIR to specify > its location. (default is /usr/local/BerkeleyDB) > > Have you an idea ? > > Sincerly. >
The test that's failing is looking for a symbol called db_version, but recent Berkeley DB releases include the symbol as db_version_<major minor>. Example: $ objdump /usr/lib/libdb-4.0.so -T | grep db_version 0005b100 g DF .text 0000003e Base db_version_4000 I noticed that on gentoo, for example, there are patches to configure.in that modify the tests to accommodate these changes to Berkeley. The patches also add conditional compilation to change the db open calls to make them compatible with db 4.1 and 4.2.
