php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37748 --with-mysql causes compile to fail
Submitted: 2006-06-08 17:16 UTC Modified: 2006-06-08 17:23 UTC
From: marr_andy at yahoo dot co dot uk Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.1.4 OS: Solaris 10
Private report: No CVE-ID: None
 [2006-06-08 17:16 UTC] marr_andy at yahoo dot co dot uk
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.




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-08 17:23 UTC] mike@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

This is a bug in your mysql headers where the MYSQL_VERSION_ID macro has apparently not been replaced with the actual value but still is @some_placeholder@.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 16:01:29 2024 UTC