ID: 39878
User updated by: leozh at nbcs dot rutgers dot edu
Reported By: leozh at nbcs dot rutgers dot edu
Status: Open
Bug Type: cURL related
Operating System: Solaris 9
PHP Version: 5.2.0
New Comment:
Ignore the error on line 1071 though, that is from me putting a void in
front of the function declaration, but the error that caused the compile
to fail was the one on line 1084.
Previous Comments:
------------------------------------------------------------------------
[2006-12-18 21:28:43] leozh at nbcs dot rutgers dot edu
Description:
------------
I tried to compile PHP 5.1.6 on my Solaris 9 box with Sun Studio Pro.
cURL did not compile because it used deprecated cURL functions that did
not exist in cURL 7.16. I then took the curl extension from the current
5.2 cvs and put it in the 5.1.6 source tree.
Actual result:
--------------
This is what happens:
Sun Studio Pro does not like void functions returning values
/bin/sh /usr/local/src/rpm-packages/BUILD/php-5.1.6/libtool --silent
--preserve-dup-deps --mode=compile /opt/SUNWspro/bin/cc -Iext/curl/
-I/usr/local/src/rpm-packages/BUILD/php-5.1.6/ext/curl/ -DPHP_ATOM_INC
-I/usr/local/src/rpm-packages/BUILD/php-5.1.6/include
-I/usr/local/src/rpm-packages/BUILD/php-5.1.6/main
-I/usr/local/src/rpm-packages/BUILD/php-5.1.6
-I/usr/local/include/libxml2 -I/usr/local/include
-I/usr/local/ssl/include
-I/usr/local/src/rpm-packages/BUILD/php-5.1.6/ext/date/lib
-I/usr/local/include/freetype2
-I/usr/local/src/rpm-packages/BUILD/php-5.1.6/imap-2004g/c-client/include
-I//usr/local/mysql5/include/mysql
-I/usr/local/mysql-5.0.27/include/mysql -I/usr/local/include/pspell
-I/usr/local/src/rpm-packages/BUILD/php-5.1.6/TSRM
-I/usr/local/src/rpm-packages/BUILD/php-5.1.6/Zend
-I/usr/local/include -D_POSIX_PTHREAD_SEMANTICS -I/usr/include -mt -g
-xs -c
/usr/local/src/rpm-packages/BUILD/php-5.1.6/ext/curl/interface.c -o
ext/curl/interface.lo
"/usr/local/src/rpm-packages/BUILD/php-5.1.6/ext/curl/interface.c",
line 1071: invalid type combination
"/usr/local/src/rpm-packages/BUILD/php-5.1.6/ext/curl/interface.c",
line 1084: void function cannot return value
"/usr/local/src/rpm-packages/BUILD/php-5.1.6/ext/curl/interface.c",
line 1084: void function cannot return value
"/usr/local/src/rpm-packages/BUILD/php-5.1.6/ext/curl/interface.c",
line 1084: void function cannot return value
"/usr/local/src/rpm-packages/BUILD/php-5.1.6/ext/curl/interface.c",
line 1464: warning: enum type mismatch: op "="
"/usr/local/src/rpm-packages/BUILD/php-5.1.6/ext/curl/interface.c",
line 1471: warning: enum type mismatch: op "="
"/usr/local/src/rpm-packages/BUILD/php-5.1.6/ext/curl/interface.c",
line 1622: warning: argument #3 is incompatible with prototype:
prototype: pointer to unsigned int :
"/usr/local/src/rpm-packages/BUILD/php-5.1.6/Zend/zend_hash.h", line
172
argument : pointer to int
"/usr/local/src/rpm-packages/BUILD/php-5.1.6/ext/curl/interface.c",
line 1622: warning: argument #4 is incompatible with prototype:
prototype: pointer to unsigned long :
"/usr/local/src/rpm-packages/BUILD/php-5.1.6/Zend/zend_hash.h", line
172
argument : pointer to long
cc: acomp failed for
/usr/local/src/rpm-packages/BUILD/php-5.1.6/ext/curl/interface.c
*** Error code 1
make: Fatal error: Command failed for target `ext/curl/interface.lo'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39878&edit=1