php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4051 PHP4 Make Errors with libmysql
Submitted: 2000-04-05 13:07 UTC Modified: 2000-05-13 06:32 UTC
From: joel at nexthost dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Release Candidate 1 OS: Linux 2.2.10-1SGI_17smp i686 (Re
Private report: No CVE-ID: None
 [2000-04-05 13:07 UTC] joel at nexthost dot com
Compiler Version: pgcc-2.95.2

PHP4 Configure Options:

CC="/usr/local/pgcc/bin/gcc" CFLAGS="-O6 -mpentium" ./configure --with-config-file-path=/etc/ --disable-debug --enable-track-vars -with-apache=../apache_1.3.12 --with-cybercash=../mck-3.2.0.4-linux --with-ftp --with-mm --with-mhash --with-mysql --with-snmp --enable-ucd-snmp-hack --enable-static

MySQL Configure Options:

CC="/usr/local/pgcc/bin/gcc" CFLAGS="-O6 -mpentium -mstack-align-double -fomit-frame-pointer" CXX="/usr/local/pgcc/bin/gcc" CXXFLAGS="-O6 -mpentium -mstack-align-double -fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti" ./configure --enable-assembler --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static

Make Error:

make[4]: Entering directory `/root/httpd/php-4.0RC1/ext/mysql/libmysql'
gcc -DHAVE_CONFIG_H -I. -I/root/httpd/php-4.0RC1/ext/mysql/libmysql -I../../.. -I../../../Zend -I/root/httpd/php-4.0RC1 -I/root/httpd/apache_1.3.12/src/include -I/root/httpd/apache_1.3.12/src/os/unix -I/root/httpd/mck-3.2.0.4-linux/c-api -I/usr/local/include -I/root/httpd/php-4.0RC1/ext/mysql/libmysql -I/usr/include/ucd-snmp -I/root/httpd/php-4.0RC1/ext/xml/expat/xmltok -I/root/httpd/php-4.0RC1/ext/xml/expat/xmlparse  -DXML_BYTE_ORDER=12 -D_REENTRANT -g -O2  -c libmysql.c && touch libmysql.lo
In file included from libmysql.c:11:
global.h:194: warning: redefinition of `uint'
/usr/include/sys/types.h:131: warning: `uint' previously declared here
global.h:195: warning: redefinition of `ushort'
/usr/include/sys/types.h:130: warning: `ushort' previously declared here
In file included from libmysql.c:14:
m_string.h:165: parse error before `__extension__'
m_string.h:165: parse error before `&&'
make[4]: *** [libmysql.lo] Error 1
make[4]: Leaving directory `/root/httpd/php-4.0RC1/ext/mysql/libmysql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/httpd/php-4.0RC1/ext/mysql/libmysql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/httpd/php-4.0RC1/ext/mysql'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/root/httpd/php-4.0RC1/ext'
make: *** [all-recursive] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-04-06 13:38 UTC] joel at nexthost dot com
On a side note, I also had the same problem as bug 4005 (--with-mcrypt compile errors).

This morning I got the latest CVS update, but the problem still persisted.  I've also tried using the latest version of egcs, but without any difference.

Latest Configure Options Used:

CC="/usr/local/pgcc/bin/gcc" CFLAGS="-O6 -mpentium" ./configure --with-config-file-path=/etc/ --disable-debug --enable-track-vars -with-apache=../apache_1.3.12 --with-cybercash=../mck-3.2.0.4-linux --with-dom --with-ftp --with-mm --with-mcrypt --with-mhash --with-mysql --with-snmp --enable-ucd-snmp-hack --enable-inline-optimization
 [2000-05-13 06:32 UTC] sas at cvs dot php dot net
If you have MySQL installed on your system, you should make PHP use it. Instead of using "--with-mysql" configure PHP with "--with-mysql=/installation/prefix/of/mysql".
 [2003-06-03 21:14 UTC] manish at imodeindia dot com
But what is the MySQL thing was installed from an RPM??
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Dec 04 17:00:01 2025 UTC