Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60922 - php5 configure dies with dbm udeflag enabled
Summary: php5 configure dies with dbm udeflag enabled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 64950 71148 84620 (view as bug list)
Depends on:
Blocks: 60438
  Show dependency tree
 
Reported: 2004-08-19 12:18 UTC by Bartosch Pixa (RETIRED)
Modified: 2005-09-17 15:31 UTC (History)
6 users (show)

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


Attachments
config.log with dbm enabled (config.log,51.98 KB, text/plain)
2004-08-19 12:22 UTC, Bartosch Pixa (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bartosch Pixa (RETIRED) gentoo-dev 2004-08-19 12:18:54 UTC
while trying to emerge php5 with the following useflags:

dev-php/php-5.0.1  -adabas -bcmath +berkdb -birdstep +bzlib -calendar -cdb +cpdflib +crypt +ctype +curl +curlwrappers -db2 +dba -dbase +dbm* -dbmaker +dbx +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

it's configure dies in the extensions section:

...
checking whether to enable DBA... yes, shared
checking for QDBM support... no
checking for gdbm_open in -lgdbm... yes
checking for GDBM support... yes
checking for NDBM support... no
checking for db4 minor version and patch level... ok
checking if dba can be used as shared extension... yes
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 attatched.

emerge info:

Portage 2.0.51_pre20 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.4.26-gentoo-r6 i686 AMD Athlon(tm) MP 1800+)
=================================================================
System uname: 2.4.26-gentoo-r6 i686 AMD Athlon(tm) MP 1800+
Gentoo Base System version 1.5.2
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.19-r1,sys-kernel/linux-headers-2.4.22
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-mp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /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="-march=athlon-mp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox"
GENTOO_MIRRORS="ftp://gentoo.inode.at/source/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.ynet.sk/pub http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/portage_local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3ds S3TC X X509 aac aalib acl acpi adns alsa amd apache2 apm arts artswrappersuid async atm audiofile avi berkdb bonobo bzlib canna cap caps cddb cdf cdr cdrom chroot cjk cpdflib crypt cscope ctype cups curl curlwrappers dba dbm dbx dga dio dmx dts dv dvd encode erandom escreen esd ethereal etwin evo exif extensions f77 faac faad fam fbcon fbdev ffmpeg fftw flac flash flatfile fmod foomaticdb freetype ftp gb gd gdbm ggi gif gimp gimpprint glade gmp gnome gnomedb gphoto2 gpm gs gstreamer gtk gtk2 gtkhtml guile hbci iconv icq idea ieee1394 imagemagick imap imlib imlib2 inifile innodb jabber jack jack-tmpfs java javascript jpeg kde kerberos ladcca lcms ldap libcaca libg++ libgda libsamplerate libwww lirc live lm_sensors lua lufsusermount lzw-tiff mad maildir mbox mcal mhash mikmod mime ming mmap mmx mng moneyplex monkey mono motif mozcalendar mozilla moznocompose moznoirc mozp3p mozsvg mozxmlterm mpeg mpeg4 mule music mysql nas native ncurses net netcdf nls objc odbc offensive ofx oggvorbis openal opengl oscar oss pam pcmcia pcntl pcre pdflib perl pg-hier pg-intdatetime pg-vacuumdelay physfs pic plotutils png pnp posix postgres ppds psyco pthreads pwdb python qt quicktime readline recode rplay samba sasl scanner sdl session shared silc skey slang slp smartcard smime sndfile soap sockets socks5 sox speex spell spl sqlite sse ssl stencil-buffer stroke svg svga sysvipc szip t1lib tcltk tcpd tetex theora tidy tiff tokenizer transcode truetype trusted type1 unicode usb v4l v4l2 vim-with-x wmf wxwindows x86 xchattext xface xfs xine xinerama xml xml2 xmlrpc xmms xosd xpm xprint xrandr xsl xv xvid zlib zvbi"

(re)install gdbm version:

sys-libs/gdbm-1.8.3-r1  +berkdb -debug -static


in case you need more info just throw a stone in my direction ;)
Comment 1 Bartosch Pixa (RETIRED) gentoo-dev 2004-08-19 12:22:10 UTC
Created attachment 37752 [details]
config.log with dbm enabled
Comment 2 Mike Messmore 2004-08-22 21:31:04 UTC
I have the same problem.  I cannot compile PHP 5.0.1 with anything that requires DBA (ie gdbm, berkdb, dbm, initfile).  Configure dies with the same message.  Let me know what information is useful to you and I will provide it.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-08-22 22:11:37 UTC
could you please do this:
emerge '=sys-libs/db-3*' '=sys-libs/db-4.0*' '=sys-libs/db-4.1*' '=sys-libs/db-
4.2*' 
then try to emerge php5 with various versions of gdbm and see if they all cause the problem or if some work?
Comment 4 Philipp Riegger 2004-10-07 03:16:37 UTC
I tried that, it does not work for me, i have +dba, +dbm, +gdbm, +berkdb
Comment 5 Georgi Georgiev 2004-12-17 00:14:22 UTC
Didn't work for me either. I modified the ebuilds to do this:

src_unpack() {
    php5-sapi_src_unpack
    sed -i -e 's!for LIB in dbm c gdbm!for LIB in dbm c gdbm gdbm_compat!' ${S}/configure
}

and it works now.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2005-06-27 18:47:14 UTC
*** Bug 84620 has been marked as a duplicate of this bug. ***
Comment 7 Stuart Herbert (RETIRED) gentoo-dev 2005-08-22 11:26:34 UTC
Hi,

Thank you for the fix.  I've added this to dev-lang/php-5.1.0_rc1 in the Gentoo
PHP Overlay [1].  We hope to get these packages into Portage in the next few
weeks, but in the meantime the overlay is available for general use.

[1] http://svn.gnqs.org/projects/gentoo-php-overlay/

Best regards,
Stu
Comment 8 Stuart Herbert (RETIRED) gentoo-dev 2005-08-22 11:47:29 UTC
*** Bug 64950 has been marked as a duplicate of this bug. ***
Comment 9 Stuart Herbert (RETIRED) gentoo-dev 2005-08-22 11:48:03 UTC
*** Bug 71148 has been marked as a duplicate of this bug. ***
Comment 10 Maximilian Engelhardt 2005-09-13 08:33:29 UTC
I'm also getting this with dev-lang/php-5.0.4 and the currently masked
dev-lang/php-5.0.5. Could you please also add a fix for these ebuilds to portage?

mobile ~ # emerge dev-lang/php -pv

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] dev-lang/php-5.0.4  -adabas -apache +apache2 +bcmath +berkdb
-birdstep +bzip2 +calendar -cdb -cgi -cli +crypt +ctype +curl +curlwrappers -db2
+dba +dbase +dbm -dbmaker -debug -discard-path +doc -empress -empress-bcs -esoob
+exif -fdftk -filepro -firebird -flatfile -force-cgi-redirect -frontbase +ftp
+gd -gd-external +gdbm +gmp -hardenedphp -hyperwave-api +iconv +imap -informix
+inifile -interbase -iodbc +ipv6 -java-external +jpeg +kerberos +ldap +libedit
+mcve +memlimit +mhash -ming -msql -mssql +mysql -mysqli +ncurses +nls -oci8
+odbc -oracle7 -ovrimos +pcntl +pcre -pdo-external -pear -pfpro +png +posix
-postgres -qdbm -readline -recode -sapdb +sasl +session +sharedext -sharedmem
+simplexml +snmp +soap +sockets -solid +spell +spl -sqlite +ssl -sybase
-sybase-ct +sysvipc +threads +tidy +tiff +tokenizer +truetype +wddx +xml2
+xmlrpc +xpm +xsl +yaz -zip +zlib 0 kB 
[ebuild  N    ] dev-php5/pecl-yaz-1.0.4  15 kB 

Total size of downloads: 15 kB

mobile ~ # emerge info
Portage 2.0.52-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1,
2.6.13.1-ss2.2-rc5 i686)
=================================================================
System uname: 2.6.13.1-ss2.2-rc5 i686 Intel(R) Pentium(R) M processor 1400MHz
Gentoo Base System version 1.12.0_pre8
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium-m -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/fax /usr/lib/mozilla/defaults/pref /usr/share/config
/var/bind /var/qmail/control /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -march=pentium-m -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.ITDNet.net/gentoo
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
http://distfiles.gentoo.org/distfiles/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d a52 aac aalib accessibility acl acpi alsa apache2 atlas
audiofile avi bash-completion bcmath berkdb bidi bitmap-fonts bluetooth bmp
bonobo browserplugin bzip2 calendar caps cdparanoia cdr cjk clamav cpdflib
cracklib crypt cscope ctype cups curl curlwrappers dba dbase dbm dbx dedicated
dga dio directfb divx4linux doc dri dts dv dvb dvd dvdr dvdread eds emacs
emacs-w3 emboss encode ethereal evo examples exif expat fam fastcgi fbcon ffmpeg
fftw flac flash foomaticdb fortran freewnn ftp gb gcj gd gdbm geoip ggi gif
ginac glut gmp gnome gnustep gnutls gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml
guile howl iconv ieee1394 imagemagick imap imlib inifile innodb ipv6 jabber java
jikes joystick jpeg kerberos krb4 ladcca lapack lcms ldap leim lesstif libcaca
libedit libgda libwww lm_sensors logrotate m17n-lib mad maildir matroska mbox
mcal mcve memlimit mhash mikmod mime mmap mmx mmx2 mmxext mng motif mozilla mp3
mpeg mpi mule mysql ncurses neXt netcdf nhc98 nis nls nntp nptl ocaml odbc ofx
ogg oggvorbis openal opengl osc pam pcmcia pcntl pcre pda pdflib perl php
plotutils png portaudio posix ppds prelude profile python qt quicktime radius
readline ruby samba sasl scanner sdl session sharedext sharedmem shorten
simplexml skey slang slp smartcard smtp sndfile snmp soap sockets source sox
speex spell spl sse sse2 ssl svg svga sysfs sysvipc szip tcltk tcpd tetex theora
threads tidy tiff tokenizer truetype truetype-fonts type1-fonts unicode usb v4l
v4l2 vcd videos vidix vorbis wddx wifi win32codecs wmf wxwindows xface xfs xine
xinerama xml xml2 xmlrpc xmms xosd xpm xprint xsl xv xvid xvmc yaz zeo zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2005-09-14 10:44:25 UTC
(In reply to comment #10)
> I'm also getting this with dev-lang/php-5.0.4 and the currently masked
> dev-lang/php-5.0.5. Could you please also add a fix for these ebuilds to portage?

Not sure what you mean, the patch from comment #5 *is* in the eclass.
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2005-09-15 03:33:59 UTC
OK, this use flag will be removed, since it's broken and unsupported upstream:

http://www.php.net/dba

<snip>
Dbm is the oldest (original) type of Berkeley DB style databases. You should
avoid it, if possible. We do not support the compatibility functions built into
DB2 and gdbm, because they are only compatible on the source code level, but
cannot handle the original dbm format.
</snip>
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2005-09-17 15:31:20 UTC
Use flag removed in overlay, will go into portage tomorrow w/ xml-rpc related
bugfixes.

Closing.