Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Dec 2010 15:36:24 GMT
From:      Mirko Steiner <m.steiner@red-cat.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/152891: Port pecl-APC 3.1.6 does not build || /usr/local/bin/phpize is not correct
Message-ID:  <201012071536.oB7FaOOg001833@red.freebsd.org>
Resent-Message-ID: <201012071540.oB7Fe9Ua079837@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         152891
>Category:       ports
>Synopsis:       Port pecl-APC 3.1.6 does not build || /usr/local/bin/phpize is not correct
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 07 15:40:09 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Mirko Steiner
>Release:        8.1-STABLE
>Organization:
red-cat networks gmbh
>Environment:
FreeBSD server.steiner.internal 8.1-STABLE FreeBSD 8.1-STABLE #4: Tue Oct 19 15:27:24 CEST 2010     root@server.steiner.internal:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
i've tried to upgrade via portmaster, in /usr/ports/www/pecl-APC an error eccoured:

-- snip --
[mirko@server /usr/ports/www/pecl-APC]$ sudo make install
===>   pecl-APC-3.1.6 depends on file: /usr/local/bin/phpize - found
===>   pecl-APC-3.1.6 depends on file: /usr/local/bin/autoconf-2.68 - found
===>  PHPizing for pecl-APC-3.1.6
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

*** Error code 1

Stop in /usr/ports/www/pecl-APC.
*** Error code 1

Stop in /usr/ports/www/pecl-APC.
-- snap --

i've tried a make -d A and tried the shell command by hand, anyway it seems that the shellscript /usr/local/bin/phpize from php5-5.3.3_2 has hardcodes versionnumbers of autoconf in it

-- /usr/local/bin/phpize line 121-122 --
  test -z "$PHP_AUTOCONF" && PHP_AUTOCONF=autoconf-2.67
  test -z "$PHP_AUTOHEADER" && PHP_AUTOHEADER=autoheader-2.67
-- 

but i have now autoconf-2.68 installed...
>How-To-Repeat:
e.g. 

# cd /usr/local/www/pecl-APC/
# make

>Fix:
remove the version number from phpize and rely on autoconf-wrapper....


--- /usr/local/bin/phpize       2010-12-07 16:35:08.468123814 +0100
+++ /usr/local/bin/phpize.old   2010-12-07 16:34:52.137789511 +0100
@@ -118,8 +118,8 @@
 
 phpize_check_autotools()
 {
-  test -z "$PHP_AUTOCONF" && PHP_AUTOCONF=autoconf
-  test -z "$PHP_AUTOHEADER" && PHP_AUTOHEADER=autoheader
+  test -z "$PHP_AUTOCONF" && PHP_AUTOCONF=autoconf-2.67
+  test -z "$PHP_AUTOHEADER" && PHP_AUTOHEADER=autoheader-2.67
   
   if test ! -x "$PHP_AUTOCONF" && test ! -x "`$php_shtool path $PHP_AUTOCONF`"; then
     cat <<EOF


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012071536.oB7FaOOg001833>