Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61465 - dev-php/mod_php-5.0.1 failed during configure
Summary: dev-php/mod_php-5.0.1 failed during configure
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 60438
  Show dependency tree
 
Reported: 2004-08-23 22:04 UTC by Tuan Van (RETIRED)
Modified: 2005-08-22 11:44 UTC (History)
0 users

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


Attachments
ebuild diff (mod_php-5.0.1.diff,389 bytes, patch)
2004-08-23 22:05 UTC, Tuan Van (RETIRED)
Details | Diff
ext/dba/config.m4 patch (mod_php-5.0.1-db.patch,1.34 KB, patch)
2004-08-23 22:07 UTC, Tuan Van (RETIRED)
Details | Diff
configure patch (mod_php-5.0.1-db.configure.patch,1.26 KB, patch)
2004-08-23 22:08 UTC, Tuan Van (RETIRED)
Details | Diff
emerge mod_php output (mod_php.emerge,13.33 KB, text/plain)
2004-08-24 07:14 UTC, Tuan Van (RETIRED)
Details
mod_php's config log (mod_php.config.log,49.56 KB, patch)
2004-08-24 07:21 UTC, Tuan Van (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tuan Van (RETIRED) gentoo-dev 2004-08-23 22:04:41 UTC
robbat2,
I've discuss with you about this and now I was be able to reproduce it.
patches and ebuild diff will follow.

# emerge mod_php -vp

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

Calculating dependencies ...done!
[ebuild   R   ] dev-php/mod_php-5.0.1  -adabas +apache2 -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
# emerge mod_php
<snip>
checking for db4 major version... configure: error: Header contains different version

!!! ERROR: dev-php/mod_php-5.0.1 failed.
!!! Function econf, Line 458, Exitcode 1
!!! econf failed
========================================
I've emerged sys-lib/db very recently(?)
# genlop --list | grep sys-libs/db
     Sat Feb 28 04:25:17 2004 >>> sys-libs/db-4.1.25_p1-r3
     Sat Feb 28 04:25:47 2004 >>> sys-libs/db-1.85-r1
     Wed Mar 17 20:04:20 2004 >>> sys-libs/db-3.2.9-r10
     Sun Jun 20 15:18:46 2004 >>> sys-libs/db-4.1.25_p1-r4
     Thu Aug 12 15:34:58 2004 >>> sys-libs/db-4.0.14-r3

headers & lib

# ls -lh /usr/include/db.h
lrwxrwxrwx  1 root root 10 Aug 12 15:34 /usr/include/db.h -> db4.1/db.h

# ls -lh /usr/lib/libdb*
-rw-r--r--  1 root root  874K Feb 28 04:25 /usr/lib/libdb1.a
lrwxrwxrwx  1 root root    11 Aug 12 15:34 /usr/lib/libdb-1.so -> libdb1.so.2
lrwxrwxrwx  1 root root    11 Aug 12 15:34 /usr/lib/libdb1.so -> libdb1.so.2
-rwxr-xr-x  1 root root   56K Feb 28 04:25 /usr/lib/libdb1.so.2
-rw-r--r--  1 root root  724K Mar 17 20:04 /usr/lib/libdb-3.2.a
-rw-r--r--  1 root root   639 Mar 17 20:04 /usr/lib/libdb-3.2.la
-rwxr-xr-x  1 root root  518K Mar 17 20:04 /usr/lib/libdb-3.2.so
lrwxrwxrwx  1 root root    12 Aug 12 15:34 /usr/lib/libdb-3.so -> libdb-3.2.so
-r--r--r--  1 root root  887K Aug 12 15:34 /usr/lib/libdb-4.0.a
-r--r--r--  1 root root   713 Aug 12 15:34 /usr/lib/libdb-4.0.la
-rw-r--r--  1 root root 1021K Jun 20 15:17 /usr/lib/libdb-4.1.a
-rw-r--r--  1 root root   713 Jun 20 15:17 /usr/lib/libdb-4.1.la
-rwxr-xr-x  1 root root  764K Jun 20 15:17 /usr/lib/libdb-4.1.so
lrwxrwxrwx  1 root root    21 Aug 12 16:14 /usr/lib/libdb-4.so -> /usr/lib/libdb-4.1.so
lrwxrwxrwx  1 root root    11 Aug 12 15:34 /usr/lib/libdb.a -> libdb-4.1.a
-rw-r--r--  1 root root  787K Mar 17 20:04 /usr/lib/libdb_cxx-3.2.a
-rw-r--r--  1 root root   659 Mar 17 20:04 /usr/lib/libdb_cxx-3.2.la
-rwxr-xr-x  1 root root  562K Mar 17 20:04 /usr/lib/libdb_cxx-3.2.so
lrwxrwxrwx  1 root root    16 Aug 12 15:34 /usr/lib/libdb_cxx-3.so -> libdb_cxx-3.2.so
-r--r--r--  1 root root  955K Aug 12 15:34 /usr/lib/libdb_cxx-4.0.a
-r--r--r--  1 root root   741 Aug 12 15:34 /usr/lib/libdb_cxx-4.0.la
-r-xr-xr-x  1 root root  710K Aug 12 15:34 /usr/lib/libdb_cxx-4.0.so
-rw-r--r--  1 root root  1.1M Jun 20 15:17 /usr/lib/libdb_cxx-4.1.a
-rw-r--r--  1 root root   741 Jun 20 15:17 /usr/lib/libdb_cxx-4.1.la
-rwxr-xr-x  1 root root  830K Jun 20 15:17 /usr/lib/libdb_cxx-4.1.so
lrwxrwxrwx  1 root root    15 Aug 12 15:34 /usr/lib/libdb_cxx.a -> libdb_cxx-4.1.a
lrwxrwxrwx  1 root root    16 Aug 12 15:34 /usr/lib/libdb_cxx.so -> libdb_cxx-4.1.so
lrwxrwxrwx  1 root root    16 Aug 12 15:34 /usr/lib/libdb_cxx.so.3 -> libdb_cxx-3.2.so
-r--r--r--  1 root root  986K Aug 12 15:34 /usr/lib/libdb_java-4.0.a
-r--r--r--  1 root root   748 Aug 12 15:34 /usr/lib/libdb_java-4.0.la
-r-xr-xr-x  1 root root  730K Aug 12 15:34 /usr/lib/libdb_java-4.0.so
-rw-r--r--  1 root root  1.2M Jun 20 15:17 /usr/lib/libdb_java-4.1.a
-rw-r--r--  1 root root   748 Jun 20 15:17 /usr/lib/libdb_java-4.1.la
-rwxr-xr-x  1 root root  843K Jun 20 15:17 /usr/lib/libdb_java-4.1.so
lrwxrwxrwx  1 root root    16 Aug 12 15:34 /usr/lib/libdb_java.a -> libdb_java-4.1.a
lrwxrwxrwx  1 root root    17 Aug 12 15:34 /usr/lib/libdb_java.so -> libdb_java-4.1.so
lrwxrwxrwx  1 root root    12 Aug 12 15:34 /usr/lib/libdb.so -> libdb-4.1.so
lrwxrwxrwx  1 root root    11 Aug 12 15:34 /usr/lib/libdb.so.2 -> libdb1.so.2
lrwxrwxrwx  1 root root    12 Aug 12 15:34 /usr/lib/libdb.so.3 -> libdb-3.2.so
-r--r--r--  1 root root 1023K Aug 12 15:34 /usr/lib/libdb_tcl-4.0.a
-r--r--r--  1 root root   741 Aug 12 15:34 /usr/lib/libdb_tcl-4.0.la
-r-xr-xr-x  1 root root  754K Aug 12 15:34 /usr/lib/libdb_tcl-4.0.so
-rw-r--r--  1 root root  1.1M Jun 20 15:17 /usr/lib/libdb_tcl-4.1.a
-rw-r--r--  1 root root   741 Jun 20 15:17 /usr/lib/libdb_tcl-4.1.la
-rwxr-xr-x  1 root root  830K Jun 20 15:17 /usr/lib/libdb_tcl-4.1.so
lrwxrwxrwx  1 root root    15 Aug 12 15:34 /usr/lib/libdb_tcl.a -> libdb_tcl-4.1.a
lrwxrwxrwx  1 root root    16 Aug 12 15:34 /usr/lib/libdb_tcl.so -> libdb_tcl-4.1.so
Comment 1 Tuan Van (RETIRED) gentoo-dev 2004-08-23 22:05:27 UTC
Created attachment 38074 [details, diff]
ebuild diff
Comment 2 Tuan Van (RETIRED) gentoo-dev 2004-08-23 22:07:01 UTC
Created attachment 38075 [details, diff]
ext/dba/config.m4 patch
Comment 3 Tuan Van (RETIRED) gentoo-dev 2004-08-23 22:08:04 UTC
Created attachment 38076 [details, diff]
configure patch
Comment 4 Tuan Van (RETIRED) gentoo-dev 2004-08-23 22:12:54 UTC
one more thing. You may want to add the wanrning to include
`rm /etc/apache2/conf/modules.d/70_mod_php.conf`
oherwise apache will complain:
# /etc/init.d/apache2 restart
 * Apache2 has detected a syntax error in your configuration files:
Syntax error on line 5 of /usr/lib/apache2/conf/modules.d/70_mod_php.conf:
Cannot load /usr/lib/apache2/extramodules/libphp4.so into server: /usr/lib/apache2/extramodules/libphp4.so: cannot open shared object file: No such file or directory
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-08-23 23:44:13 UTC
langthang: from your problem machine, could you please attach the complete 'emerge php' output that shows the problem, and the config.log file from PHP?

I want to take your fix to upstream :-)
Comment 6 Tuan Van (RETIRED) gentoo-dev 2004-08-24 07:14:23 UTC
Created attachment 38092 [details]
emerge mod_php output
Comment 7 Tuan Van (RETIRED) gentoo-dev 2004-08-24 07:21:40 UTC
Created attachment 38094 [details, diff]
mod_php's config log

if you take this upstream, please mention them that they can combine with-db2
with-db3 with-db4 to with-db. If that fixes, we can loose the hard depend on
db-4 un less we don't want to support anything < db4.
May be the patches need a little change. I'll look in to it as soon as a got
some free time.
Comment 8 Stuart Herbert (RETIRED) gentoo-dev 2005-08-22 11:44:15 UTC
Hi,

PHP 5.0.1 is now very obsolete.  Please test dev-lang/php-5.1.0* in the Gentoo
PHP Overlay [1], and open a new bug if you find any problems.

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

Best regards,
Stu