Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11256 - PHP 4.2.3 compile error (dba_db3.c)
Summary: PHP 4.2.3 compile error (dba_db3.c)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-26 11:33 UTC by Jesse Farmer
Modified: 2003-02-04 19:42 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Farmer 2002-11-26 11:33:04 UTC
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.
Comment 1 Jesse Farmer 2002-12-04 22:39:10 UTC
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.
Comment 2 Ryan Phillips (RETIRED) gentoo-dev 2002-12-05 15:08:41 UTC
db 3 work? 
Comment 3 Jesse Farmer 2002-12-07 01:35:03 UTC
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.
Comment 4 Ryan Phillips (RETIRED) gentoo-dev 2002-12-16 15:02:06 UTC
resolved