PHP 4.0 Bug #8365 Updated: Build PHP4.0.4 with mysql fails with warnings/parse error
| From: | sniper@php.net | Date: | Fri, 22 Dec 2000 00:23:16 +0000 |
| Subject: | PHP 4.0 Bug #8365 Updated: Build PHP4.0.4 with mysql fails with warnings/parse error | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-42097@lists.php.net to get a copy of this message | ||
ID: 8365
Updated by: sniper
Reported By: michael@cs.utoronto.ca
Status: Feedback
Bug Type: Compile Failure
Assigned To:
Comments:
Please check the php-4.0.4/main/php_config.h for this:
#define HAVE_UINT
If it doesn't exist, do this:
# rm config.cache ; ./configure
And after configure finishes, check the php-4.0.4/main/php_config.h again.
If that define isn't there even then, send me the config.log:
sniper@php.net
And what is the Linux distribution you're using? Just saying GNU/Linux is
not that informative. :)
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-12-21 19:22:26] sniper@php.net
Please check the php-4.0.4/main/php_config.h for this:
#define HAVE_UINT
If it doesn't exist, do this:
# rm config.cache ; ./configure
And after configure finishes, check the php-4.0.4/main/php_config.h again.
If that define isn't there even then, send me the config.log:
sniper@php.net
And what is the Linux distribution you're using? Just saying GNU/Linux is
not that informative. :)
--Jani
---------------------------------------------------------------------------
[2000-12-21 15:50:04] michael@cs.utoronto.ca
./configure --prefix=/local/php4 --with-apxs=/local/apache/bin/apxs --with-openssl --with-mysql
--with-gnu-ld
------------
[USER@HOST php4.0.4]# make
<snip>
make[1]: Entering directory `/usr/local/updates/php-4.0.4/ext/mysql/libmysql'
/bin/sh /usr/local/updates/php-4.0.4/libtool --silent --mode=compile gcc -I.
-I/usr/local/updates/php-4.0.4/ext/mysql/libmysql -I/usr/local/updates/php-4.0.4/main
-I/usr/local/updates/php-4.0.4 -I/local/apache/include -I/usr/local/updates/php-4.0.4/Zend
-I/usr/local/include -I/usr/local/updates/php-4.0.4/ext/mysql/libmysql
-I/usr/local/updates/php-4.0.4/ext/xml/expat/xmltok
-I/usr/local/updates/php-4.0.4/ext/xml/expat/xmlparse -I/usr/local/updates/php-4.0.4/TSRM -DLINUX=2
-DMOD_SSL=207101 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -DXML_BYTE_ORDER=12 -g -O2 -c libmysql.c
In file included from libmysql.c:9:
global.h:228: warning: redefinition of `uint'
/usr/include/sys/types.h:131: warning: `uint' previously declared here
global.h:229: warning: redefinition of `ushort'
/usr/include/sys/types.h:130: warning: `ushort' previously declared here
In file included from libmysql.c:12:
m_string.h:180: parse error before `__extension__'
m_string.h:180: parse error before `&&'
make[1]: *** [libmysql.lo] Error 1
make[1]: Leaving directory `/usr/local/updates/php-4.0.4/ext/mysql/libmysql'
make: *** [all-recursive] Error 1
[USER@HOST php4.0.4]#
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8365