httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From colin_e <coli...@bigfoot.com>
Subject Re: [users@httpd] configure of 2.0.52 fails to find Berkeley DB
Date Mon, 06 Dec 2004 18:04:17 GMT
Hi Joe,
    Thanks for the suggestion. I tried this (I also moved Berkeley DB 
into an all-lower-case
pathname, but that shouldn't be significant). I tried:

    env CC=gcc LDFLAGS='-L/local/opt/berkeleydb4.2.52/lib 
-L/opt/sfw/lib' ./configure...

    env CC=gcc 
LD_LIBRARY_PATH='/local/opt/berkeleydb4.2.52/lib:/opt/sfw/lib' 
./configure...

    LD_LIBRARY_PATH='/local/opt/berkeleydb4.2.52/lib:/opt/sfw/lib';    
export LD_LIBRARY_PATH
    ./configure...

However it still fails. See error output below.

I did some digging in the build scripts. The Apache configure script 
includes the lines-

  bdb_places="$places"
  bdb_default_search_headers="db42/db.h db4/db.h db.h"
  bdb_default_search_lib_names="db-4.2 db4 db"

Whereas the BDB directory contains-

/local/opt/berkeleydb4.2.52/lib:
total 6118
-rw-r--r--   1 root     sysadmin 1104912 Dec  6 14:25 libdb-4.2.a
-rw-rw-r--   1 root     sysadmin     803 Dec  6 14:25 libdb-4.2.la
-rwxrwxr-x   1 root     sysadmin  887924 Dec  6 14:25 libdb-4.2.so
lrwxrwxrwx   1 root     sysadmin      12 Dec  6 14:27 libdb-4.so -> libdb-4.2.so
-rw-r--r--   1 root     sysadmin 1104912 Dec  6 14:25 libdb.a
lrwxrwxrwx   1 root     sysadmin      12 Dec  6 14:27 libdb.so -> libdb-4.2.so

I don't pretend to be familiar with the linker etc. Assuming the "lib"
prefix and ".a" or ".so" suffixes are implied, this looks as if it ought
to work, but doesn't.

Output-

checking db41/db.h presence... no
checking for db41/db.h... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for -ldb-4.1... no
checking db41/db.h usability... no
checking db41/db.h presence... no
checking for db41/db.h... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for -ldb4... no
checking db41/db.h usability... no
checking db41/db.h presence... no
checking for db41/db.h... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for -ldb... no
checking for Berkeley DB 4.0 in /local/opt/berkeleydb4.2.52... 
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for -ldb-4.0... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for -ldb4... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for -ldb... no
checking for Berkeley DB 3 in /local/opt/berkeleydb4.2.52... 
checking db3/db.h usability... no
checking db3/db.h presence... no
checking for db3/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for -ldb3... no
checking db3/db.h usability... no
checking db3/db.h presence... no
checking for db3/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for -ldb... no
checking for Berkeley DB 2 in /local/opt/berkeleydb4.2.52... 
checking db2/db.h usability... no
checking db2/db.h presence... no
checking for db2/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for db_open in -ldb2... no
checking db2/db.h usability... no
checking db2/db.h presence... no
checking for db2/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for db_open in -ldb... no
checking for Berkeley DB 1.0.0 in /local/opt/berkeleydb4.2.52... 
checking db1/db.h usability... no
checking db1/db.h presence... no
checking for db1/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for dbopen in -ldb1... no
checking for Berkeley DB 1 in /local/opt/berkeleydb4.2.52... 
checking db_185.h usability... no
checking db_185.h presence... no
checking for db_185.h... no
checking for Berkeley DB... not found
configure: error: Berkeley DB not found.
configure failed for srclib/apr-util


This is driving me up the wall at this point.

Any more ideas?

Regards: Colin

Joe Orton wrote:

>On Fri, Dec 03, 2004 at 03:18:21PM +0000, colin_e wrote:
>  
>
>>checking for Berkeley DB 4.0 in /local/opt/BerkeleyDB.4.2... 
>>    
>>
>...
>  
>
>>checking db.h usability... yes
>>checking db.h presence... yes
>>checking for db.h... yes
>>checking for -ldb... no
>>    
>>
>
>Try setting:
>
> export LD_LIBRARY_PATH=/local/opt/BerkelyDB.4.2/lib
>
>before running configure.
>
>joe
>  
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message