cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

pecl-http curl-related compile errors

From: Sam Sexton <Sam.Sexton_at_thomsonreuters.com>
Date: Tue, 11 Nov 2008 12:10:53 +0000

Hi - I have tried building pecl-http 1.16.1 with three different
versions of curl (7.18.2, 7.19.0 and 7.19.1 - from sunfreeware, so I've
cc'd Steve Christensen). I get similar errors with all three - only the
line numbers differ.
 
The following is exactly what I've done. It's possible I've missed
something (an argument to configure?) but the pecl-php mailing list has
said that it's not a problem with pecl-http (which I can understand!),
so I'm hoping that you can assist me. The compile errors are right at
the end, but I've included everything for reference. If you need more
info, please let me know. Oh yes, I'm using php 6.2 in case that makes
any difference.
 
[2522](root_at_ntm-igdev02)~radt/.../packages
<mailto:root_at_ntm-igdev02)~radt/.../packages> : pkginfo -l SMCcurl
   PKGINST: SMCcurl
      NAME: curl
  CATEGORY: application
      ARCH: sparc
   VERSION: 7.19.1
   BASEDIR: /usr/local
    VENDOR: The Curl Group
    PSTAMP: Steve Christensen
  INSTDATE: Nov 11 2008 11:35
     EMAIL: steve_at_smc.vnet.net <mailto:steve_at_smc.vnet.net>
    STATUS: completely installed
     FILES: 361 installed pathnames
                   8 shared pathnames
                  15 directories
                   4 executables
                6715 blocks used (approx)

[2523](root_at_ntm-igdev02)~radt/.../packages
<mailto:root_at_ntm-igdev02)~radt/.../packages> : cd ..
11:37
[2524](root_at_ntm-igdev02)~radt/local/MediaWiki_build
<mailto:root_at_ntm-igdev02)~radt/local/MediaWiki_build> : ls
libmcrypt-2.5.8.tar.gz mhash-0.9.9.tar
pecl_http-1.6.1
mcrypt-2.6.7 package.xml
pecl_http-1.6.1.tgz
mcrypt-2.6.7.tar.gz package2.xml
php-5.2.6
mhash-0.9.9 packages
phpMyAdmin-2.11.8.1-all-languages
[2525](root_at_ntm-igdev02)~radt/local/MediaWiki_build
<mailto:root_at_ntm-igdev02)~radt/local/MediaWiki_build> : rm -rf
pecl_http-1.6.1
[2526](root_at_ntm-igdev02)~radt/local/MediaWiki_build
<mailto:root_at_ntm-igdev02)~radt/local/MediaWiki_build> : gtar zxf
pecl_http-1.6.1.tgz
[2527](root_at_ntm-igdev02)~radt/local/MediaWiki_build
<mailto:root_at_ntm-igdev02)~radt/local/MediaWiki_build> : cd
pecl_http-1.6.1
11:37
[2528](root_at_ntm-igdev02)~radt/.../pecl_http-1.6.1
<mailto:root_at_ntm-igdev02)~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...
[2529](root_at_ntm-igdev02)~radt/.../pecl_http-1.6.1
<mailto:root_at_ntm-igdev02)~radt/.../pecl_http-1.6.1> : ./configure
checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep
checking for egrep... /usr/sfw/bin/ggrep -E
checking for a sed that does not truncate output... /usr/local/bin/sed
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 ISO C89... none needed
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... /usr/local
checking for PHP includes... -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
checking for PHP extension directory...
/usr/local/lib/php/extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix... /usr/local/include/php
checking for re2c... no
configure: WARNING: You will need re2c 0.12.0 or later if you want to
regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking whether to enable extended HTTP support... yes, shared
checking whether to depend on extensions which have been built shared...
yes
checking whether to enable cURL HTTP request support... yes
checking whether to enable libevent support fur cURL... yes
checking whether to enable zlib encodings support... yes
checking whether to enable response content type guessing... no
checking for egrep... (cached) /usr/sfw/bin/ggrep -E
checking for a sed that does not truncate output... /usr/local/bin/sed
checking how to run the C preprocessor... gcc -E
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
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for unistd.h... (cached) yes
checking for gethostname... yes
checking for getdomainname... no
checking for __getdomainname... no
checking for getdomainname in -lnsl... yes
checking for getservbyport... no
checking for __getservbyport... no
checking for getservbyport in -lnsl... no
checking for __getservbyport in -lnsl... no
checking for getservbyname... no
checking for __getservbyname... no
checking for getservbyname in -lnsl... no
checking for __getservbyname in -lnsl... no
checking for zlib.h... found in /usr/local
checking for zlib version >= 1.2.0.4... 1.2.3
checking for curl/curl.h... found in /usr/local
checking for curl-config... found: /usr/local/bin/curl-config
checking for curl version >= 7.12.3... 7.19.1
checking for SSL support in libcurl... yes
checking for openssl support in libcurl... no
checking for gnutls support in libcurl... no
checking for bundled SSL CA info... not found
checking for curl_share_strerror in -lcurl... no
checking for curl_multi_strerror in -lcurl... no
checking for curl_easy_strerror in -lcurl... no
checking for curl_easy_reset in -lcurl... no
checking for curl_formget in -lcurl... no
checking for curl_multi_setopt in -lcurl... no
checking for curl_multi_timeout in -lcurl... no
checking for ext/event support... no
checking for event.h... not found
configure: WARNING: continuing without libevent support
checking for ext/hash support... yes
checking for php_hash.h... /usr/local/include/php/ext/hash
checking for ext/iconv support... yes
checking for ext/session support... yes
checking whether to add a dependency on ext/hash... yes
checking whether to add a dependency on ext/iconv... yes
checking whether to add a dependency on ext/session... 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... no
checking for ranlib... no
checking for strip... no
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
[2530](root_at_ntm-igdev02)~radt/.../pecl_http-1.6.1
<mailto:root_at_ntm-igdev02)~radt/.../pecl_http-1.6.1> : make
/bin/bash /reuters/radt/local/MediaWiki_build/pecl_http-1.6.1/libtool
--mode=compile 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/missing.c -o
missing.lo
mkdir .libs
 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/missing.c
-fPIC -DPIC -o .libs/missing.o
/bin/bash /reuters/radt/local/MediaWiki_build/pecl_http-1.6.1/libtool
--mode=compile 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
-o http.lo
 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: syntax error before string
constant
/usr/local/include/curl/curl.h:1754: error: syntax error 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: syntax error before string
constant
make: *** [http.lo] Error 1
[2531](root_at_ntm-igdev02)~radt/.../pecl_http-1.6.1
<mailto:root_at_ntm-igdev02)~radt/.../pecl_http-1.6.1> :

 

 
/Sam

Sam Sexton
Provisioning Team Leader

Thomson Reuters

Phone: 53372 or +44 24 7625 6562
Mobile: +44 7990 563739

sam.sexton_at_thomsonreuters.com
thomsonreuters.com

 

This email was sent to you by Thomson Reuters, the global news and information company.
Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thomson Reuters.

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2008-11-11