Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 84620

Summary: php-5.0.3-r1 does not build (configure error: DBA)
Product: Gentoo Linux Reporter: Dominik Karall <dominik.karall>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal CC: chutz+bugs.gentoo.org, php-bugs
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 60438    

Description Dominik Karall 2005-03-09 05:03:53 UTC
i wanted to update php to current ~amd64 release, but it stops at a configure error:
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.

config.log output can be found here:
http://stud4.tuwien.ac.at/~e0227135/gentoo/php-5.0.3-r1_config.log

the error seems to be located here:
configure:25050: gcc -o conftest -march=k8 -mtune=k8 -O3 -fomit-frame-pointer -ftracer -funroll-loops -pipe  -L/usr/lib  conftest.c -ldbm  -ldb-4.2 -ldb-4.2 -lgdbm -lcurl -lbz2 -lz -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lssl -lcrypto -ldl -lcurl -lidn -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz 1>&5
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ldbm

Reproducible: Always
Steps to Reproduce:
1. emerge -avu php
Comment 1 Dominik Karall 2005-04-01 07:56:54 UTC
I found the solution on debian list:
http://grass.itc.it/pipermail/grass5/2003-August/008500.html

you need to link /usr/lib/libdbm_compat.so to /usr/local/lib/libdbm.so
(ln -s /usr/lib/libgdbm_compat.so /usr/local/lib/libdbm.so)

maybe this could be fixed in DBM.
Comment 2 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-05-06 23:59:31 UTC
*** Bug 91767 has been marked as a duplicate of this bug. ***
Comment 3 SpanKY gentoo-dev 2005-06-01 10:30:23 UTC
i dont see the point ... we've gotten along just fine so far without adding this
cruft to gdbm, why now ?
Comment 4 Stuart Herbert (RETIRED) gentoo-dev 2005-06-01 14:16:16 UTC
Do we have a genuine libdbm in the tree?  If so, I'll just update the deps for
PHP to pull that in.

(Although, it has to be said, it'd be nice to have the DBM-compatible part of
libgdbm installed)
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-06-27 18:47:13 UTC

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