#20229 [NEW]: PHP4 Compile errors with mysql module
| From: | idave at idave dot it | Date: | Sun, 03 Nov 2002 17:07:54 +0000 |
| Subject: | #20229 [NEW]: PHP4 Compile errors with mysql module | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-23992@lists.php.net to get a copy of this message | ||
From: idave@idave.it
Operating system: RedHat Linux 8.0
PHP version: 4CVS-2002-11-03
PHP Bug Type: Compile Failure
Bug description: PHP4 Compile errors with mysql module
Got php from CVS, following the instructions found @
http://php.net/anoncvs, with the right versions of autoconf,
automake and
libtool.
Configured with these arguments:
CC=/usr/local/gcc2/bin/gcc CXX=/usr/local/gcc2/bin/g++ sh configure
--disable-debug
--with-bz2=/usr/local --with-curl=/usr/local --with-dom=/usr/local
--with-png-dir=/usr/local --with-gd=/usr/local/gd --enable-gd-native-ttf
--with-gdbm=/usr/local --with-gmp=/usr/local --with-jpeg-dir=/usr/local
--with-xml --with-zlib=/usr/local --enable-exif --enable-ftp
--enable-magic-quotes --enable-sockets --enable-sysvsem --enable-sysvshm
--enable-discard-path --enable-trans-sid --enable-wddx --with-kerberos
--with-mysql --enable-bcmath --enable-shmop --enable-versioning
--enable-calendar --enable-dbx --enable-dio --enable-mbstring
--enable-mbstr-enc-trans --with-apxs=/usr/local/apache/bin/apxs
--with-freetype-dir=/usr/local --with-mhash=/usr/local
--with-mcal=/usr/local/mcal --with-pgsql=/usr/local/pgsql
--with-openssl=shared,/usr/local/ssl --with-mysql
(CC=/usr/local/gcc2/bin/gcc is GCC 2.95.3)
Once configured, I type "make" and all goes ok, but once it arrives to the
mysql module...
/bin/sh libtool --silent --mode=compile /usr/local/gcc2/bin/gcc
-I/root/build/phIext/mysql/ -I/root/build/php4/ext/mysql/ -DPHP_ATOM_INC
-I/root/build/php4/inclmain -I/root/build/php4 -I/root/build/php4/Zend
-I/usr/local/ssl/include -I/usr/cal/include/libxml2
-I/usr/local/include/freetype2 -I/usr/local/gd/include
-I/us/usr/local/pgsql/include -I/root/build/php4/ext/xml/expat -DLINUX=22
-DMOD_SSL=EAPI -I/root/build/php4/TSRM -g -O2 -prefer-pic -c
/root/build/php4/ext/mysql/l/php_mysql.lo
/bin/sh libtool --silent --mode=compile /usr/local/gcc2/bin/gcc
-I/root/build/phIext/mysql/ -I/root/build/php4/ext/mysql/ -DPHP_ATOM_INC
-I/root/build/php4/inclmain -I/root/build/php4 -I/root/build/php4/Zend
-I/usr/local/ssl/include -I/usr/cal/include/libxml2
-I/usr/local/include/freetype2 -I/usr/local/gd/include
-I/us/usr/local/pgsql/include -I/root/build/php4/ext/xml/expat -DLINUX=22
-DMOD_SSL=EAPI -I/root/build/php4/TSRM -g -O2 -prefer-pic -c
/root/build/php4/ext/mysql/ext/mysql/libmysql/libmysql.lo
In file included from /root/build/php4/ext/mysql/libmysql/libmysql.c:4:
/root/build/php4/ext/mysql/libmysql/global.h:136: parse error
In file included from /root/build/php4/ext/mysql/libmysql/libmysql.c:4:
/root/build/php4/ext/mysql/libmysql/global.h:505: parse error
In file included from /root/build/php4/ext/mysql/libmysql/libmysql.c:11:
/root/build/php4/ext/mysql/libmysql/m_string.h:208: parse error
make: *** [ext/mysql/libmysql/libmysql.lo] Error 1
I tried configuring with the following options:
1) --with-mysql=shared,/usr/local/mysql
2) --with-mysql=/usr/local/mysql
Nothing changed.
--
Edit bug report at http://bugs.php.net/?id=20229&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20229&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20229&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20229&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20229&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20229&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20229&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20229&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20229&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20229&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20229&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20229&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20229&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20229&r=isapi