#37748 [NEW]: --with-mysql causes compile to fail

From: Date: Thu, 08 Jun 2006 17:16:29 +0000
Subject: #37748 [NEW]: --with-mysql causes compile to fail
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-98194@lists.php.net to get a copy of this message
From: marr_andy at yahoo dot co dot uk Operating system: Solaris 10 PHP version: 5.1.4 PHP Bug Type: Compile Failure Bug description: --with-mysql causes compile to fail Description: ------------ Hi all I have the following setup Solaris 10 on Sparc Sun packaged version of Mysql inc source Sun Studio 11 compiler Latest libxml as the sun version is not compat. I am running the following: ./configure --with-apxs2=/usr/apache2/bin/apxs \ --with-mysql=/usr/sfw --enable-dbase \ --with-libxml-dir=/usr/local \ --with-config-file-path=/etc/apache2 when I go to compile I get the following warnings and an error. # make /bin/sh /var/tmp/php-5.1.4/libtool --silent --preserve-dup-deps --mode=compile cc -Iext/libxml/ -I/var/tmp/php-5.1.4/ext/libxml/ -DPHP_ATOM_INC -I/var/tmp/php-5.14/include -I/var/tmp/php-5.1.4/main -I/var/tmp/php-5.1.4 -I/usr/local/include/libml2 -I/var/tmp/php-5.1.4/ext/date/lib -I/usr/sfw/include -I/var/tmp/php-5.1.4/TSR -I/var/tmp/php-5.1.4/Zend -D_POSIX_PTHREAD_SEMANTICS -I/usr/include -g -c /vr/tmp/php-5.1.4/ext/libxml/libxml.c -o ext/libxml/libxml.lo "/var/tmp/php-5.1.4/ext/libxml/libxml.c", line 264: warning: argument #1 is incomatible with prototype: prototype: pointer to const char : "/usr/local/include/libxml2/libxml/urih", line 56 argument : pointer to unsigned char "/var/tmp/php-5.1.4/ext/libxml/libxml.c", line 265: warning: argument #1 is incomatible with prototype: prototype: pointer to const unsigned char : "/usr/local/include/libxml2/lbxml/xmlstring.h", line 68 argument : pointer to char "/var/tmp/php-5.1.4/ext/libxml/libxml.c", line 265: warning: argument #2 is incomatible with prototype: prototype: pointer to const unsigned char : "/usr/local/include/libxml2/lbxml/xmlstring.h", line 68 argument : pointer to char "/var/tmp/php-5.1.4/ext/libxml/libxml.c", line 433: warning: argument #1 is incomatible with prototype: prototype: pointer to const unsigned char : "/usr/local/include/libxml2/lbxml/xmlstring.h", line 42 argument : pointer to const char "/var/tmp/php-5.1.4/ext/libxml/libxml.c", line 433: warning: assignment type mismtch: pointer to char "=" pointer to unsigned char .. .. .. /bin/sh /var/tmp/php-5.1.4/libtool --silent --preserve-dup-deps --mode=compile cc -I"/usr/include" -Iext/iconv/ -I/var/tmp/php-5.1.4/ext/iconv/ -DPHP_ATOM_INC -I/var/tmp/php-5.1.4/include -I/var/tmp/php-5.1.4/main -I/var/tmp/php-5.1.4 -I/usr/local/include/libxml2 -I/var/tmp/php-5.1.4/ext/date/lib -I/usr/sfw/include -I/var/tmp/php-5.1.4/TSRM -I/var/tmp/php-5.1.4/Zend -D_POSIX_PTHREAD_SEMANTICS -I/usr/include -g -c /var/tmp/php-5.1.4/ext/iconv/iconv.c -o ext/iconv/iconv.lo "/var/tmp/php-5.1.4/ext/iconv/iconv.c", line 45: warning: #include of /usr/include/... may be non-portable "/var/tmp/php-5.1.4/ext/iconv/iconv.c", line 254: warning: argument #2 is incompatible with prototype: prototype: pointer to pointer to const char : "/usr/include/iconv.h", line 27 argument : pointer to pointer to char "/var/tmp/php-5.1.4/ext/iconv/iconv.c", line 414: warning: argument #2 is incompatible with prototype: prototype: pointer to pointer to const char : "/usr/include/iconv.h", line 27 argument : pointer to pointer to char "/var/tmp/php-5.1.4/ext/iconv/iconv.c", line 528: warning: argument #2 is incompatible with prototype: prototype: pointer to pointer to const char : "/usr/include/iconv.h", line 27 argument : pointer to pointer to char "/var/tmp/php-5.1.4/ext/iconv/iconv.c", line 588: warning: argument #1 is incompatible with prototype: prototype: pointer to unsigned int : "/var/tmp/php-5.1.4/ext/iconv/iconv.c", line 488 argument : pointer to int "/var/tmp/php-5.1.4/ext/iconv/iconv.c", line 641: warning: argument #2 is incompatible with prototype: prototype: pointer to pointer to const char : "/usr/include/iconv.h", line 27 argument : pointer to pointer to char "/var/tmp/php-5.1.4/ext/iconv/iconv.c", line 772: warning: argument #2 is incompatible with prototype: prototype: pointer to pointer to const char : "/usr/include/iconv.h", line 27 argument : pointer to pointer to char "/var/tmp/php-5.1.4/ext/iconv/iconv.c", line 1021: warning: argument #2 is incompatible with prototype: prototype: pointer to pointer to const char : "/usr/include/iconv.h", line 27 argument : pointer to pointer to char "/var/tmp/php-5.1.4/ext/iconv/iconv.c", line 1081: warning: argument #1 is incompatible with prototype: prototype: pointer to const unsigned char : "/var/tmp/php-5.1.4/ext/standard/base64.h", line 27 argument : pointer to char "/var/tmp/php-5.1.4/ext/iconv/iconv.c", line 1081: warning: assignment type mismatch: pointer to char "=" pointer to unsigned char "/var/tmp/php-5.1.4/ext/iconv/iconv.c", line 1121: warning: argument #2 is incompatible with prototype: prototype: pointer to pointer to const char : "/usr/include/iconv.h", line 27 argument : pointer to pointer to char "/var/tmp/php-5.1.4/ext/iconv/iconv.c", line 2379: warning: argument #2 is incompatible with prototype: prototype: pointer to pointer to const char : "/usr/include/iconv.h", line 27 argument : pointer to pointer to char "/var/tmp/php-5.1.4/ext/iconv/iconv.c", line 2458: warning: argument #2 is incompatible with prototype: prototype: pointer to pointer to const char : "/usr/include/iconv.h", line 27 argument : pointer to pointer to char /bin/sh /var/tmp/php-5.1.4/libtool --silent --preserve-dup-deps --mode=compile cc -Iext/mysql/ -I/var/tmp/php-5.1.4/ext/mysql/ -DPHP_ATOM_INC -I/var/tmp/php-5.1.4/include -I/var/tmp/php-5.1.4/main -I/var/tmp/php-5.1.4 -I/usr/local/include/libxml2 -I/var/tmp/php-5.1.4/ext/date/lib -I/usr/sfw/include -I/var/tmp/php-5.1.4/TSRM -I/var/tmp/php-5.1.4/Zend -D_POSIX_PTHREAD_SEMANTICS -I/usr/include -g -c /var/tmp/php-5.1.4/ext/mysql/php_mysql.c -o ext/mysql/php_mysql.lo "/var/tmp/php-5.1.4/ext/mysql/php_mysql.h", line 51: token not allowed in directive: @ "/var/tmp/php-5.1.4/ext/mysql/php_mysql.c", line 82: token not allowed in directive: @ "/var/tmp/php-5.1.4/ext/mysql/php_mysql.c", line 92: token not allowed in directive: @ "/var/tmp/php-5.1.4/ext/mysql/php_mysql.c", line 96: token not allowed in directive: @ "/var/tmp/php-5.1.4/ext/mysql/php_mysql.c", line 100: token not allowed in directive: @ "/var/tmp/php-5.1.4/ext/mysql/php_mysql.c", line 111: token not allowed in directive: @ "/var/tmp/php-5.1.4/ext/mysql/php_mysql.c", line 132: token not allowed in directive: @ "/var/tmp/php-5.1.4/ext/mysql/php_mysql.c", line 191: token not allowed in directive: @ "/var/tmp/php-5.1.4/ext/mysql/php_mysql.c", line 389: token not allowed in directive: @ "/var/tmp/php-5.1.4/ext/mysql/php_mysql.c", line 494: invalid source character: '@' "/var/tmp/php-5.1.4/ext/mysql/php_mysql.c", line 494: invalid source character: '@' "/var/tmp/php-5.1.4/ext/mysql/php_mysql.c", line 494: undefined symbol: MYSQL_TCP_PORT "/var/tmp/php-5.1.4/ext/mysql/php_mysql.c", line 497: token not allowed in directive: @ "/var/tmp/php-5.1.4/ext/mysql/php_mysql.c", line 514: invalid source character: '@' "/var/tmp/php-5.1.4/ext/mysql/php_mysql.c", line 514: invalid source character: '@' "/var/tmp/php-5.1.4/ext/mysql/php_mysql.c", line 656: token not allowed in directive: @ "/var/tmp/php-5.1.4/ext/mysql/php_mysql.c", line 683: token not allowed in directive: @ "/var/tmp/php-5.1.4/ext/mysql/php_mysql.c", line 720: token not allowed in directive: @ "/var/tmp/php-5.1.4/ext/mysql/php_mysql.c", line 720: fatal: too many errors cc: acomp failed for /var/tmp/php-5.1.4/ext/mysql/php_mysql.c *** Error code 1 make: Fatal error: Command failed for target `ext/mysql/php_mysql.lo' I know the next step would be to use the latest relase of MySQL and GCC instead of Sun's compiler. I dont really want to use the latest relase of MySQL as the sun version is supported in the OS and is maintained and patched etc. I wouls also like to use the Sun Compiler rather than the GCC. -- Edit bug report at http://bugs.php.net/?id=37748&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37748&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37748&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37748&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37748&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37748&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37748&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37748&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37748&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37748&r=support Expected behavior: http://bugs.php.net/fix.php?id=37748&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37748&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37748&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37748&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37748&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37748&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37748&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37748&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37748&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37748&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37748&r=mysqlcfg

« previous php.bugs (#98194) next »