Bug 188386 - lang/php5 port fails to configure with cli and cgi disabled
Summary: lang/php5 port fails to configure with cli and cgi disabled
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Alex Dupre
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-09 02:30 UTC by rootrider
Modified: 2014-04-09 09:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rootrider 2014-04-09 02:30:00 UTC
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@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.

Fix: 

enable cli option in 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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-04-09 02:30:04 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2014-04-09 08:58:46 UTC
Author: ale
Date: Wed Apr  9 07:58:43 2014
New Revision: 350670
URL: http://svnweb.freebsd.org/changeset/ports/350670
QAT: https://qat.redports.org/buildarchive/r350670/

Log:
  Now that mod_php is a separate port, allow to deselect all SAPIs.
  
  PR:		ports/188386
  Submitted by:	Joel Parker <rootrider@shellfront.org>

Modified:
  head/lang/php5/files/patch-configure.in
  head/lang/php55/files/patch-configure.in

Modified: head/lang/php5/files/patch-configure.in
==============================================================================
--- head/lang/php5/files/patch-configure.in	Wed Apr  9 07:47:01 2014	(r350669)
+++ head/lang/php5/files/patch-configure.in	Wed Apr  9 07:58:43 2014	(r350670)
@@ -1,6 +1,6 @@
---- configure.in.orig	2013-12-10 19:32:43.000000000 +0000
-+++ configure.in	2013-12-13 21:55:53.986235686 +0000
-@@ -370,7 +370,6 @@ sinclude(TSRM/tsrm.m4)
+--- configure.in.orig	2014-04-02 05:43:49.000000000 +0000
++++ configure.in	2014-04-09 07:55:06.042404378 +0000
+@@ -370,7 +370,6 @@
  dnl .
  dnl -------------------------------------------------------------------------
  
@@ -8,7 +8,15 @@
  PHP_HELP_SEPARATOR([SAPI modules:])
  PHP_SHLIB_SUFFIX_NAMES
  PHP_BUILD_PROGRAM
-@@ -409,7 +408,6 @@ fi
+@@ -401,15 +400,9 @@
+   AC_MSG_RESULT([none])
+ fi
+ 
+-dnl Exit early
+-if test -z "$PHP_INSTALLED_SAPIS"; then
+-  AC_MSG_ERROR([Nothing to build.])
+-fi
+-
  dnl force ZTS
  if test "$enable_maintainer_zts" = "yes"; then
    PTHREADS_ASSIGN_VARS
@@ -16,7 +24,7 @@
  fi
  
  dnl Starting system checks.
-@@ -688,7 +686,7 @@ nanosleep \
+@@ -688,7 +681,7 @@
  )
  
  dnl Some systems (like OpenSolaris) do not have nanosleep in libc
@@ -25,7 +33,7 @@
  
  dnl Check for getaddrinfo, should be a better way, but...
  dnl Also check for working getaddrinfo
-@@ -1225,7 +1223,7 @@ EXPANDED_SYSCONFDIR=`eval echo $sysconfd
+@@ -1225,7 +1218,7 @@
  EXPANDED_DATADIR=$datadir
  EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"`
  EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"`
@@ -34,7 +42,7 @@
  
  exec_prefix=$old_exec_prefix
  libdir=$old_libdir
-@@ -1435,7 +1433,7 @@ PHP_SUBST(all_targets)
+@@ -1435,7 +1428,7 @@
  PHP_SUBST(install_targets)
  PHP_SUBST(install_binary_targets)
  

Modified: head/lang/php55/files/patch-configure.in
==============================================================================
--- head/lang/php55/files/patch-configure.in	Wed Apr  9 07:47:01 2014	(r350669)
+++ head/lang/php55/files/patch-configure.in	Wed Apr  9 07:58:43 2014	(r350670)
@@ -1,6 +1,6 @@
---- configure.in.orig	2013-12-10 23:31:06.000000000 +0000
-+++ configure.in	2013-12-13 21:50:25.183258334 +0000
-@@ -370,7 +370,6 @@ sinclude(TSRM/tsrm.m4)
+--- configure.in.orig	2014-04-01 12:32:03.000000000 +0000
++++ configure.in	2014-04-09 07:56:27.824397653 +0000
+@@ -370,7 +370,6 @@
  dnl .
  dnl -------------------------------------------------------------------------
  
@@ -8,7 +8,15 @@
  PHP_HELP_SEPARATOR([SAPI modules:])
  PHP_SHLIB_SUFFIX_NAMES
  PHP_BUILD_PROGRAM
-@@ -409,7 +408,6 @@ fi
+@@ -401,15 +400,9 @@
+   AC_MSG_RESULT([none])
+ fi
+ 
+-dnl Exit early
+-if test -z "$PHP_INSTALLED_SAPIS"; then
+-  AC_MSG_ERROR([Nothing to build.])
+-fi
+-
  dnl force ZTS
  if test "$enable_maintainer_zts" = "yes"; then
    PTHREADS_ASSIGN_VARS
@@ -16,7 +24,7 @@
  fi
  
  dnl Starting system checks.
-@@ -688,7 +686,7 @@ nanosleep \
+@@ -688,7 +681,7 @@
  )
  
  dnl Some systems (like OpenSolaris) do not have nanosleep in libc
@@ -25,7 +33,7 @@
  
  dnl Check for getaddrinfo, should be a better way, but...
  dnl Also check for working getaddrinfo
-@@ -1225,7 +1223,7 @@ EXPANDED_SYSCONFDIR=`eval echo $sysconfd
+@@ -1225,7 +1218,7 @@
  EXPANDED_DATADIR=$datadir
  EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"`
  EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"`
@@ -34,7 +42,7 @@
  
  exec_prefix=$old_exec_prefix
  libdir=$old_libdir
-@@ -1435,7 +1433,7 @@ PHP_SUBST(all_targets)
+@@ -1435,7 +1428,7 @@
  PHP_SUBST(install_targets)
  PHP_SUBST(install_binary_targets)
  
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Alex Dupre freebsd_committer freebsd_triage 2014-04-09 08:58:53 UTC
State Changed
From-To: open->closed

Fixed, thanks.