From:             leozh at nbcs dot rutgers dot edu
Operating system: Solaris 9
PHP version:      5.2.0
PHP Bug Type:     cURL related
Bug description:  CURL doesn't compile on Sun Studio Pro

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 bug report at http://bugs.php.net/?id=39878&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39878&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39878&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39878&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39878&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39878&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39878&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39878&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39878&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39878&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39878&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39878&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39878&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39878&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39878&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39878&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39878&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39878&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39878&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39878&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39878&r=mysqlcfg

Reply via email to