php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68000 Extension does not build on FreeBSD
Submitted: 2014-09-10 15:18 UTC Modified: 2014-09-10 16:37 UTC
From: j dot david dot lists at gmail dot com Assigned: mike (profile)
Status: Closed Package: pecl_http (PECL)
PHP Version: 5.6.0 OS: FreeBSD
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: j dot david dot lists at gmail dot com
New email:
PHP Version: OS:

 

 [2014-09-10 15:18 UTC] j dot david dot lists at gmail dot com
Description:
------------
Commit 89d4217ed873aa9ed8bee1faf0d31bb52c911ae6 broke FreeBSD compatibility by using an array syntax not supported by the FreeBSD /bin/sh (which is not bash).

In line 193 of config9.m4 this line:

CURL_SSL_LIBS=()

is taken as a function definition by FreeBSD's shell, but functions may not contain = so it errors out during configure:

/tmp/pear/temp/pecl_http/configure: 5230: Syntax error: Bad function name




Test script:
---------------
Just run configure on FreeBSD.


Actual result:
--------------
downloading pecl_http-2.1.1.tar ...
Starting to download pecl_http-2.1.1.tar (Unknown size)
.....................................done: 989,184 bytes
64 source files, building
running: phpize
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
Enable extended HTTP support [yes] : where to find zlib [/usr] : where to find libcurl [/usr] : where to find libevent [/usr] : building in /tmp/pear/temp/pear-build-rootpvG2IB/pecl_http-2.1.1
running: /tmp/pear/temp/pecl_http/configure --with-http --with-http-zlib-dir=/usr --with-http-libcurl-dir=/usr/local --with-http-libevent-dir=/usr/local
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
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 clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking how to run the C preprocessor... clang -E
checking for icc... no
checking for suncc... no
checking whether clang and cc understand -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-freebsd9.2
checking host system type... x86_64-unknown-freebsd9.2
checking target system type... x86_64-unknown-freebsd9.2
checking for PHP prefix... /usr/local/php
checking for PHP includes... -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php/libexec
checking for PHP installed headers prefix... /usr/local/php/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
/tmp/pear/temp/pecl_http/configure: 5230: Syntax error: Bad function name
ERROR: `/tmp/pear/temp/pecl_http/configure --with-http --with-http-zlib-dir=/usr --with-http-libcurl-dir=/usr/local --with-http-libevent-dir=/usr/local' failed
Failed pecl_http.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-09-10 16:37 UTC] mike@php.net
-Assigned To: +Assigned To: mike
 [2014-09-15 12:17 UTC] mike@php.net
Automatic comment on behalf of mike
Revision: http://git.php.net/?p=pecl/http/pecl_http.git;a=commit;h=fd4d4b228d525f2e9b065d47516658866ad2f1eb
Log: Fix bug #68000 	Extension does not build on FreeBSD
 [2014-09-15 12:17 UTC] mike@php.net
-Status: Assigned +Status: Closed
 [2014-09-15 12:18 UTC] mike@php.net
Automatic comment on behalf of mike
Revision: http://git.php.net/?p=pecl/http/pecl_http.git;a=commit;h=fd4d4b228d525f2e9b065d47516658866ad2f1eb
Log: Fix bug #68000 	Extension does not build on FreeBSD
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 12 09:01:27 2024 UTC