PHP 4.2.3 fails to compile on my AMD Athlon XP computer (1.53GHz/512MB RAM) with the following error: /bin/sh /var/tmp/portage/php-4.2.3-r1/work/php-4.2.3/libtool --silent --mode=compile gcc -I. -I/var/tmp/portage/php-4.2.3-r1/work/php-4.2.3/ext/dba -I/var/tmp/portage/php-4.2.3-r1/work/php-4.2.3/main -I/var/tmp/portage/php-4.2.3-r1/work/php-4.2.3 -I/usr/include/apache -I/var/tmp/portage/php-4.2.3-r1/work/php-4.2.3/Zend -I/usr/include/libxml2 -I/usr/include/mysql -I/var/tmp/portage/php-4.2.3-r1/work/php-4.2.3/ext/xml/expat -DHARD_SERVER_LIMIT=512 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX=22 -DTARGET="apache" -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -DEAPI -DEAPI_MM -I/var/tmp/portage/php-4.2.3-r1/work/php-4.2.3/TSRM -march=athlon-xp -O3 -mmmx -msse -m3dnow -pipe -prefer-pic -c dba_db3.c dba_db3.c: In function `dba_open_db3': dba_db3.c:77: warning: passing arg 2 of pointer to function from incompatible pointer type dba_db3.c:77: incompatible type for argument 4 of indirect function call dba_db3.c:77: too few arguments to function make[3]: *** [dba_db3.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/php-4.2.3-r1/work/php-4.2.3/ext/dba' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/php-4.2.3-r1/work/php-4.2.3/ext/dba' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/php-4.2.3-r1/work/php-4.2.3/ext' make: *** [all-recursive] Error 1 !!! ERROR: dev-php/php-4.2.3-r1 failed. !!! Function src_compile, Line 226, Exitcode 2 !!! compile problem Other people with Athlon CPUs complained of the same problem, though that might just be a coincidence. I am using gcc 3.2-r4 to compile on a 1.4 system.
After a bit of investigation, I believe this bug is caused by having db >= 4.1 installed. I'm not sure how to fix it, however.
db 3 work?
Yes, db 3 works. I uninstalled db 4.1 and it compiled fine. I'm not sure how 4.1 got installed in the first place, as the only thing that seemed to complain when it was uninstalled was mod_ssl. However, compiling mod_ssl again without 4.1 installed fixed the problem.
resolved