php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57076 pecl_http 1.0.0 does not compile on FreeBSD 4.11 system with gcc 2.95.4
Submitted: 2006-06-11 04:49 UTC Modified: 2006-06-13 13:12 UTC
From: zaa at zaa dot pp dot ru Assigned: mike (profile)
Status: Closed Package: pecl_http (PECL)
PHP Version: 5.1.2 OS: FreeBSD
Private report: No CVE-ID: None
 [2006-06-11 04:49 UTC] zaa at zaa dot pp dot ru
Description:
------------
orion:...dev/pecl_http-1.0.0> uname -mrs
FreeBSD 4.11-STABLE i386

orion:...dev/pecl_http-1.0.0> gcc -v
Using builtin specs.
gcc version 2.95.4 20020320 [FreeBSD]

orion:...dev/pecl_http-1.0.0> 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:...dev/pecl_http-1.0.0> phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20050922
Zend Extension Api No:   220051025

orion:...dev/pecl_http-1.0.0> ./configure --enable-http --with-php-config=/usr/local/bin/php-config --with-http-curl-requests=/usr/local --with-http-magic-mime=/usr/local --without-http-zlib-compression --prefix=/usr/local
checking for egrep... grep -E
checking for a sed that does not truncate output... /usr/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 ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... yes
checking build system type... i386-unknown-freebsd4.11
checking host system type... i386-unknown-freebsd4.11
checking target system type... i386-unknown-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... 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... 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 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_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 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 gcc... /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... /usr/bin/nm -B
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 g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking the maximum length of command line arguments... 49152
checking command to parse /usr/bin/nm -B 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... yes
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/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
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

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 g++... /usr/libexec/elf/ld
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking whether the g++ linker (/usr/libexec/elf/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ 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


orion:...dev/pecl_http-1.0.0> make
/bin/bash /u/zaa/dev/pecl_http-1.0.0/libtool --mode=compile gcc  -I. -I/u/zaa/dev/pecl_http-1.0.0 -DPHP_ATOM_INC -I/u/zaa/dev/pecl_http-1.0.0/include -I/u/zaa/dev/pecl_http-1.0.0/main -I/u/zaa/dev/pecl_http-1.0.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/include/php/ext -I/usr/local/include -I/usr/local/include/php/ext/hash  -DHAVE_CONFIG_H  -g -O2   -c /u/zaa/dev/pecl_http-1.0.0/missing.c -o missing.lo
mkdir .libs
 gcc -I. -I/u/zaa/dev/pecl_http-1.0.0 -DPHP_ATOM_INC -I/u/zaa/dev/pecl_http-1.0.0/include -I/u/zaa/dev/pecl_http-1.0.0/main -I/u/zaa/dev/pecl_http-1.0.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/include/php/ext -I/usr/local/include -I/usr/local/include/php/ext/hash -DHAVE_CONFIG_H -g -O2 -c /u/zaa/dev/pecl_http-1.0.0/missing.c  -fPIC -DPIC -o .libs/missing.o
/bin/bash /u/zaa/dev/pecl_http-1.0.0/libtool --mode=compile gcc  -I. -I/u/zaa/dev/pecl_http-1.0.0 -DPHP_ATOM_INC -I/u/zaa/dev/pecl_http-1.0.0/include -I/u/zaa/dev/pecl_http-1.0.0/main -I/u/zaa/dev/pecl_http-1.0.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/include/php/ext -I/usr/local/include -I/usr/local/include/php/ext/hash  -DHAVE_CONFIG_H  -g -O2   -c /u/zaa/dev/pecl_http-1.0.0/http.c -o http.lo
 gcc -I. -I/u/zaa/dev/pecl_http-1.0.0 -DPHP_ATOM_INC -I/u/zaa/dev/pecl_http-1.0.0/include -I/u/zaa/dev/pecl_http-1.0.0/main -I/u/zaa/dev/pecl_http-1.0.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/include/php/ext -I/usr/local/include -I/usr/local/include/php/ext/hash -DHAVE_CONFIG_H -g -O2 -c /u/zaa/dev/pecl_http-1.0.0/http.c  -fPIC -DPIC -o .libs/http.o
In file included from /u/zaa/dev/pecl_http-1.0.0/http.c:28:
/u/zaa/dev/pecl_http-1.0.0/php_http_cache_api.h:24: `defined' without an identifier
/u/zaa/dev/pecl_http-1.0.0/php_http_cache_api.h:24: `defined' without an identifier
/u/zaa/dev/pecl_http-1.0.0/php_http_cache_api.h:24: `defined' without an identifier
/u/zaa/dev/pecl_http-1.0.0/php_http_cache_api.h:24: syntax error
In file included from /u/zaa/dev/pecl_http-1.0.0/http.c:44:
/u/zaa/dev/pecl_http-1.0.0/php_http_querystring_object.h:53: `defined' without an identifier
/u/zaa/dev/pecl_http-1.0.0/php_http_querystring_object.h:53: `defined' without an identifier
/u/zaa/dev/pecl_http-1.0.0/php_http_querystring_object.h:53: `defined' without an identifier
/u/zaa/dev/pecl_http-1.0.0/php_http_querystring_object.h:53: syntax error
/u/zaa/dev/pecl_http-1.0.0/http.c:140: `defined' without an identifier
/u/zaa/dev/pecl_http-1.0.0/http.c:140: `defined' without an identifier
/u/zaa/dev/pecl_http-1.0.0/http.c:140: `defined' without an identifier
/u/zaa/dev/pecl_http-1.0.0/http.c:140: syntax error
/u/zaa/dev/pecl_http-1.0.0/http.c:146: `defined' without an identifier
/u/zaa/dev/pecl_http-1.0.0/http.c:146: `defined' without an identifier
/u/zaa/dev/pecl_http-1.0.0/http.c:146: `defined' without an identifier
/u/zaa/dev/pecl_http-1.0.0/http.c:146: syntax error
/u/zaa/dev/pecl_http-1.0.0/http.c:149: `defined' without an identifier
/u/zaa/dev/pecl_http-1.0.0/http.c:149: `defined' without an identifier
/u/zaa/dev/pecl_http-1.0.0/http.c:149: `defined' without an identifier
/u/zaa/dev/pecl_http-1.0.0/http.c:149: syntax error
*** Error code 1

Stop in /usr/home/zaa/dev/pecl_http-1.0.0.




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-11 08:51 UTC] mike@php.net
Unfortunately, I think, I can't fix the HAVE_EXT magic for gcc-2, but just disable it.

This patch should get the build back to work:
http://dev.iworks.at/PATCHES/pecl_http-freebsd2.txt
 [2006-06-11 12:41 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.

Can you please verify that CVS works for you?

Thank you!
 [2006-06-13 11:41 UTC] mike@php.net
Note that changes comitted to CVS are different than the posted patch.  If there are no further issues, I'll release it as 1.0.1.

Thanks.
 [2006-06-13 11:46 UTC] zaa at zaa dot pp dot ru
Yes, the patch fixes the issue for FreeBSD 4.x installations.

Thank you.
 [2006-06-13 12:52 UTC] mike@php.net
Hrm... the obsolete patch posted here or the one from latest CVS?

Sorry. :)
 [2006-06-13 13:12 UTC] zaa at zaa dot pp dot ru
Both of them work OK for me.
Checkout of pecl/http from CVS compiles without any errors on FreeBSD 4.11 with gcc 2.95.4

Thank you.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Sep 25 01:03:38 2021 UTC