From: sam dot sexton at thomsonreuters dot com
Operating system: Solaris 10
PHP version: 5.2.6
PHP Bug Type: Compile Failure
Bug description: pecl_http make fails with curl-related compile errors.
Description:
------------
I am installing pecl_http 1.16.1 behind a firewall, so I'm using phpize
and then configure/make. Using three versions of curl (1.18.2, 1.19.0 and
1.19.1), I get errors like those shown below from make. I've recreated the
pecl_http directory from the gzip each time. phpize had some warnings, but
rc=0 so I thought it was OK to continue. Output included below.
Reproduce code:
---------------
# cd /reuters/radt/local/MediaWiki_build/pecl_http-1.6.1
# phpize
# make
Expected result:
----------------
Successful completion of make! ;-)
Actual result:
--------------
==== phpize ====
[2448]([EMAIL PROTECTED])~radt/.../pecl_http-1.6.1: phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
configure.in:77: warning: AC_CACHE_VAL(lt_prog_compiler_static_works,
...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1973: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1993: AC_CACHE_CHECK is expanded from...
aclocal.m4:3526: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:5464: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:5463: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:2943: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:2923: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:2886: AC_PROG_LIBTOOL is expanded from...
configure.in:77: the top level
configure.in:77: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...):
suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:3481: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:7591: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
configure.in:77: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX,
...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:5577: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:5576: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:4612: _LT_AC_TAGCONFIG is expanded from...
configure.in:77: warning: AC_CACHE_VAL(lt_prog_compiler_static_works,
...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1973: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1993: AC_CACHE_CHECK is expanded from...
aclocal.m4:3526: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:5464: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:5463: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:2943: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:2923: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:2886: AC_PROG_LIBTOOL is expanded from...
configure.in:77: the top level
configure.in:77: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...):
suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:3481: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:7591: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
configure.in:77: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX,
...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:5577: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:5576: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:4612: _LT_AC_TAGCONFIG is expanded from...
[2449]([EMAIL PROTECTED])~radt/.../pecl_http-1.6.1:
==== make ====
gcc -I. -I/reuters/radt/local/MediaWiki_build/pecl_http-1.6.1
-DPHP_ATOM_INC
-I/reuters/radt/local/MediaWiki_build/pecl_http-1.6.1/include
-I/reuters/radt/local/MediaWiki_build/pecl_http-1.6.1/main
-I/reuters/radt/local/MediaWiki_build/pecl_http-1.6.1
-I/usr/local/include/php -I/usr/local/include/php/main
-I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend
-I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
-I/usr/local/include -I/usr/local/include/php/ext/hash -DHAVE_CONFIG_H -g
-O2 -c /reuters/radt/local/MediaWiki_build/pecl_http-1.6.1/http.c -fPIC
-DPIC -o .libs/http.o
In file included from
/reuters/radt/local/MediaWiki_build/pecl_http-1.6.1/php_http.h:58,
from
/reuters/radt/local/MediaWiki_build/pecl_http-1.6.1/http.c:20:
/usr/local/include/curl/curl.h:1743: error: expected identifier or '('
before string constant
/usr/local/include/curl/curl.h:1754: error: expected identifier or '('
before string constant
In file included from /usr/local/include/curl/curl.h:1783,
from
/reuters/radt/local/MediaWiki_build/pecl_http-1.6.1/php_http.h:58,
from
/reuters/radt/local/MediaWiki_build/pecl_http-1.6.1/http.c:20:
/usr/local/include/curl/multi.h:208: error: expected identifier or '('
before string constant
make: *** [http.lo] Error 1
--
Edit bug report at http://bugs.php.net/?id=46505&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=46505&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=46505&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=46505&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=46505&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=46505&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=46505&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=46505&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=46505&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=46505&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=46505&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=46505&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=46505&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=46505&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=46505&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46505&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46505&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=46505&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=46505&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=46505&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=46505&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=46505&r=mysqlcfg