FreeBSD Port: pecl-jsmin-2.0.1_1

Rafal Lukawiecki raf at
Mon Sep 18 21:33:58 UTC 2017

I was wondering if there was a PHP7.0 version of this port—make fails with a message that it does not support it.

There is a well-respected GitHub variant, <> that works very well on Linux. Bear in mind this is the feature/php7 branch in that repo, not the master. Unfortunately, I am relatively new to FreeBSD so my apologies if this sounds trivial, but I could not compile from that.

make install clean fails for me with: fatal error: 'alloca.h' file not found

This is as much as I get:

$ make install clean
/bin/sh /home/rafal/pecl-jsmin/libtool --mode=compile cc  -I. -I/home/rafal/pecl-jsmin -DPHP_ATOM_INC -I/home/rafal/pecl-jsmin/include -I/home/rafal/pecl-jsmin/main -I/home/rafal/pecl-jsmin -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  -g -O2   -c /home/rafal/pecl-jsmin/utf8.c -o utf8.lo
 cc -I. -I/home/rafal/pecl-jsmin -DPHP_ATOM_INC -I/home/rafal/pecl-jsmin/include -I/home/rafal/pecl-jsmin/main -I/home/rafal/pecl-jsmin -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 -g -O2 -c /home/rafal/pecl-jsmin/utf8.c  -fPIC -DPIC -o .libs/utf8.o
/home/rafal/pecl-jsmin/utf8.c:22:10: fatal error: 'alloca.h' file not found
#include <alloca.h>
1 error generated.
*** Error code 1

make: stopped in /home/rafal/pecl-jsmin

I would be very grateful if you could point me in the direction of another package or port that has this functionality working with PHP7.

Many thanks and my regards from Ireland,
Rafal Lukawiecki
Data Scientist 
Project Botticelli Ltd

More information about the freebsd-ports mailing list