php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57248 1.3.0 does not compile using gcc 2.95.4
Submitted: 2006-09-19 12:26 UTC Modified: 2006-09-19 18:55 UTC
From: zaa at zaa dot pp dot ru Assigned: mike (profile)
Status: Closed Package: pecl_http (PECL)
PHP Version: 5.1.4 OS: FreeBSD 4.11-STABLE
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: zaa at zaa dot pp dot ru
New email:
PHP Version: OS:

 

 [2006-09-19 12:26 UTC] zaa at zaa dot pp dot ru
Description:
------------
pecl_http 1.3.0 does not compile on FreeBSD 4.11-STABLE system with default gcc 2.95.4

orion:...www/pecl-pecl_http# php -v
PHP 5.1.4 (cli) (built: Jun  8 2006 10:19:25)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

orion:...www/pecl-pecl_http# uname -rms
FreeBSD 4.11-STABLE i386

orion:...www/pecl-pecl_http# gcc -v
Using builtin specs.
gcc version 2.95.4 20020320 [FreeBSD]

===>  Configuring for pecl-pecl_http-1.3.0
configure: WARNING: you should use --build, --host, --target
checking for egrep... grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for i386-portbld-freebsd4.11-gcc... cc
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 cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking whether cc understands -c and -o together... yes
checking if compiler supports -R... yes
checking build system type... i386-portbld-freebsd4.11
checking host system type... i386-portbld-freebsd4.11
checking target system type... i386-portbld-freebsd4.11
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
checking for PHP extension directory... /usr/local/lib/php/20050922
checking for PHP installed headers prefix... /usr/local/include/php
checking for re2c... no
configure: WARNING: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable extended HTTP support... yes, shared
checking whether to enable cURL HTTP request support... /usr/local
checking whether to enable zlib encodings support... no
checking whether to enable response content type guessing... /usr/local
checking whether to depend on extensions which have been built shared... yes
checking for egrep... (cached) grep -E
checking for a sed that does not truncate output... (cached) /usr/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... no
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 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.15.3
checking for SSL support in libcurl... yes
checking for SSL library used... openssl
checking openssl/crypto.h usability... yes
checking openssl/crypto.h presence... yes
checking for openssl/crypto.h... yes
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_getFormData in -lcurl... yes
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 magic.h... found in /usr/local
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 cc... /usr/libexec/elf/ld
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking for /usr/libexec/elf/ld option to reload object files... -r
checking for BSD-compatible nm... nm
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 for i386-portbld-freebsd4.11-g++... c++
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking how to run the C++ preprocessor... c++ -E
checking the maximum length of command line arguments... (cached) 65536
checking command to parse nm output from cc object... ok
checking for objdir... .libs
checking for i386-portbld-freebsd4.11-ar... no
checking for ar... ar
checking for i386-portbld-freebsd4.11-ranlib... no
checking for ranlib... ranlib
checking for i386-portbld-freebsd4.11-strip... no
checking for strip... strip
checking if cc static flag  works... yes
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/libexec/elf/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... freebsd4.11 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
checking for ld used by c++... /usr/libexec/elf/ld
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking whether the c++ linker (/usr/libexec/elf/ld) supports shared libraries... yes
checking for c++ option to produce PIC... -fPIC
checking if c++ PIC flag -fPIC works... yes
checking if c++ supports -c -o file.o... yes
checking whether the c++ linker (/usr/libexec/elf/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd4.11 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
configure: creating ./config.status
config.status: creating config.h
===>  Building for pecl-pecl_http-1.3.0

...

 cc -I. -I/usr/obj/usr/ports/www/pecl-pecl_http/work/pecl_http-1.3.0 -DPHP_ATOM_INC -I/usr/obj/usr/ports/www/pecl-pecl_http/work/pecl_http
-1.3.0/include -I/usr/obj/usr/ports/www/pecl-pecl_http/work/pecl_http-1.3.0/main -I/usr/obj/usr/ports/www/pecl-pecl_http/work/pecl_http-1.
3.0 -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/includ
e/php/ext -I/usr/local/include -I/usr/local/include/php/ext/hash -DHAVE_CONFIG_H -O -pipe -c /usr/obj/usr/ports/www/pecl-pecl_http/work/pe
cl_http-1.3.0/http_request_datashare_api.c  -fPIC -DPIC -o .libs/http_request_datashare_api.o
/usr/obj/usr/ports/www/pecl-pecl_http/work/pecl_http-1.3.0/http_request_datashare_api.c: In function `http_request_datashare_destroy_handl
es':
/usr/obj/usr/ports/www/pecl-pecl_http/work/pecl_http-1.3.0/http_request_datashare_api.c:226: syntax error before `*'
/usr/obj/usr/ports/www/pecl-pecl_http/work/pecl_http-1.3.0/http_request_datashare_api.c:228: `obj' undeclared (first use in this function)
/usr/obj/usr/ports/www/pecl-pecl_http/work/pecl_http-1.3.0/http_request_datashare_api.c:228: (Each undeclared identifier is reported only
once
/usr/obj/usr/ports/www/pecl-pecl_http/work/pecl_http-1.3.0/http_request_datashare_api.c:228: for each function it appears in.)
*** Error code 1

Stop in /usr/obj/usr/ports/www/pecl-pecl_http/work/pecl_http-1.3.0.
*** Error code 1


4.11 is still widely deployed FreeBSD version, so it would be great if you could fix compilation error.

Thank you.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-19 18:55 UTC] mike@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Sep 20 20:03:37 2021 UTC