Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91767 - mod_php-5: configure error with USE=gdbm
Summary: mod_php-5: configure error with USE=gdbm
Status: RESOLVED DUPLICATE of bug 84620
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-06 23:34 UTC by Georgi Georgiev
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georgi Georgiev 2005-05-06 23:34:26 UTC
emerge -av mod_php-5.0.3* and 5.0.4 (the ones I've personally confirmed) with USE="dbm dba" fails with:

checking for Berkeley DB4 support... yes
checking for Berkeley DB3 support... no
checking for Berkeley DB2 support... no
checking for dbminit in -ldbm... no
checking for dbminit in -lc... no
checking for dbminit in -lgdbm... no
configure: error: DBA: Could not find necessary library.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/mod_php-5.0.4/work/php-5.0.4/config.log

!!! ERROR: dev-php/mod_php-5.0.4 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.


I solved this by adding this line to the ebuild at the end of src_unpack():
    sed -i -e 's!\(for LIB in dbm c gdbm\)!\1 gdbm_compat!' ${S}/configure
or in other words:
--- configure   2005-05-07 15:30:30.000000000 +0900
+++ -   2005-05-07 15:33:27.090803000 +0900
@@ -36659,7 +36659,7 @@
     done
 
     if test -n "$THIS_INCLUDE"; then
-      for LIB in dbm c gdbm; do
+      for LIB in dbm c gdbm gdbm_compat; do
 
   save_old_LDFLAGS=$LDFLAGS
   ac_stuff="-L$THIS_PREFIX/lib"
Comment 1 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-05-06 23:59:31 UTC

*** This bug has been marked as a duplicate of 84620 ***