php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18222 Fails to build libmysql (v. similar to #17809)
Submitted: 2002-07-08 07:21 UTC Modified: 2002-07-12 19:00 UTC
From: atibbalds at accessdevices dot co dot uk Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4CVS-2002-07-08 OS: redhat 7.2
Private report: No CVE-ID: None
 [2002-07-08 07:21 UTC] atibbalds at accessdevices dot co dot uk
Very similar issue to bug #17809

 ./configure --with-apxs --with-mysql --with-imap --with-imap-ssl --with-kerberos

/bin/sh libtool --silent --mode=compile gcc -I/home/adam/php4-200207080300/ext/mysql/libmysql -Iext/mysql/ -I/home/adam/php4-200207080300/ext/mysql/ -DPHP_ATOM_INC -I/home/adam/php4-200207080300/include -I/home/adam/php4-200207080300/main -I/home/adam/php4-200207080300 -I/home/adam/php4-200207080300/Zend -I/usr/include/imap -I/home/adam/php4-200207080300/ext/xml/expat  -DLINUX=22 -DEAPI -DEAPI_MM -DUSE_EXPAT -DEAPI_MM_CORE_PATH=/var/run/httpd.mm -I/home/adam/php4-200207080300/TSRM -g -O2  -prefer-pic -c /home/adam/php4-200207080300/ext/mysql/php_mysql.c -o ext/mysql/php_mysql.lo 
/home/adam/php4-200207080300/ext/mysql/php_mysql.c:57: warning: redefinition of `ushort'
/usr/include/sys/types.h:151: warning: `ushort' previously declared here
/bin/sh libtool --silent --mode=compile gcc -I/home/adam/php4-200207080300/ext/mysql/libmysql -Iext/mysql/ -I/home/adam/php4-200207080300/ext/mysql/ -DPHP_ATOM_INC -I/home/adam/php4-200207080300/include -I/home/adam/php4-200207080300/main -I/home/adam/php4-200207080300 -I/home/adam/php4-200207080300/Zend -I/usr/include/imap -I/home/adam/php4-200207080300/ext/xml/expat  -DLINUX=22 -DEAPI -DEAPI_MM -DUSE_EXPAT -DEAPI_MM_CORE_PATH=/var/run/httpd.mm -I/home/adam/php4-200207080300/TSRM -g -O2  -prefer-pic -c /home/adam/php4-200207080300/ext/mysql/libmysql/libmysql.c -o ext/mysql/libmysql/libmysql.lo 
In file included from /home/adam/php4-200207080300/ext/mysql/libmysql/libmysql.c:4:
/home/adam/php4-200207080300/ext/mysql/libmysql/global.h:260: warning: redefinition of `uint'
/usr/include/sys/types.h:152: warning: `uint' previously declared here
/home/adam/php4-200207080300/ext/mysql/libmysql/global.h:261: warning: redefinition of `ushort'
/usr/include/sys/types.h:151: warning: `ushort' previously declared here
In file included from /home/adam/php4-200207080300/ext/mysql/libmysql/libmysql.c:11:
/home/adam/php4-200207080300/ext/mysql/libmysql/m_string.h:183: parse error before `__extension__'
/home/adam/php4-200207080300/ext/mysql/libmysql/m_string.h:183: parse error before `&&'
make: *** [ext/mysql/libmysql/libmysql.lo] Error 1


Redhat 7.2 (enigma)
mysql-devel-3.23.41-1.rpm
apache-devel-1.3.20-16.rpm
imap-devel-2000c-15.rpm
gcc-2.96-9.rpm
gcc-c++-2.96-98.rpm




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-08 22:32 UTC] sniper@php.net
What is in your main/php_config.h for HAVE_UINT and HAVE_USHORT ?

 [2002-07-10 09:28 UTC] atibbalds at accessdevices dot co dot uk
from main/php_config.h (make

/*   */
#define HAVE_UINT

/*   */
#define HAVE_USHORT
 [2002-07-12 19:00 UTC] sniper@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 20:00:02 2026 UTC