ports/188386: lang/php5 port fails to configure with cli and cgi disabled

Joel Parker rootrider at shellfront.org
Wed Apr 9 01:30:00 UTC 2014


>Number:         188386
>Category:       ports
>Synopsis:       lang/php5 port fails to configure with cli and cgi disabled
>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:   Wed Apr 09 01:30:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Joel Parker
>Release:        9.2
>Organization:
>Environment:
FreeBSD windy.fakelag.net 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013     root at bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
attempting to upgrade ports from old versions. Ports were all last updated on 20131120. Using pkgng, if that matters. Attempted to install mod/www_php5 first, which built, but did not install due to libphp5.so conflict with the lang/php5 package. Ran make clean and make config in both mod/www_php5 and lang/php5 and then tried again. 'make install' in www/mod_php successfully builds, then starts a configure/build for lang/php5. The configure for php5 fails saying "nothing to build".

'bsdx' in #freebsd on freenode suggested enabling cli or cgi in the config for lang/php5 and trying again. I enabled 'cli' and this allowed lang/php5 to successfully configure, and then build. www/mod_php5 then installed as well.

My www/mod_php5 config:
disabled ap2filter
disabled debug
disabled dtrace
enabled ipv6
disabled mailhed
enabled linkthr
disabled zts

My lang/php5 config:
disabled cli
disabled cgi
disabled fpm
disabled embed
disabled debug
disabled dtrace
enabled ipv6
disabled mailhead
enabled linkthr
disabled zts

So, by simply enabling cli in lang/php5, success was found.


lang/php5 make install output with cli disabled:
[ /usr/ports/lang/php5]# make install
===>  License PHP301 accepted by the user
===>  Found saved configuration for php5-5.4.27
===>   php5-5.4.27 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by php5-5.4.27 for building
===>  Extracting for php5-5.4.27
=> SHA256 Checksum OK for php-5.4.27.tar.bz2.
===>  Patching for php5-5.4.27
===>  Applying FreeBSD patches for php5-5.4.27
===>   php5-5.4.27 depends on file: /usr/local/bin/autoconf-2.69 - found
===>   php5-5.4.27 depends on shared library: libpcre.so - found
===>   php5-5.4.27 depends on shared library: libxml2.so - found
===>  Configuring for php5-5.4.27
configure: loading site script /usr/ports/Templates/config.site
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for a sed that does not truncate output... (cached) sed
checking build system type... amd64-portbld-freebsd9.2
checking host system type... amd64-portbld-freebsd9.2
checking target system type... amd64-portbld-freebsd9.2
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 cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cpp
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking how to run the C preprocessor... cpp
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for minix/config.h... (cached) no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether ln -s works... yes
checking for system library directory... lib
checking whether to enable runpaths... yes
checking if compiler supports -R... yes
checking for gawk... (cached) /usr/bin/awk
checking if /usr/bin/awk is broken... no
checking for bison... bison -y
checking for bison version... invalid
configure: WARNING: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3 2.5 2.5.1 2.6 2.6.1 2.6.2 2.6.4 (found: 2.7).
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking whether to enable computed goto gcc extension with re2c... no
checking whether to force non-PIC code in shared modules... no
checking whether /dev/urandom exists... yes

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking whether to enable Apache charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS... no
checking for Apache 1.x (hooks) module support via DSO through APXS... no
checking for Apache 1.x (hooks) module support... no
checking whether to enable Apache charset compatibility option... no
checking for Caudium support... no
checking for CLI build... no
checking for Continuity support... no
checking for embedded SAPI library support... no
checking for FPM build... no
checking for Zeus ISAPI support... no
checking for LiteSpeed support... no
checking for Milter support... no
checking for NSAPI support... no
checking for PHTTPD support... no
checking for Pi3Web support... no
checking whether Roxen module is build using ZTS... no
checking for Roxen/Pike support... 
checking for thttpd... no
checking for TUX... no
checking for webjames... no
checking for CGI build... yes
checking for chosen SAPI module... none
checking for executable SAPI binaries... none
configure: error: Nothing to build.
===>  Script "configure" failed unexpectedly.
Please report the problem to ale at FreeBSD.org [maintainer] and attach the
"/usr/ports/lang/php5/work/php-5.4.27/config.log" including the output of the
failure of your make command. Also, it might be a good idea to provide an
overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** [do-configure] Error code 1

Stop in /usr/ports/lang/php5.
*** [install] Error code 1

Stop in /usr/ports/lang/php5.

>How-To-Repeat:
config ports as follows, and attempt to make install ports.

www/mod_php5 config:
disabled ap2filter
disabled debug
disabled dtrace
enabled ipv6
disabled mailhed
enabled linkthr
disabled zts

lang/php5 config:
disabled cli
disabled cgi
disabled fpm
disabled embed
disabled debug
disabled dtrace
enabled ipv6
disabled mailhead
enabled linkthr
disabled zts

>Fix:
enable cli option in lang/php5

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


More information about the freebsd-ports-bugs mailing list