checking for dbminit in -lgdbm... no configure: error: DBA: Could not find necessary library. !!! ERROR: dev-php/php-5.0.1 failed. !!! Function econf, Line 441, Exitcode 1 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.51_rc1 (default-ppc-2004.1, gcc-3.4.1, glibc-2.3.4.20040916-r0, 2.4.24-ppc-r4 ppc) ================================================================= System uname: 2.4.24-ppc-r4 ppc 7455, altivec supported Gentoo Base System version 1.5.3 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.3-r3 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="ppc ~ppc" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -fsigned-char -mpowerpc-gfxopt" CHOST="powerpc-unknown-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -fsigned-char -mpowerpc-gfxopt" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg ccache fixpackages nostrip sandbox userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/usr/src" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X X509 Xaw3d aalib adns altivec apache2 apm arts async audiofile bcmath berkdb bidi bonobo bzlib c++ calendar caps cdparanoia cdr chroot cjk crypt ctype cups curl curlwrappers dba dbm dbx debug dga dio directfb divx4linux doc dvb dvd dvdread encode erandom esd evo exif f77 fam fbcon flash flatfile foomaticdb freetds freetype ftp gb gd gd-external gdbm geoip ggi gif gimpprint glade gmp gnome gnome-libs gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hardenedphp high-ints iconv imagemagick imap imlib imlib2 inifile innodb ipv6 javascript jbig jpeg justify kde lcms ldap libcaca libg++ libgda libwww live lynxkeymap lzo mad mailwrapper matroska mbox mcal mcve md5sum memlimit mhash mikmod mime ming mng mnogosearch motif mozaccess mozcalendar mozilla mozp3p mozsvg mozxmlterm mpeg msession mysql nas ncurses network nls nocardbus nvidia oav objc offensive oggvorbis ooo-kde opengl oss pam parse-clocks pcntl pcre pdflib perl pg-hier pg-intdatetime pg-vacuumdelay pic plotutils png posix postgres ppc ppds python qt quicktime readline rtc ruby samba sasl scanner sdl session sftplogging shared sharedmem sheep silc simplexml skey slang slp snmp soap sockets socks5 speex spell spl sqlite ssl svg sysvipc tcltk tcpd tetex theora threads tidy tiff tokenizer truetype unicode usb v4l v4l2 vhosts vim-with-x virus-scan vnc wXwindows wddx wmf xchatdccserver xchattext xface xine xinerama xml xml2 xmlrpc xmms xpm xprint xsl xv xvid zlib"
emerge -vp php please
[ebuild N ] dev-php/php-5.0.1 (-adabas) +bcmath +berkdb (-birdstep) +bzlib +calendar -cdb -cpdflib +crypt +ctype +curl +curlwrappers (-db2) +dba -dbase +dbm (-dbmaker) +dbx +debug +dio -empress -empress-bcs (-esoob) +exif +fam (-fdftk) (-filepro) +flatfile -frontbase +ftp +gd +gd-external +gdbm +gmp -hyperwave-api +iconv +imap (-informix) (-ingres) +inifile -interbase -iodbc +jpeg +ldap -libedit +mcve +memlimit +mhash +mime +ming +mnogosearch +msession -msql -mssql +mysql -mysqli +ncurses -nis +nls -oci8 -odbc -oracle7 -ovrimos +pcntl +pcre (-pfpro) +png +posix +postgres -qdbm +readline -recode -sapdb +sasl +session +shared +sharedmem +simplexml +snmp +soap +sockets (-solid) +spell +spl +sqlite +ssl (-sybase) (-sybase-ct) +sysvipc +tidy +tiff +tokenizer +truetype +wddx +xml2 +xmlrpc +xpm +xsl +zlib 0 kB
here php builds correctly, if you emerge -C gdbm and then try to emerge php it tries to get gdbm in again?
emerge -C gdbm emerge -u php gdbm is emerged again and then PHP's configure stops at the same line. What is configure looking for that It can't find?
please attach the config.log file
I tried with the settings from comment #2: checking for mnoGoSearch support... yes, shared checking for mnoGoSearch version... configure: error: udm-config script not found in /usr/local/mnogosearch/bin !!! ERROR: dev-php/php-5.0.1 failed. !!! Function econf, Line 444, Exitcode 1 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message. However: * USE flag mnogosearch enables support for software not in Portage * USE flag msession enables support for software not in Portage * * This ebuild will continue, but if you haven't already installed the * software required to satisfy the list above, this package will probably * fail to compile. Please try with both flags disabled and reopen this bug if the problem persists.
Created attachment 40341 [details] config.log
With mnogosearch and msession disabled the problem persists.
It looks like an upstream GDBM change that's causing this problem. Sandino, could you please try this: ebuild /usr/portage/dev-php/php/php-5.0.1.ebuild unpack sed -e 's,for LIB in dbm c gdbm,for LIB in dbm c gdbm gdbm_compat,g' -i /var/tmp/portage/php-5.0.1/work/php-5.0.1/configure ebuild /usr/portage/dev-php/php/php-5.0.1.ebuild package emerge -k '=dev-php/php-5.0.1' if that works, please repeat for php-5.0.2 as well then report back.
Didn't work. I will attach the new config.log.
Created attachment 40517 [details] config.log
argh. it needs to link to both gdbm and gdbm_compat :-(. But I don't see why it's different - given it works on x86 quite fine.
as a weird idea open up /usr/lib/libgdbm_compat.la and change dependency_libs='' to dependency_libs=' -lgdbm '
opened up /usr/lib/libgdbm_compat.la and changed dependency_libs='' to dependency_libs=' -lgdbm ' configure still fails with the same error. Is there any other test I can do by hand?
try the same test that configure is doing and link against both libraries manually, to see what happens.
gcc -o conftest -O2 -pipe -fno-strict-aliasing -mtune=7450 -L/usr/lib -ldb-4.2 conftest.c -lgdbm_compat -lresolv -lm -ldl -lnsl -lxml2 -lz -lm I get the same errors than in config.log. gcc -o conftest -O2 -pipe -fno-strict-aliasing -mtune=7450 -L/usr/lib -ldb-4.2 conftest.c -lgdbm -lgdbm_compat -lresolv -lm -ldl -lnsl -lxml2 -lz -lm Works fine.
so now the fun part... open up ext/dbm/config.m4 and figure out a way to have gdbm use both libraries IF it needs to only.
I'm seeing this on sparc with php-5.0.2 as well
I'm also seeing this problem on an x86.
Created attachment 53552 [details] Config log from last compilation failure I guess a little more information wouldn't hurt! :) I'm getting the same compilation failure, but on a x86 with both php-5.0.3-r1 as well as mod_php-5.0.3-*. Are we the only few having this problem?
Created attachment 63043 [details] ANother failed config.log I submitted another log showing this same failure. I'm afraid I'm not enough of a code wizzard to look at and understand the /var/tmp/portage/php-5.1.0_beta/work/php-5.1.0b1/ext/dba /config.m4 Wish I did.
Hi, Please see the solution in bug #60922. Best regards, Stu *** This bug has been marked as a duplicate of 60922 ***