PHP 4.0 Bug #8365 Updated: Build PHP4.0.4 with mysql fails with warnings/parse error
| From: | sniper@php.net | Date: | Thu, 28 Dec 2000 13:25:45 +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-42399@lists.php.net to get a copy of this message | ||
ID: 8365
Updated by: sniper
Reported By: michael@cs.utoronto.ca
Old-Status: Feedback
Status: Assigned
Bug Type: Compile Failure
Assigned To: venaas
Comments:
This is caused by having Openssl libraries in other
place than the configure expects them to be.
The configure must be fixed to check that
the libs for openssl really are found!
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-12-21 19:23:16] 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 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