php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59327 Make failed
Submitted: 2010-07-29 15:04 UTC Modified: 2011-05-05 02:43 UTC
From: victor_petrov at harvard dot edu Assigned: mike (profile)
Status: Closed Package: pecl_http (PECL)
PHP Version: 5.3.2 OS: Ubuntu 10.04
Private report: No CVE-ID: None
 [2010-07-29 15:04 UTC] victor_petrov at harvard dot edu
Description:
------------
I can't seem to install the pecl_http extension on Ubuntu 
10.04 LTS 64bit. I'm using PHP 5.3.2-1ubuntu5 which I 
installed using APT.

I ran this command: 'sudo pecl install pecl_http'
and I got the following error:
---------------------------------------------------------
/tmp/pear/temp/pecl_http/http.c:69: error: 
http_arg_pass_ref_3 undeclared here (not in a function)
make: *** [http.lo] Error 1
ERROR: `make' failed
---------------------------------------------------------


The full build log is here: http://codepad.org/rSMyvh1R

Output from 'php-config5 --configure-options' :
---------------------------------------------------------
--prefix=/usr --with-apxs2=/usr/bin/apxs2 --with-config-
file-path=/etc/php5/apache2 --with-config-file-scan-
dir=/etc/php5/apache2/conf.d --build=x86_64-linux-gnu --
host=x86_64-linux-gnu --sysconfdir=/etc --
mandir=/usr/share/man --disable-debug --with-regex=php --
disable-rpath --disable-static --with-pic --with-layout=GNU 
--with-pear=/usr/share/php --enable-calendar --enable-
sysvsem --enable-sysvshm --enable-sysvmsg --enable-bcmath --
with-bz2 --enable-ctype --with-db4 --without-gdbm --with-
iconv --enable-exif --enable-ftp --with-gettext --enable-
mbstring --with-pcre-regex=/usr --enable-shmop --enable-
sockets --enable-wddx --with-libxml-dir=/usr --with-zlib --
with-kerberos=/usr --with-openssl=/usr --enable-soap --
enable-zip --with-mhash=yes --with-exec-
dir=/usr/lib/php5/libexec --with-system-tzdata --without-mm 
--with-curl=shared,/usr --with-enchant=shared,/usr --with-
zlib-dir=/usr --with-gd=shared,/usr --enable-gd-native-ttf -
-with-gmp=shared,/usr --with-jpeg-dir=shared,/usr --with-
xpm-dir=shared,/usr/X11R6 --with-png-dir=shared,/usr --with-
freetype-dir=shared,/usr --enable-intl=shared --with-
ttf=shared,/usr --with-t1lib=shared,/usr --with-
ldap=shared,/usr --with-ldap-sasl=/usr --with-
mysql=shared,/usr --with-mysqli=shared,/usr/bin/mysql_config 
--with-pspell=shared,/usr --with-unixODBC=shared,/usr --
with-recode=shared,/usr --with-xsl=shared,/usr --with-
snmp=shared,/usr --with-sqlite=shared,/usr --with-
sqlite3=shared,/usr --with-mssql=shared,/usr --with-
tidy=shared,/usr --with-xmlrpc=shared --with-
pgsql=shared,/usr
-----------------------------------------------------------



Reproduce code:
---------------
sudo pecl install pecl_http


Expected result:
----------------
the pecl extension installed

Actual result:
--------------
/tmp/pear/temp/pecl_http/http.c:69: error: http_arg_pass_ref_3 
undeclared here (not in a function)
make: *** [http.lo] Error 1
ERROR: `make' failed

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-30 19:11 UTC] xywang at yahoo dot com
Have the same problem. Any solution?

 gcc -I. -I/tmp/tmpFlAmoa/pecl_http-1.7.0 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/pecl_http-1.7.0/include -I/var/tmp/pear-build-root/pecl_http-1.7.0/main -I/tmp/tmpFlAmoa/pecl_http-1.7.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/hash -DHAVE_CONFIG_H -g -O2 -c /tmp/tmpFlAmoa/pecl_http-1.7.0/http.c  -fPIC -DPIC -o .libs/http.o
/tmp/tmpFlAmoa/pecl_http-1.7.0/http.c:69: error: 'http_arg_pass_ref_3' undeclared here (not in a function)
make: *** [http.lo] Error 1
ERROR: `make' failed
 [2010-08-31 18:24 UTC] jpmitchell at alaska dot edu
Same problem here with RHEL 5.5 and PHP 5.1.6. Pulled the 
older 1.6.6 release and it built fine.
 [2010-09-24 12:58 UTC] gjempty at lulu dot com
Same problem here with RHEL 5.3 and PHP 5.1.6.
 [2010-10-05 04:03 UTC] mabroukb at gmail dot com
same here when building on windows php 5.3 and http 1.7.0:
http.c
..\pecl\http\http.c(69) : error C2065: 'http_arg_pass_ref_3' : undeclared identifier
..\pecl\http\http.c(69) : error C2099: initializer is not a constant
[snip]
 [2011-03-21 14:38 UTC] alex at kfactormedia dot com
Same problem with CentOS 5.5 i386.
 [2011-05-05 02:43 UTC] mike@php.net
This bug has been fixed in SVN.

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC