ID: 4051 Comment by: manish at imodeindia dot com Reported By: joel at nexthost dot com Status: Closed Bug Type: Compile Failure Operating System: Linux 2.2.10-1SGI_17smp i686 (Re PHP Version: 4.0 Release Candidate 1 New Comment:
But what is the MySQL thing was installed from an RPM?? Previous Comments: ------------------------------------------------------------------------ [2000-05-13 06:32:36] 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". ------------------------------------------------------------------------ [2000-04-06 13:38:22] 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-04-05 13:07:15] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=4051&edit=1
