Bug #17809: Failure When Compiling MySQL
| From: | emrecio at netscape dot net | Date: | Tue, 18 Jun 2002 03:21:23 +0000 |
| Subject: | Bug #17809: Failure When Compiling MySQL | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-11015@lists.php.net to get a copy of this message | ||
From: emrecio@netscape.net
Operating system: RedHat 7.3/Linux
PHP version: 4.2.1
PHP Bug Type: Compile Failure
Bug description: Failure When Compiling MySQL
Compiling PHP-4.2.1 with the following options:
./configure --with-apxs=/usr/sbin/apxs --enable-dbase --enable-ftp
--with-gd --with-ldap --with-imap --with-mysql --with-mm --with-openssl
--with-zlib --enable-bcmath --with-kerberos=/usr --with-freetype-dir=/usr
--with-png-dir=/usr --with-jpeg-dir=/usr --with-imap-ssl=/usr
--with-xpm-dir=/usr --with-mhash --with-gdbm=/usr
Causes the following error when it gets to MySQL:
make[4]: Entering directory `/usr/local/src/php-4.2.1/ext/mysql/libmysql'
/bin/sh /usr/local/src/php-4.2.1/libtool --silent --mode=compile gcc -I.
-I/usr/local/src/php-4.2.1/ext/mysql/libmysql
-I/usr/local/src/php-4.2.1/main -I/usr/local/src/php-4.2.1
-I/usr/include/apache -I/usr/local/src/php-4.2.1/Zend
-I/usr/include/freetype2/freetype -I/usr/include/imap -I/usr/local/include
-I/usr/local/src/php-4.2.1/ext/mysql/libmysql
-I/usr/local/src/php-4.2.1/ext/xml/expat -DLINUX=22 -DEAPI -DEAPI_MM
-DEAPI_MM_CORE_PATH=/var/run/httpd.mm -I/usr/local/src/php-4.2.1/TSRM -g
-O2 -prefer-pic -c libmysql.c
In file included from libmysql.c:5:
global.h:256: warning: redefinition of `uint'
/usr/include/sys/types.h:152: warning: `uint' previously declared here
global.h:257: warning: redefinition of `ushort'
/usr/include/sys/types.h:151: warning: `ushort' previously declared here
global.h:258: warning: redefinition of `ulong'
/usr/include/sys/types.h:150: warning: `ulong' 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[4]: *** [libmysql.lo] Error 1
make[4]: Leaving directory `/usr/local/src/php-4.2.1/ext/mysql/libmysql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/php-4.2.1/ext/mysql/libmysql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php-4.2.1/ext/mysql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.2.1/ext'
make: *** [all-recursive] Error 1
--
Edit bug report at http://bugs.php.net/?id=17809&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17809&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17809&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17809&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17809&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17809&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17809&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17809&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17809&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17809&r=globals