Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64950 - PHP php-5.0.1 ./configure fails on ppc
Summary: PHP php-5.0.1 ./configure fails on ppc
Status: RESOLVED DUPLICATE of bug 60922
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 60438
  Show dependency tree
 
Reported: 2004-09-22 04:09 UTC by Sandino Araico Sanchez
Modified: 2005-08-22 11:47 UTC (History)
2 users (show)

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


Attachments
config.log (config.log,53.23 KB, text/plain)
2004-09-24 19:43 UTC, Sandino Araico Sanchez
Details
config.log (config.log,54.50 KB, text/plain)
2004-09-27 00:19 UTC, Sandino Araico Sanchez
Details
Config log from last compilation failure (config.log,82.11 KB, text/plain)
2005-03-15 12:15 UTC, Dinil Penne
Details
ANother failed config.log (config.log,54.93 KB, text/plain)
2005-07-09 16:38 UTC, Gregg Martinson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sandino Araico Sanchez 2004-09-22 04:09:18 UTC
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"
Comment 1 Luca Barbato gentoo-dev 2004-09-22 12:42:48 UTC
emerge -vp php please
Comment 2 Sandino Araico Sanchez 2004-09-22 13:04:33 UTC
[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
Comment 3 Luca Barbato gentoo-dev 2004-09-24 13:05:21 UTC
here php builds correctly, 
if you emerge -C gdbm and then try to emerge php it tries to get gdbm in again?
Comment 4 Sandino Araico Sanchez 2004-09-24 15:36:25 UTC
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?
Comment 5 Luca Barbato gentoo-dev 2004-09-24 16:37:30 UTC
please attach the
config.log file
Comment 6 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-09-24 19:29:44 UTC
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.
Comment 7 Sandino Araico Sanchez 2004-09-24 19:43:39 UTC
Created attachment 40341 [details]
config.log
Comment 8 Sandino Araico Sanchez 2004-09-24 19:52:04 UTC
With mnogosearch and msession disabled the problem persists.
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-26 14:05:14 UTC
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.
Comment 10 Sandino Araico Sanchez 2004-09-27 00:17:15 UTC
Didn't work.

I will attach the new config.log.
Comment 11 Sandino Araico Sanchez 2004-09-27 00:19:27 UTC
Created attachment 40517 [details]
config.log
Comment 12 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-27 00:46:29 UTC
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.
Comment 13 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-27 00:51:05 UTC
as a weird idea
open up /usr/lib/libgdbm_compat.la
and change
dependency_libs=''
to
dependency_libs=' -lgdbm '
Comment 14 Sandino Araico Sanchez 2004-09-27 01:54:32 UTC
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?
Comment 15 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-27 01:58:34 UTC
try the same test that configure is doing
and link against both libraries manually, to see what happens.
Comment 16 Sandino Araico Sanchez 2004-09-27 02:29:24 UTC
 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.
Comment 17 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-27 03:17:38 UTC
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.
Comment 18 Jason Wever (RETIRED) gentoo-dev 2004-10-23 07:46:01 UTC
I'm seeing this on sparc with php-5.0.2 as well
Comment 19 Dinil Penne 2005-03-15 12:07:10 UTC
I'm also seeing this problem on an x86. 
Comment 20 Dinil Penne 2005-03-15 12:15:46 UTC
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?
Comment 21 Gregg Martinson 2005-07-09 16:38:34 UTC
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.
Comment 22 Stuart Herbert (RETIRED) gentoo-dev 2005-08-22 11:47:28 UTC
Hi,

Please see the solution in bug #60922.

Best regards,
Stu

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