| Summary: | lang/php5: phar and session extension needs hash | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | papowell | ||||
| Component: | Individual Port(s) | Assignee: | Alex Dupre <ale> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
Responsible Changed From-To: freebsd-ports-bugs->ale Over to maintainer (via the GNATS Auto Assign Tool) State Changed From-To: open->closed There is already the correct dependency on session. |
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. 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: How-To-Repeat: See above