Bug 25233 - Can't find Berkeley DB on FreeBSD
Summary: Can't find Berkeley DB on FreeBSD
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_rewrite (show other bugs)
Version: 2.0.48
Hardware: PC FreeBSD
: P3 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-05 06:02 UTC by Nick Wood
Modified: 2009-01-18 16:23 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Wood 2003-12-05 06:02:01 UTC
4.8-RELEASE-p9

RewriteMap claims that db is an invalid dbm type.

It works fine in Apache-2.0.47, but is broken in Apache-2.0.48.

This issue is similar to those found in bug reports 14748 and 9789.

It appears that Berkeley DB support is built into -lc, which the configure 
script doesn't check (it seems to check for ndbm though).

Apache 2.0.47:
...(lots of other DBM checks)...
checking for db.h... (cached) yes
checking for dbopen in -lc... yes
checking for Berkeley DB... found db1
checking for default DBM... sdbm (default)

Apache 2.0.48:
...(lots and lots of other DBM checks - Mostly for Berkeley)
checking for db.h... yes
checking for dbopen in -ldb1... no
checking checking for Berkeley DB 1 in the standard places...
checking db_185.h usability... no
checking db_185.h presence... no
checking for db_185.h... no
checking for Berkeley DB... not found
checking for default DBM... sdbm (default)

Looks like the code from 2.0.47 in srclib/apr-util/configure around line 9050 
is what finds it.

Thanks
Comment 1 Nick Wood 2003-12-05 06:06:13 UTC
A different search yielded bug #24337, which this bug is a duplicate of...  If 
this has any helpful info, great, if not, you can resolve as duplicate.
Comment 2 Mads Toftum 2003-12-05 08:14:17 UTC

*** This bug has been marked as a duplicate of 24337 ***
Comment 3 Martin J. Green 2006-08-16 12:23:29 UTC
Problem 3
When you compile using included-apr/apu, with berkeley db, its not compiled 
with berkeley db
Comment 4 Philp M. Gollucci 2009-01-18 16:19:15 UTC
CC myself on FreeBSD related bugs
Comment 5 Philp M. Gollucci 2009-01-18 16:23:20 UTC
This should be fixed at least in the ports system with www/apache22
./configure flags for apache 2.0.x should take care of this.