php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65068 Compilation error on PHP 5.5.0
Submitted: 2013-06-20 12:44 UTC Modified: 2013-06-20 13:22 UTC
From: kasztelix at gmail dot com Assigned: mike (profile)
Status: Duplicate Package: pecl_http (PECL)
PHP Version: 5.5.0RC3 OS: Linux Skiing-Yak 3.5.0-34-generi
Private report: No CVE-ID: None
 [2013-06-20 12:44 UTC] kasztelix at gmail dot com
Description:
------------
I'm trying to compile pecl_http against PHP 5.5.0 released today. See test script 
for result (/opt/php-5.5/ is a prefix for PHP 5.5.0 installation).

Test script:
---------------
maciek@Skiing-Yak:~/pecl_http-1.7.5$ /opt/php-5.5/bin/phpize 
Configuring for:
PHP Api Version:         20121113
Zend Module Api No:      20121212
Zend Extension Api No:   220121212
maciek@Skiing-Yak:~/pecl_http-1.7.5$ ./configure --with-php-config=/opt/php-5.5/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /opt/php-5.5
checking for PHP includes... -I/opt/php-5.5/include/php -I/opt/php-5.5/include/php/main -I/opt/php-5.5/include/php/TSRM -I/opt/php-5.5/include/php/Zend -I/opt/php-5.5/include/php/ext -I/opt/php-5.5/include/php/ext/date/lib
checking for PHP extension directory... /opt/php-5.5/lib/php/extensions/no-debug-non-zts-20121212
checking for PHP installed headers prefix... /opt/php-5.5/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... 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) /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking how to run the C preprocessor... cc -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... yes
checking for getservbyport... yes
checking for getservbyname... yes
checking for zlib.h... found in /usr
checking for zlib version >= 1.2.0.4... 1.2.3.4
checking for curl/curl.h... found in /usr
checking for curl-config... found: /usr/bin/curl-config
checking for curl version >= 7.12.3... 7.22.0
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... /etc/ssl/certs/ca-certificates.crt
checking for curl_share_strerror in -lcurl... yes
checking for curl_multi_strerror in -lcurl... yes
checking for curl_easy_strerror in -lcurl... yes
checking for curl_easy_reset in -lcurl... yes
checking for curl_formget in -lcurl... yes
checking for curl_multi_setopt in -lcurl... yes
checking for curl_multi_timeout in -lcurl... yes
checking for ext/event support... no
checking for event.h... found in /usr
checking for libevent version, roughly... 1.4 or greater
checking for libcurl version >= 7.16.0... 7.22.0
checking for curl_multi_socket_action in -lcurl... yes
checking for ext/hash support... yes
checking for php_hash.h... /opt/php-5.5/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 cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize 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... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
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
config.status: config.h is unchanged
maciek@Skiing-Yak:~/pecl_http-1.7.5$ make
/bin/bash /home/maciek/pecl_http-1.7.5/libtool --mode=compile cc  -I. -I/home/maciek/pecl_http-1.7.5 -DPHP_ATOM_INC -I/home/maciek/pecl_http-1.7.5/include -I/home/maciek/pecl_http-1.7.5/main -I/home/maciek/pecl_http-1.7.5 -I/opt/php-5.5/include/php -I/opt/php-5.5/include/php/main -I/opt/php-5.5/include/php/TSRM -I/opt/php-5.5/include/php/Zend -I/opt/php-5.5/include/php/ext -I/opt/php-5.5/include/php/ext/date/lib -I/opt/php-5.5/include/php/ext/hash  -DHAVE_CONFIG_H  -g -O2   -c /home/maciek/pecl_http-1.7.5/missing.c -o missing.lo 
mkdir .libs
 cc -I. -I/home/maciek/pecl_http-1.7.5 -DPHP_ATOM_INC -I/home/maciek/pecl_http-1.7.5/include -I/home/maciek/pecl_http-1.7.5/main -I/home/maciek/pecl_http-1.7.5 -I/opt/php-5.5/include/php -I/opt/php-5.5/include/php/main -I/opt/php-5.5/include/php/TSRM -I/opt/php-5.5/include/php/Zend -I/opt/php-5.5/include/php/ext -I/opt/php-5.5/include/php/ext/date/lib -I/opt/php-5.5/include/php/ext/hash -DHAVE_CONFIG_H -g -O2 -c /home/maciek/pecl_http-1.7.5/missing.c  -fPIC -DPIC -o .libs/missing.o
/bin/bash /home/maciek/pecl_http-1.7.5/libtool --mode=compile cc  -I. -I/home/maciek/pecl_http-1.7.5 -DPHP_ATOM_INC -I/home/maciek/pecl_http-1.7.5/include -I/home/maciek/pecl_http-1.7.5/main -I/home/maciek/pecl_http-1.7.5 -I/opt/php-5.5/include/php -I/opt/php-5.5/include/php/main -I/opt/php-5.5/include/php/TSRM -I/opt/php-5.5/include/php/Zend -I/opt/php-5.5/include/php/ext -I/opt/php-5.5/include/php/ext/date/lib -I/opt/php-5.5/include/php/ext/hash  -DHAVE_CONFIG_H  -g -O2   -c /home/maciek/pecl_http-1.7.5/http.c -o http.lo 
 cc -I. -I/home/maciek/pecl_http-1.7.5 -DPHP_ATOM_INC -I/home/maciek/pecl_http-1.7.5/include -I/home/maciek/pecl_http-1.7.5/main -I/home/maciek/pecl_http-1.7.5 -I/opt/php-5.5/include/php -I/opt/php-5.5/include/php/main -I/opt/php-5.5/include/php/TSRM -I/opt/php-5.5/include/php/Zend -I/opt/php-5.5/include/php/ext -I/opt/php-5.5/include/php/ext/date/lib -I/opt/php-5.5/include/php/ext/hash -DHAVE_CONFIG_H -g -O2 -c /home/maciek/pecl_http-1.7.5/http.c  -fPIC -DPIC -o .libs/http.o
/bin/bash /home/maciek/pecl_http-1.7.5/libtool --mode=compile cc  -I. -I/home/maciek/pecl_http-1.7.5 -DPHP_ATOM_INC -I/home/maciek/pecl_http-1.7.5/include -I/home/maciek/pecl_http-1.7.5/main -I/home/maciek/pecl_http-1.7.5 -I/opt/php-5.5/include/php -I/opt/php-5.5/include/php/main -I/opt/php-5.5/include/php/TSRM -I/opt/php-5.5/include/php/Zend -I/opt/php-5.5/include/php/ext -I/opt/php-5.5/include/php/ext/date/lib -I/opt/php-5.5/include/php/ext/hash  -DHAVE_CONFIG_H  -g -O2   -c /home/maciek/pecl_http-1.7.5/http_functions.c -o http_functions.lo 
 cc -I. -I/home/maciek/pecl_http-1.7.5 -DPHP_ATOM_INC -I/home/maciek/pecl_http-1.7.5/include -I/home/maciek/pecl_http-1.7.5/main -I/home/maciek/pecl_http-1.7.5 -I/opt/php-5.5/include/php -I/opt/php-5.5/include/php/main -I/opt/php-5.5/include/php/TSRM -I/opt/php-5.5/include/php/Zend -I/opt/php-5.5/include/php/ext -I/opt/php-5.5/include/php/ext/date/lib -I/opt/php-5.5/include/php/ext/hash -DHAVE_CONFIG_H -g -O2 -c /home/maciek/pecl_http-1.7.5/http_functions.c  -fPIC -DPIC -o .libs/http_functions.o
/home/maciek/pecl_http-1.7.5/http_functions.c: In function ‘zif_http_cache_last_modified’:
/home/maciek/pecl_http-1.7.5/http_functions.c:412:2: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
/home/maciek/pecl_http-1.7.5/http_functions.c: In function ‘zif_http_cache_etag’:
/home/maciek/pecl_http-1.7.5/http_functions.c:449:2: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
/bin/bash /home/maciek/pecl_http-1.7.5/libtool --mode=compile cc  -I. -I/home/maciek/pecl_http-1.7.5 -DPHP_ATOM_INC -I/home/maciek/pecl_http-1.7.5/include -I/home/maciek/pecl_http-1.7.5/main -I/home/maciek/pecl_http-1.7.5 -I/opt/php-5.5/include/php -I/opt/php-5.5/include/php/main -I/opt/php-5.5/include/php/TSRM -I/opt/php-5.5/include/php/Zend -I/opt/php-5.5/include/php/ext -I/opt/php-5.5/include/php/ext/date/lib -I/opt/php-5.5/include/php/ext/hash  -DHAVE_CONFIG_H  -g -O2   -c /home/maciek/pecl_http-1.7.5/phpstr/phpstr.c -o phpstr/phpstr.lo 
mkdir phpstr/.libs
 cc -I. -I/home/maciek/pecl_http-1.7.5 -DPHP_ATOM_INC -I/home/maciek/pecl_http-1.7.5/include -I/home/maciek/pecl_http-1.7.5/main -I/home/maciek/pecl_http-1.7.5 -I/opt/php-5.5/include/php -I/opt/php-5.5/include/php/main -I/opt/php-5.5/include/php/TSRM -I/opt/php-5.5/include/php/Zend -I/opt/php-5.5/include/php/ext -I/opt/php-5.5/include/php/ext/date/lib -I/opt/php-5.5/include/php/ext/hash -DHAVE_CONFIG_H -g -O2 -c /home/maciek/pecl_http-1.7.5/phpstr/phpstr.c  -fPIC -DPIC -o phpstr/.libs/phpstr.o
/bin/bash /home/maciek/pecl_http-1.7.5/libtool --mode=compile cc  -I. -I/home/maciek/pecl_http-1.7.5 -DPHP_ATOM_INC -I/home/maciek/pecl_http-1.7.5/include -I/home/maciek/pecl_http-1.7.5/main -I/home/maciek/pecl_http-1.7.5 -I/opt/php-5.5/include/php -I/opt/php-5.5/include/php/main -I/opt/php-5.5/include/php/TSRM -I/opt/php-5.5/include/php/Zend -I/opt/php-5.5/include/php/ext -I/opt/php-5.5/include/php/ext/date/lib -I/opt/php-5.5/include/php/ext/hash  -DHAVE_CONFIG_H  -g -O2   -c /home/maciek/pecl_http-1.7.5/http_util_object.c -o http_util_object.lo 
 cc -I. -I/home/maciek/pecl_http-1.7.5 -DPHP_ATOM_INC -I/home/maciek/pecl_http-1.7.5/include -I/home/maciek/pecl_http-1.7.5/main -I/home/maciek/pecl_http-1.7.5 -I/opt/php-5.5/include/php -I/opt/php-5.5/include/php/main -I/opt/php-5.5/include/php/TSRM -I/opt/php-5.5/include/php/Zend -I/opt/php-5.5/include/php/ext -I/opt/php-5.5/include/php/ext/date/lib -I/opt/php-5.5/include/php/ext/hash -DHAVE_CONFIG_H -g -O2 -c /home/maciek/pecl_http-1.7.5/http_util_object.c  -fPIC -DPIC -o .libs/http_util_object.o
/bin/bash /home/maciek/pecl_http-1.7.5/libtool --mode=compile cc  -I. -I/home/maciek/pecl_http-1.7.5 -DPHP_ATOM_INC -I/home/maciek/pecl_http-1.7.5/include -I/home/maciek/pecl_http-1.7.5/main -I/home/maciek/pecl_http-1.7.5 -I/opt/php-5.5/include/php -I/opt/php-5.5/include/php/main -I/opt/php-5.5/include/php/TSRM -I/opt/php-5.5/include/php/Zend -I/opt/php-5.5/include/php/ext -I/opt/php-5.5/include/php/ext/date/lib -I/opt/php-5.5/include/php/ext/hash  -DHAVE_CONFIG_H  -g -O2   -c /home/maciek/pecl_http-1.7.5/http_message_object.c -o http_message_object.lo 
 cc -I. -I/home/maciek/pecl_http-1.7.5 -DPHP_ATOM_INC -I/home/maciek/pecl_http-1.7.5/include -I/home/maciek/pecl_http-1.7.5/main -I/home/maciek/pecl_http-1.7.5 -I/opt/php-5.5/include/php -I/opt/php-5.5/include/php/main -I/opt/php-5.5/include/php/TSRM -I/opt/php-5.5/include/php/Zend -I/opt/php-5.5/include/php/ext -I/opt/php-5.5/include/php/ext/date/lib -I/opt/php-5.5/include/php/ext/hash -DHAVE_CONFIG_H -g -O2 -c /home/maciek/pecl_http-1.7.5/http_message_object.c  -fPIC -DPIC -o .libs/http_message_object.o
/home/maciek/pecl_http-1.7.5/http_message_object.c: In function ‘zm_startup_http_message_object’:
/home/maciek/pecl_http-1.7.5/http_message_object.c:360:52: warning: assignment from incompatible pointer type [enabled by default]
/home/maciek/pecl_http-1.7.5/http_message_object.c: In function ‘_http_message_object_new_ex’:
/home/maciek/pecl_http-1.7.5/http_message_object.c:518:2: warning: passing argument 1 of ‘zend_object_std_init’ from incompatible pointer type [enabled by default]
/opt/php-5.5/include/php/Zend/zend_objects.h:28:15: note: expected ‘struct zend_object *’ but argument is of type ‘struct http_message_object *’
/home/maciek/pecl_http-1.7.5/http_message_object.c:519:2: warning: passing argument 1 of ‘object_properties_init’ from incompatible pointer type [enabled by default]
/opt/php-5.5/include/php/Zend/zend_API.h:369:15: note: expected ‘struct zend_object *’ but argument is of type ‘struct http_message_object *’
/home/maciek/pecl_http-1.7.5/http_message_object.c: In function ‘_http_message_object_free’:
/home/maciek/pecl_http-1.7.5/http_message_object.c:564:2: warning: passing argument 1 of ‘zend_object_std_dtor’ from incompatible pointer type [enabled by default]
/opt/php-5.5/include/php/Zend/zend_objects.h:29:15: note: expected ‘struct zend_object *’ but argument is of type ‘struct http_message_object *’
/home/maciek/pecl_http-1.7.5/http_message_object.c: In function ‘_http_message_object_get_prop_ptr’:
/home/maciek/pecl_http-1.7.5/http_message_object.c:576:2: warning: passing argument 3 of ‘zend_get_std_object_handlers()->get_property_ptr_ptr’ makes integer from pointer without a cast [enabled by default]
/home/maciek/pecl_http-1.7.5/http_message_object.c:576:2: note: expected ‘int’ but argument is of type ‘const struct zend_literal *’
/home/maciek/pecl_http-1.7.5/http_message_object.c:576:2: error: too few arguments to function ‘zend_get_std_object_handlers()->get_property_ptr_ptr’
/home/maciek/pecl_http-1.7.5/http_message_object.c: In function ‘zim_HttpMessage___construct’:
/home/maciek/pecl_http-1.7.5/http_message_object.c:707:2: warning: ‘php_set_error_handling’ is deprecated (declared at /opt/php-5.5/include/php/main/php.h:293) [-Wdeprecated-declarations]
/home/maciek/pecl_http-1.7.5/http_message_object.c:723:2: warning: ‘php_set_error_handling’ is deprecated (declared at /opt/php-5.5/include/php/main/php.h:293) [-Wdeprecated-declarations]
/home/maciek/pecl_http-1.7.5/http_message_object.c: In function ‘zim_HttpMessage_factory’:
/home/maciek/pecl_http-1.7.5/http_message_object.c:739:2: warning: ‘php_set_error_handling’ is deprecated (declared at /opt/php-5.5/include/php/main/php.h:293) [-Wdeprecated-declarations]
/home/maciek/pecl_http-1.7.5/http_message_object.c:751:2: warning: ‘php_set_error_handling’ is deprecated (declared at /opt/php-5.5/include/php/main/php.h:293) [-Wdeprecated-declarations]
/home/maciek/pecl_http-1.7.5/http_message_object.c: In function ‘zim_HttpMessage_fromEnv’:
/home/maciek/pecl_http-1.7.5/http_message_object.c:766:2: warning: ‘php_set_error_handling’ is deprecated (declared at /opt/php-5.5/include/php/main/php.h:293) [-Wdeprecated-declarations]
/home/maciek/pecl_http-1.7.5/http_message_object.c:775:2: warning: ‘php_set_error_handling’ is deprecated (declared at /opt/php-5.5/include/php/main/php.h:293) [-Wdeprecated-declarations]
/home/maciek/pecl_http-1.7.5/http_message_object.c: In function ‘zim_HttpMessage_getParentMessage’:
/home/maciek/pecl_http-1.7.5/http_message_object.c:1175:2: warning: ‘php_set_error_handling’ is deprecated (declared at /opt/php-5.5/include/php/main/php.h:293) [-Wdeprecated-declarations]
/home/maciek/pecl_http-1.7.5/http_message_object.c:1185:2: warning: ‘php_set_error_handling’ is deprecated (declared at /opt/php-5.5/include/php/main/php.h:293) [-Wdeprecated-declarations]
/home/maciek/pecl_http-1.7.5/http_message_object.c: In function ‘zim_HttpMessage_toMessageTypeObject’:
/home/maciek/pecl_http-1.7.5/http_message_object.c:1229:2: warning: ‘php_set_error_handling’ is deprecated (declared at /opt/php-5.5/include/php/main/php.h:293) [-Wdeprecated-declarations]
/home/maciek/pecl_http-1.7.5/http_message_object.c:1353:2: warning: ‘php_set_error_handling’ is deprecated (declared at /opt/php-5.5/include/php/main/php.h:293) [-Wdeprecated-declarations]
make: *** [http_message_object.lo] Błąd 1



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-06-20 12:45 UTC] kasztelix at gmail dot com
-Summary: Attention: I'm using PHP 5.5.0 (stable version, not RC) +Summary: Compilation error on PHP 5.5.0
 [2013-06-20 12:45 UTC] kasztelix at gmail dot com
Attention: I'm using PHP 5.5.0 (stable version, not RC)
 [2013-06-20 13:22 UTC] mike@php.net
-Status: Open +Status: Duplicate -Assigned To: +Assigned To: mike
 [2013-06-20 13:22 UTC] mike@php.net
Duplicate of bug #64380.

Just released a fix.

Thank you.
 [2013-08-11 20:50 UTC] seyhun_cavus at hotmail dot com
the same error appears while compiling 5.5.1
 [2013-11-30 20:03 UTC] gentoo at derp dot nl
same issue with 5.5.4.
 [2013-11-30 20:39 UTC] gentoo at derp dot nl
resolved by bumping pecl_http from 1.7.5 to 1.7.6.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC