php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58392 compilation fails on http_request_pool_api.c
Submitted: 2008-10-28 05:05 UTC Modified: 2008-10-29 04:38 UTC
From: idemjanenko at fotki dot com Assigned: mike (profile)
Status: Not a bug Package: pecl_http (PECL)
PHP Version: 5.2.5 OS: freebsd 4.11
Private report: No CVE-ID: None
 [2008-10-28 05:05 UTC] idemjanenko at fotki dot com
Description:
------------
tried to compile pecl_http on freebsd 4.11, gcc 2.95.4
php version 5.2.6
configure: ./configure --with-http-curl-requests --with-http-zlib-compression --with-http-magic-mime=no --with-http-shared-deps

zlib version >= 1.2.0.4... 1.2.3
curl version >= 7.12.3... 7.18.0

the problem is following:

 gcc -I. -I/usr/local/dist/http_from_cvs/pecl/http -DPHP_ATOM_INC -I/usr/local/dist/http_from_cvs/pecl/http/include -I/usr/local/dist/http_from_cvs/pecl/http/main -I/usr/local/dist/http_from_cvs/pecl/http -I/usr/local/php526/include/php -I/usr/local/php526/include/php/main -I/usr/local/php526/include/php/TSRM -I/usr/local/php526/include/php/Zend -I/usr/local/php526/include/php/ext -I/usr/local/php526/include/php/ext/date/lib -I/usr/local/include -I/usr/local/php526/include/php/ext/hash -DHAVE_CONFIG_H -g -O2 -c /usr/local/dist/http_from_cvs/pecl/http/http_request_pool_api.c  -fPIC -DPIC -o .libs/http_request_pool_api.o
/usr/local/dist/http_from_cvs/pecl/http/http_request_pool_api.c: In function `_http_request_pool_attach':
/usr/local/dist/http_from_cvs/pecl/http/http_request_pool_api.c:113: syntax error before `*'
/usr/local/dist/http_from_cvs/pecl/http/http_request_pool_api.c:119: `req' undeclared (first use in this function)
/usr/local/dist/http_from_cvs/pecl/http/http_request_pool_api.c:119: (Each undeclared identifier is reported only once
/usr/local/dist/http_from_cvs/pecl/http/http_request_pool_api.c:119: for each function it appears in.)
/usr/local/dist/http_from_cvs/pecl/http/http_request_pool_api.c: In function `_http_request_pool_detach':
/usr/local/dist/http_from_cvs/pecl/http/http_request_pool_api.c:150: syntax error before `*'
/usr/local/dist/http_from_cvs/pecl/http/http_request_pool_api.c:156: `req' undeclared (first use in this function)
/usr/local/dist/http_from_cvs/pecl/http/http_request_pool_api.c: In function `_http_request_pool_apply_responsehandler':
/usr/local/dist/http_from_cvs/pecl/http/http_request_pool_api.c:398: syntax error before `*'
/usr/local/dist/http_from_cvs/pecl/http/http_request_pool_api.c:400: `obj' undeclared (first use in this function)
*** Error code 1

Any suggestions ? 
Thanks !


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-28 09:35 UTC] mike@php.net
> Any suggestions ? 

I'd suggest using newer gcc version.
 [2008-10-29 02:33 UTC] idemjanenko at fotki dot com
thank you, Sir !
switching to gcc34 from ports helped 
bug closed
 [2008-10-29 04:38 UTC] mike@php.net
Ok, I think gcc<3 has never been supported.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 22:01:27 2024 UTC