Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 2013 14:51:46 GMT
From:      Patrick Powell <papowell@astart.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/183897: php5 phar and session extension needs hash
Message-ID:  <201311121451.rACEpk4l029206@oldred.freebsd.org>
Resent-Message-ID: <201311121500.rACF03Rh055083@freefall.freebsd.org>

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

>Number:         183897
>Category:       ports
>Synopsis:       php5 phar and session extension needs hash
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 12 15:00:03 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Patrick Powell
>Release:        FreeBSD 8-4, 9-2
>Organization:
Astart Technologies
>Environment:
FreeBSD laptop_84.private 8.4-RELEASE FreeBSD 8.4-RELEASE #0 r251259: Sun Jun  2 21:26:57 UTC 2013     root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
10 Nov 2013
did portsnap
cd /usr/ports/lang/php5 ; make install
cd /usr/ports/lang/php5-extensions
   selected mysqli, phar
make install  -
   install terminated with error:

cc -I.  -I/usr/ports/archivers/php5-phar/work/php-5.4.21/ext/phar -DPHP_ATOM_INC -I/usr/ports/archivers/php5-phar/work/php-5.4.21/ext/phar/include -I/usr/ports
/archivers/php5-phar/work/php-5.4.21/ext/phar/main -I/usr/ports/archivers/php5-phar/work/php-5.4.21/ext/phar -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/php/ext/date/lib -I/usr/local/include -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/
php/ext/date/lib -DHAVE_CONFIG_H -pipe -fno-strict-aliasing -O0 -c /usr/ports/archivers/php5-phar/work/php-5.4.21/ext/phar/util.c -fPIC -DPIC -o .libs/util.o
In file included from /usr/ports/archivers/php5-phar/work/php-5.4.21/ext/phar/util.c:23:
/usr/ports/archivers/php5-phar/work/php-5.4.21/ext/phar/phar_internal.h:70:31: error: ext/hash/php_hash.h: No such file or directory


The phar and session extensions need the 'hash' facility/extension.
>How-To-Repeat:
See above
>Fix:
edit /usr/ports/lang/php5/Makefile.ext and add --enable-hash to configuration options when building phar or session extension:

-- /usr/ports/lang/php5/Makefile.ext   2013-11-12 06:33:07.000000000 -0800
+++ /usr/ports/lang/php5/Makefile.ext.orig      2013-11-12 06:32:28.000000000 -0800
@@ -293,7 +293,6 @@
 .if ${PHP_MODNAME} == "phar"
 CONFIGURE_ARGS+=--enable-phar \
                --with-pcre-dir=${LOCALBASE}
-CONFIGURE_ARGS+=--enable-hash
 
 USE_PHP=       hash
 USE_PHP_BUILD= yes
@@ -325,7 +324,6 @@
 
 .if ${PHP_MODNAME} == "session"
 CONFIGURE_ARGS+=--enable-session
-CONFIGURE_ARGS+=--enable-hash
 .endif
 
 .if ${PHP_MODNAME} == "shmop"


Patch attached with submission follows:

--- /usr/ports/lang/php5/Makefile.ext	2013-11-12 06:33:07.000000000 -0800
+++ /usr/ports/lang/php5/Makefile.ext.orig	2013-11-12 06:32:28.000000000 -0800
@@ -293,7 +293,6 @@
 .if ${PHP_MODNAME} == "phar"
 CONFIGURE_ARGS+=--enable-phar \
 		--with-pcre-dir=${LOCALBASE}
-CONFIGURE_ARGS+=--enable-hash
 
 USE_PHP=	hash
 USE_PHP_BUILD=	yes
@@ -325,7 +324,6 @@
 
 .if ${PHP_MODNAME} == "session"
 CONFIGURE_ARGS+=--enable-session
-CONFIGURE_ARGS+=--enable-hash
 .endif
 
 .if ${PHP_MODNAME} == "shmop"


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



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