|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22987 make crashes on dbug.c error
Submitted: 2003-03-31 12:15 UTC Modified: 2003-04-01 09:38 UTC
From: thickerson at e-guana dot net Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.3.2-RC OS: FreeBSD
Private report: No CVE-ID:
 [2003-03-31 12:15 UTC] thickerson at e-guana dot net
After running configure --with-java=<local j2sdk dir/bin>, I try to make and get the following error:

gcc -I/usr/home/eguana2/usr/local/php-4.3.1/ext/mysql/libmysql -Iext/mysql/ -I/usr/home/eguana2/usr/local/php-4.3.1/ext/mysql/ -DPHP_ATOM_INC -I/usr/home/eguana2/usr/local/php-4.3.1/include -I/usr/home/eguana2/usr/local/php-4.3.1/main -I/usr/home/eguana2/usr/local/php-4.3.1 -I/usr/home/eguana2/usr/local/php-4.3.1/Zend -I/usr/home/eguana2/usr/local/php-4.3.1/ext/xml/expat  -I/usr/home/eguana2/usr/local/php-4.3.1/TSRM  -g -O2  -c /usr/home/eguana2/usr/local/php-4.3.1/ext/mysql/libmysql/dbug.c -o ext/mysql/libmysql/dbug.o  && echo > ext/mysql/libmysql/dbug.lo
In file included from /usr/home/eguana2/usr/local/php-4.3.1/ext/mysql/libmysql/dbug.c:72:
/usr/home/eguana2/usr/local/php-4.3.1/ext/mysql/libmysql/global.h:260: warning: redefinition of `uint'
/usr/include/sys/types.h:57: warning: `uint' previously declared here
/usr/home/eguana2/usr/local/php-4.3.1/ext/mysql/libmysql/global.h:261: warning: redefinition of `ushort'
/usr/include/sys/types.h:56: warning: `ushort' previously declared here
/usr/home/eguana2/usr/local/php-4.3.1/ext/mysql/libmysql/dbug.c:1906: warning: static declaration for `perror' follows non-static
/usr/home/eguana2/usr/local/php-4.3.1/ext/mysql/libmysql/dbug.c: In function `perror':
/usr/home/eguana2/usr/local/php-4.3.1/ext/mysql/libmysql/dbug.c:1907: argument `s' doesn't match prototype
/usr/include/stdio.h:227: prototype declaration
*** Error code 1

I've found several reports on this problem, but no answers.  What is the nature of my problem?

Tom Hickerson,


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-31 17:52 UTC]
Please try using this CVS snapshot:
For Windows:

If the snapshot fails too, check the line in main/php_config.h with HAVE_PERROR.

 [2003-04-01 08:30 UTC] thickerson at e-guana dot net
Compiling the latest snapshot works only if you modify main/php_config.h and add the line 
I now get another error on make, which may be related to my own system and unrelated to this bug:

gcc  -IZend/ -I/usr/home/eguana2/usr/local/php4-STABLE-200304011230/Zend/ -DPHP_ATOM_INC -I/usr/home/eguana2/usr/local/php4-STABLE-200304011230/include -I/usr/home/eguana2/usr/local/php4-STABLE-200304011230/main -I/usr/home/eguana2/usr/local/php4-STABLE-200304011230 -I/usr/home/eguana2/usr/local/php4-STABLE-200304011230/Zend -I/usr/home/eguana2/usr/local/php4-STABLE-200304011230/ext/xml/expat  -I/usr/home/eguana2/usr/local/php4-STABLE-200304011230/TSRM  -g -O2  -c /usr/home/eguana2/usr/local/php4-STABLE-200304011230/Zend/zend_execute.c -o Zend/zend_execute.o  && echo > Zend/zend_execute.lo
/usr/home/eguana2/usr/local/php4-STABLE-200304011230/Zend/zend_execute.c: In function `execute':
/usr/home/eguana2/usr/local/php4-STABLE-200304011230/Zend/zend_execute.c:2494: virtual memory exhausted
*** Error code 1
 [2003-04-01 09:09 UTC] thickerson at e-guana dot net
works for the second error, sorry!
 [2003-04-01 09:38 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Sun Nov 29 08:02:02 2015 UTC