Bug #74749 [Opn]: ./configure witch works fine with < 7.1.5 failed about iconv

From: Date: Mon, 12 Jun 2017 12:32:58 +0000
Subject: Bug #74749 [Opn]: ./configure witch works fine with < 7.1.5 failed about iconv
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209505@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74749&edit=1 ID: 74749 User updated by: frederic dot hardy at mageekbox dot net Reported by: frederic dot hardy at mageekbox dot net Summary: ./configure witch works fine with < 7.1.5 failed about iconv Status: Open Type: Bug Package: Compile Failure Operating System: OSX 10.12.5 PHP Version: 7.1.6 Block user comment: N Private report: N New Comment: This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./configure --prefix=/usr/local/Cellar/php56/5.6.24 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/5.6 --with-config-file-path=/usr/local/etc/php/5.6 --with-config-file-scan-dir=/usr/local/etc/php/5.6/conf.d --mandir=/usr/local/Cellar/php56/5.6.24/share/man --enable-bcmath --enable-calendar --enable-dba --enable-exif --enable-ftp --enable-gd-native-ttf --enable-mbregex --enable-mbstring --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --enable-zip --with-freetype-dir=/usr/local/opt/freetype --with-gd --with-gettext=/usr/local/opt/gettext --with-iconv-dir=/usr --with-icu-dir=/usr/local/opt/icu4c --with-jpeg-dir=/usr/local/opt/jpeg --with-kerberos=/usr --with-libedit --with-mhash --with-ndbm=/usr --with-png-dir=/usr/local/opt/libpng --with-xmlrpc --with-zlib=/usr --with-readline=/usr/local/opt/readline --without-gmp --without-snmp --with-libxml-dir=/usr/local/opt/libxml2 --with-pdo-odbc=unixODBC,! /usr/local/opt/unixodbc --with-unixODBC=/usr/local/opt/unixodbc --with-apxs2=/usr/sbin/apxs --libexecdir=/usr/local/Cellar/php56/5.6.24/libexec --with-bz2=/usr --disable-debug --with-openssl=/usr/local/opt/openssl --enable-fpm --with-fpm-user=_www --with-fpm-group=_www --with-curl --with-xsl=/usr --with-ldap --with-ldap-sasl=/usr --with-mysql-sock=/tmp/mysql.sock --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --disable-opcache --enable-pcntl --without-pear --enable-dtrace --disable-phpdbg --enable-zend-signals ## --------- ## ## Platform. ## ## --------- ## hostname = Mageekbook-Pro.local uname -m = x86_64 uname -r = 16.6.0 uname -s = Darwin uname -v = Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 /usr/bin/uname -p = i386 /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = Mach kernel version: Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 Kernel configured for up to 4 processors. 2 processors are physically available. 4 processors are logically available. Processor type: x86_64h (Intel x86-64h Haswell) Processors active: 0 1 2 3 Primary memory available: 16.00 gigabytes Default processor set: 495 tasks, 2074 threads, 4 processors Load average: 6.38, Mach factor: 1.30 /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /Users/mageekguy/.composer/vendor/bin PATH: /usr/local/mysql/bin PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/local/bin PATH: /usr/bin PATH: /bin PATH: /usr/sbin PATH: /sbin ## ----------- ## ## Core tests. ## ## ----------- ## configure:3249: checking for grep that handles long lines and -e configure:3307: result: /usr/bin/grep configure:3312: checking for egrep configure:3374: result: /usr/bin/grep -E configure:3379: checking for a sed that does not truncate output configure:3433: result: /usr/bin/sed configure:3543: checking build system type ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXCPP_set= ac_cv_env_CXXCPP_value= ac_cv_env_CXXFLAGS_set= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_YACC_set= ac_cv_env_YACC_value= ac_cv_env_YFLAGS_set= ac_cv_env_YFLAGS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_path_EGREP='/usr/bin/grep -E' ac_cv_path_GREP=/usr/bin/grep lt_cv_path_SED=/usr/bin/sed ## ----------------- ## ## Output variables. ## ## ----------------- ## ALLOCA='' AR='' AWK='' CC='' CFLAGS='' CONFIGURE_COMMAND=' '\''./configure'\'' '\''--prefix=/usr/local/Cellar/php56/5.6.24'\'' '\''--localstatedir=/usr/local/var'\'' '\''--sysconfdir=/usr/local/etc/php/5.6'\'' '\''--with-config-file-path=/usr/local/etc/php/5.6'\'' '\''--with-config-file-scan-dir=/usr/local/etc/php/5.6/conf.d'\'' '\''--mandir=/usr/local/Cellar/php56/5.6.24/share/man'\'' '\''--enable-bcmath'\'' '\''--enable-calendar'\'' '\''--enable-dba'\'' '\''--enable-exif'\'' '\''--enable-ftp'\'' '\''--enable-gd-native-ttf'\'' '\''--enable-mbregex'\'' '\''--enable-mbstring'\'' '\''--enable-shmop'\'' '\''--enable-soap'\'' '\''--enable-sockets'\'' '\''--enable-sysvmsg'\'' '\''--enable-sysvsem'\'' '\''--enable-sysvshm'\'' '\''--enable-wddx'\'' '\''--enable-zip'\'' '\''--with-freetype-dir=/usr/local/opt/freetype'\'' '\''--with-gd'\'' '\''--with-gettext=/usr/local/opt/gettext'\'' '\''--with-iconv-dir=/usr'\'' '\''--with-icu-dir=/usr/local/opt/icu4c'\'' '\''--with-jpeg-dir=/usr/local/opt/jpeg'\'' '\''--with-kerberos=! /usr'\'' '\''--with-libedit'\'' '\''--with-mhash'\'' '\''--with-ndbm=/usr'\'' '\''--with-png-dir=/usr/local/opt/libpng'\'' '\''--with-xmlrpc'\'' '\''--with-zlib=/usr'\'' '\''--with-readline=/usr/local/opt/readline'\'' '\''--without-gmp'\'' '\''--without-snmp'\'' '\''--with-libxml-dir=/usr/local/opt/libxml2'\'' '\''--with-pdo-odbc=unixODBC,/usr/local/opt/unixodbc'\'' '\''--with-unixODBC=/usr/local/opt/unixodbc'\'' '\''--with-apxs2=/usr/sbin/apxs'\'' '\''--libexecdir=/usr/local/Cellar/php56/5.6.24/libexec'\'' '\''--with-bz2=/usr'\'' '\''--disable-debug'\'' '\''--with-openssl=/usr/local/opt/openssl'\'' '\''--enable-fpm'\'' '\''--with-fpm-user=_www'\'' '\''--with-fpm-group=_www'\'' '\''--with-curl'\'' '\''--with-xsl=/usr'\'' '\''--with-ldap'\'' '\''--with-ldap-sasl=/usr'\'' '\''--with-mysql-sock=/tmp/mysql.sock'\'' '\''--with-mysqli=mysqlnd'\'' '\''--with-pdo-mysql=mysqlnd'\'' '\''--disable-opcache'\'' '\''--enable-pcntl'\'' '\''--without-pear'\'' '\''--enable-dtrace'\'' '\''--! disable-phpdbg'\'' '\''--enable-zend-signals'\''' CONFIGURE_OPTIONS=' '\''--prefix=/usr/local/Cellar/php56/5.6.24'\'' '\''--localstatedir=/usr/local/var'\'' '\''--sysconfdir=/usr/local/etc/php/5.6'\'' '\''--with-config-file-path=/usr/local/etc/php/5.6'\'' '\''--with-config-file-scan-dir=/usr/local/etc/php/5.6/conf.d'\'' '\''--mandir=/usr/local/Cellar/php56/5.6.24/share/man'\'' '\''--enable-bcmath'\'' '\''--enable-calendar'\'' '\''--enable-dba'\'' '\''--enable-exif'\'' '\''--enable-ftp'\'' '\''--enable-gd-native-ttf'\'' '\''--enable-mbregex'\'' '\''--enable-mbstring'\'' '\''--enable-shmop'\'' '\''--enable-soap'\'' '\''--enable-sockets'\'' '\''--enable-sysvmsg'\'' '\''--enable-sysvsem'\'' '\''--enable-sysvshm'\'' '\''--enable-wddx'\'' '\''--enable-zip'\'' '\''--with-freetype-dir=/usr/local/opt/freetype'\'' '\''--with-gd'\'' '\''--with-gettext=/usr/local/opt/gettext'\'' '\''--with-iconv-dir=/usr'\'' '\''--with-icu-dir=/usr/local/opt/icu4c'\'' '\''--with-jpeg-dir=/usr/local/opt/jpeg'\'' '\''--with-kerberos=/usr'\'' '\''--with-l! ibedit'\'' '\''--with-mhash'\'' '\''--with-ndbm=/usr'\'' '\''--with-png-dir=/usr/local/opt/libpng'\'' '\''--with-xmlrpc'\'' '\''--with-zlib=/usr'\'' '\''--with-readline=/usr/local/opt/readline'\'' '\''--without-gmp'\'' '\''--without-snmp'\'' '\''--with-libxml-dir=/usr/local/opt/libxml2'\'' '\''--with-pdo-odbc=unixODBC,/usr/local/opt/unixodbc'\'' '\''--with-unixODBC=/usr/local/opt/unixodbc'\'' '\''--with-apxs2=/usr/sbin/apxs'\'' '\''--libexecdir=/usr/local/Cellar/php56/5.6.24/libexec'\'' '\''--with-bz2=/usr'\'' '\''--disable-debug'\'' '\''--with-openssl=/usr/local/opt/openssl'\'' '\''--enable-fpm'\'' '\''--with-fpm-user=_www'\'' '\''--with-fpm-group=_www'\'' '\''--with-curl'\'' '\''--with-xsl=/usr'\'' '\''--with-ldap'\'' '\''--with-ldap-sasl=/usr'\'' '\''--with-mysql-sock=/tmp/mysql.sock'\'' '\''--with-mysqli=mysqlnd'\'' '\''--with-pdo-mysql=mysqlnd'\'' '\''--disable-opcache'\'' '\''--enable-pcntl'\'' '\''--without-pear'\'' '\''--enable-dtrace'\'' '\''--disable-phpdbg'\'' '\! ''--enable-zend-signals'\''' CPP='' CPPFLAGS='' CXX='' CXXCPP='' CXXFLAGS='' DEBUG_CFLAGS='' DEFS='' DSYMUTIL='' ECHO='/bin/echo' ECHO_C='\c' ECHO_N='' ECHO_T='' EGREP='/usr/bin/grep -E' EXEEXT='' EXPANDED_BINDIR='' EXPANDED_DATADIR='' EXPANDED_EXTENSION_DIR='' EXPANDED_LIBDIR='' EXPANDED_LOCALSTATEDIR='' EXPANDED_MANDIR='' EXPANDED_PEAR_INSTALLDIR='' EXPANDED_PHP_CONFIG_FILE_PATH='' EXPANDED_PHP_CONFIG_FILE_SCAN_DIR='' EXPANDED_SBINDIR='' EXPANDED_SYSCONFDIR='' EXTENSION_DIR='' EXTRA_INCLUDES='' EXTRA_LDFLAGS='' EXTRA_LDFLAGS_PROGRAM='' EXTRA_LIBS='' FB_CONFIG='' GREP='/usr/bin/grep' ICU_CONFIG='' INCLUDES='' INCLUDE_PATH='' INLINE_CFLAGS='' INSTALL_IT='' KRB5_CONFIG='' LDFLAGS='' LIBOBJS='' LIBS='' LIBTOOL='' LN_S='' LTLIBOBJS='' LTP='' LTP_GENHTML='' MANFMT='' NATIVE_RPATHS='' NMEDIT='' OBJEXT='' OCI8_DIR='' OCI8_ORACLE_VERSION='' OCI8_SHARED_LIBADD='' ODBC_INCLUDE='' ODBC_LFLAGS='' ODBC_LIBS='' ODBC_TYPE='' OPENSSL_INCDIR_OPT='' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_URL='' PACKAGE_VERSION='' PATH_SEPARATOR=':' PDO_MYSQL_MODULE_TYPE='' PDO_OCI_DIR='' PDO_OCI_SHARED_LIBADD='' PDO_OCI_VERSION='' PEAR_INSTALLDIR='' PHP_INSTALLED_SAPIS='' PHP_LDFLAGS='' PHP_LIBS='' PHP_VERSION='' PHP_VERSION_ID='' PKG_CONFIG='' PROG_SENDMAIL='' RANLIB='' RE2C='' SED='/usr/bin/sed' SHELL='/bin/sh' SHLIB_DL_SUFFIX_NAME='' SHLIB_SUFFIX_NAME='' SNMP_CONFIG='' STRIP='' TOUCH='' UNZIP='' YACC='' YFLAGS='' ZEND_EXTRA_LIBS='' abs_builddir='' abs_srcdir='' ac_ct_CC='' ac_ct_CXX='' bindir='${exec_prefix}/bin' build='' build_alias='' build_cpu='' build_os='' build_vendor='' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE}' dvidir='${docdir}' exec_prefix='NONE' host='' host_alias='' host_cpu='' host_os='' host_vendor='' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' libdir='${exec_prefix}/lib' libexecdir='/usr/local/Cellar/php56/5.6.24/libexec' localedir='${datarootdir}/locale' localstatedir='/usr/local/var' mandir='/usr/local/Cellar/php56/5.6.24/share/man' oldincludedir='/usr/include' pdfdir='${docdir}' php_abs_top_builddir='' php_abs_top_srcdir='' php_fpm_group='' php_fpm_localstatedir='' php_fpm_prefix='' php_fpm_sysconfdir='' php_fpm_systemd='' php_fpm_user='' prefix='/usr/local/Cellar/php56/5.6.24' program_prefix='NONE' program_suffix='NONE' program_transform_name='s,x,x,' psdir='${docdir}' runstatedir='${localstatedir}/run' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='/usr/local/etc/php/5.6' target='' target_alias='' target_cpu='' target_os='' target_vendor='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" configure: caught signal 2 configure: exit 1 Previous Comments: ------------------------------------------------------------------------ [2017-06-12 12:03:16] frederic dot hardy at mageekbox dot net Description: ------------ I'm using the command `'./configure' '--prefix=/usr/local/Cellar/php56/5.6.24' '--localstatedir=/usr/local/var' '--sysconfdir=/usr/local/etc/php/5.6' '--with-config-file-path=/usr/local/etc/php/5.6' '--with-config-file-scan-dir=/usr/local/etc/php/5.6/conf.d' '--mandir=/usr/local/Cellar/php56/5.6.24/share/man' '--enable-bcmath' '--enable-calendar' '--enable-dba' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-mbregex' '--enable-mbstring' '--enable-shmop' '--enable-soap' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-wddx' '--enable-zip' '--with-freetype-dir=/usr/local/opt/freetype' '--with-gd' '--with-gettext=/usr/local/opt/gettext' '--with-iconv-dir=/usr' '--with-icu-dir=/usr/local/opt/icu4c' '--with-jpeg-dir=/usr/local/opt/jpeg' '--with-kerberos=/usr' '--with-libedit' '--with-mhash' '--with-ndbm=/usr' '--with-png-dir=/usr/local/opt/libpng' '--with-xmlrpc' '--with-zlib=/usr' '--with-readline=/usr/local/opt/readline' '! --without-gmp' '--without-snmp' '--with-libxml-dir=/usr/local/opt/libxml2' '--with-pdo-odbc=unixODBC,/usr/local/opt/unixodbc' '--with-unixODBC=/usr/local/opt/unixodbc' '--with-apxs2=/usr/sbin/apxs' '--libexecdir=/usr/local/Cellar/php56/5.6.24/libexec' '--with-bz2=/usr' '--disable-debug' '--with-openssl=/usr/local/opt/openssl' '--enable-fpm' '--with-fpm-user=_www' '--with-fpm-group=_www' '--with-curl' '--with-xsl=/usr' '--with-ldap' '--with-ldap-sasl=/usr' '--with-mysql-sock=/tmp/mysql.sock' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--disable-opcache' '--enable-pcntl' '--without-pear' '--enable-dtrace' '--disable-phpdbg' '--enable-zend-signals'` to configure PHP from source. All works fine with PHP < 7.1.5, but i have some failure about iconv, sasl, readline and fork for pnctl support with version ≥ 7.1.5. After some discussion on IRC with Remi Collet, it seems that http://git.php.net/?p=php-src.git;a=commitdiff;h=32c5b8efd68dd21dd025285e7207dcab7c6319cd is the culprit is the culprit, because when i'm using configure script from 7.1.3 or 7.1.4 in a 7.1.5 or 7.1.6 source tree, all is fine Test script: --------------- './configure' '--prefix=/usr/local/Cellar/php56/5.6.24' '--localstatedir=/usr/local/var' '--sysconfdir=/usr/local/etc/php/5.6' '--with-config-file-path=/usr/local/etc/php/5.6' '--with-config-file-scan-dir=/usr/local/etc/php/5.6/conf.d' '--mandir=/usr/local/Cellar/php56/5.6.24/share/man' '--enable-bcmath' '--enable-calendar' '--enable-dba' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-mbregex' '--enable-mbstring' '--enable-shmop' '--enable-soap' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-wddx' '--enable-zip' '--with-freetype-dir=/usr/local/opt/freetype' '--with-gd' '--with-gettext=/usr/local/opt/gettext' '--with-iconv-dir=/usr' '--with-icu-dir=/usr/local/opt/icu4c' '--with-jpeg-dir=/usr/local/opt/jpeg' '--with-kerberos=/usr' '--with-libedit' '--with-mhash' '--with-ndbm=/usr' '--with-png-dir=/usr/local/opt/libpng' '--with-xmlrpc' '--with-zlib=/usr' '--with-readline=/usr/local/opt/readline' '--without-gmp' '--witho! ut-snmp' '--with-libxml-dir=/usr/local/opt/libxml2' '--with-pdo-odbc=unixODBC,/usr/local/opt/unixodbc' '--with-unixODBC=/usr/local/opt/unixodbc' '--with-apxs2=/usr/sbin/apxs' '--libexecdir=/usr/local/Cellar/php56/5.6.24/libexec' '--with-bz2=/usr' '--disable-debug' '--with-openssl=/usr/local/opt/openssl' '--enable-fpm' '--with-fpm-user=_www' '--with-fpm-group=_www' '--with-curl' '--with-xsl=/usr' '--with-ldap' '--with-ldap-sasl=/usr' '--with-mysql-sock=/tmp/mysql.sock' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--disable-opcache' '--enable-pcntl' '--without-pear' '--enable-dtrace' '--disable-phpdbg' '--enable-zend-signals' Expected result: ---------------- … Generating files configure: creating ./config.status creating main/internal_functions.c creating main/internal_functions_cli.c +--------------------------------------------------------------------+ | *** WARNING *** | | | | You have built PHP for Apache's current non-threaded MPM. | | If you change Apache to use a threaded MPM you must reconfigure | | PHP with --enable-maintainer-zts | +--------------------------------------------------------------------+ | License: | | This software is subject to the PHP License, available in this | | distribution in the file LICENSE. By continuing this installation | | process, you are bound by the terms of this license agreement. | | If you do not agree with the terms of this license, you must abort | | the installation process at this point. | +--------------------------------------------------------------------+ Thank you for using PHP. config.status: creating php7.spec config.status: creating main/build-defs.h config.status: creating scripts/phpize config.status: creating scripts/man1/phpize.1 config.status: creating scripts/php-config config.status: creating scripts/man1/php-config.1 config.status: creating sapi/cli/php.1 config.status: creating sapi/fpm/php-fpm.conf config.status: creating sapi/fpm/www.conf config.status: creating sapi/fpm/init.d.php-fpm config.status: creating sapi/fpm/php-fpm.service config.status: creating sapi/fpm/php-fpm.8 config.status: creating sapi/fpm/status.html config.status: creating sapi/cgi/php-cgi.1 config.status: creating ext/phar/phar.1 config.status: creating ext/phar/phar.phar.1 config.status: creating main/php_config.h config.status: executing default commands Actual result: -------------- … checking for jpeg_read_header in -ljpeg... yes checking for png_write_image in -lpng... yes If configure fails try --with-xpm-dir=<DIR> checking for fabsf... yes checking for floorf... yes checking for GNU gettext support... yes checking for bindtextdomain in -lintl... yes checking for ngettext in -lintl... yes checking for dngettext in -lintl... yes checking for dcngettext in -lintl... yes checking for bind_textdomain_codeset in -lintl... yes checking for GNU MP support... no checking for mhash support... yes checking whether to enable hash support... yes checking whether byte ordering is bigendian... (cached) no checking size of short... (cached) 2 checking size of int... (cached) 4 checking size of long... (cached) 8 checking size of long long... (cached) 8 checking for iconv support... yes checking for iconv... no checking for libiconv... no checking for libiconv in -liconv... no checking for iconv in -liconv... no configure: error: Please reinstall the iconv library. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74749&edit=1

« previous php.bugs (#209505) next »