Edit report at http://bugs.php.net/bug.php?id=50326&edit=1
ID: 50326 Updated by: fel...@php.net Reported by: r dot polanskis at uws dot edu dot au Summary: cannot link curl extension to curl 7.19.7 -Status: No Feedback +Status: Feedback Type: Bug Package: Compile Failure Operating System: SunOS bisset 5.10 Generic_141414 PHP Version: 5.3.1 New Comment: Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Previous Comments: ------------------------------------------------------------------------ [2009-12-08 01:00:02] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2009-11-30 07:59:59] j...@php.net Does it work when you compile things normally? And not try something we don't support? ------------------------------------------------------------------------ [2009-11-30 01:56:44] r dot polanskis at uws dot edu dot au Description: ------------ Hi, I will paste in the URL that describes the complete problem from the Sun forum: http://forums.sun.com/thread.jspa?messageID=10874518 In short, the curl module does not link against libcurl: SO I recompiled curl-7.19.7 successfully and installed it. Then I copied the php-5.3.1 ext/curl module directory to another location and attempted to link it. This works against curl-7.17.1 but not against curl-7.19.7. curl-7.17.1 is the last version I can get to link against php-5.3.1 and gcc-4.3.3. So my test was to just link the module against curl-7.19.7: Then I did the following: bisset:curl 147# /opt/app/cwis/support/php/bin/phpize Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626 bisset:curl 148# ./configure --with-php-config=/opt/app/cwis/support/php/bin/php-config --with-curl=/opt/app/cwis/support/curl checking for egrep... egrep checking for a sed that does not truncate output... /opt/sfw/bin/gsed checking for cc... no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for icc... no checking for suncc... no checking whether gcc and cc understand -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... yes checking build system type... sparc-sun-solaris2.10 checking host system type... sparc-sun-solaris2.10 checking target system type... sparc-sun-solaris2.10 checking for PHP prefix... /opt/app/cwis/support/php checking for PHP includes... -I/opt/app/cwis/support/php/include/php -I/opt/app/cwis/support/php/include/php/main -I/opt/app/cwis/support/php/include/php/TSRM -I/opt/app/cwis/support/php/include/php/Zend -I/opt/app/cwis/support/php/include/php/ext -I/opt/app/cwis/support/php/include/php/ext/date/lib checking for PHP extension directory... /opt/app/cwis/support/php/lib/php/20090626 checking for PHP installed headers prefix... /opt/app/cwis/support/php/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... no configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking for cURL support... yes, shared checking if we should use cURL for url streams... no checking for cURL 7.10.5 or greater... libcurl 7.19.7 checking for SSL support in libcurl... yes checking how to run the C preprocessor... gcc -E checking for openssl support in libcurl... checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes no checking for gnutls support in libcurl... no checking for curl_easy_perform in -lcurl... yes checking for curl_version_info in -lcurl... yes checking for curl_easy_strerror in -lcurl... yes checking for curl_multi_strerror in -lcurl... yes checking for ld used by gcc... /usr/ccs/bin/ld checking if the linker (/usr/ccs/bin/ld) is GNU ld... no checking for /usr/ccs/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/ccs/bin/nm -p checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking the maximum length of command line arguments... 262144 checking command to parse /usr/ccs/bin/nm -p output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc static flag works... yes checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/ccs/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... yes checking dynamic linker characteristics... solaris2.10 ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... no checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no creating libtool appending configuration tag "CXX" to libtool configure: creating ./config.status config.status: creating config.h bisset:curl 149# gmake /bin/bash /tmp/curl/libtool --mode=compile gcc -I. -I/tmp/curl -DPHP_ATOM_INC -I/tmp/curl/include -I/tmp/curl/main -I/tmp/curl -I/opt/app/cwis/support/php/include/php -I/opt/app/cwis/support/php/include/php/main -I/opt/app/cwis/support/php/include/php/TSRM -I/opt/app/cwis/support/php/include/php/Zend -I/opt/app/cwis/support/php/include/php/ext -I/opt/app/cwis/support/php/include/php/ext/date/lib -I/opt/app/cwis/support/curl/include -DHAVE_CONFIG_H -g -O2 -c /tmp/curl/interface.c -o interface.lo gcc -I. -I/tmp/curl -DPHP_ATOM_INC -I/tmp/curl/include -I/tmp/curl/main -I/tmp/curl -I/opt/app/cwis/support/php/include/php -I/opt/app/cwis/support/php/include/php/main -I/opt/app/cwis/support/php/include/php/TSRM -I/opt/app/cwis/support/php/include/php/Zend -I/opt/app/cwis/support/php/include/php/ext -I/opt/app/cwis/support/php/include/php/ext/date/lib -I/opt/app/cwis/support/curl/include -DHAVE_CONFIG_H -g -O2 -c /tmp/curl/interface.c -fPIC -DPIC -o .libs/interface.o /tmp/curl/interface.c: In function '_php_curl_setopt': /tmp/curl/interface.c:1774: warning: call to '_curl_easy_setopt_err_progress_cb' declared with attribute warning: curl_easy_setopt expects a curl_progress_callback argument for this option /opt/app/cwis/support/php/include/php/Zend/zend_operators.h:230: internal compiler error: in int_mode_for_mode, at stor-layout.c:258 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://forum.java.sun.com/forum.jspa?forumID=905> for instructions. gmake: *** [interface.lo] Error 1 bisset:curl 150# ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=50326&edit=1