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

From: Date: Mon, 12 Jun 2017 12:03:32 +0000
Subject: Bug #74749 [NEW]: ./configure witch works fine with < 7.1.5 failed about iconv
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209503@lists.php.net to get a copy of this message
From: frederic dot hardy at mageekbox dot net Operating system: OSX 10.12.5 PHP version: 7.1.6 Package: Compile Failure Bug Type: Bug Bug description:./configure witch works fine with < 7.1.5 failed about iconv 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' '--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' 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 bug report at https://bugs.php.net/bug.php?id=74749&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74749&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74749&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74749&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74749&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74749&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74749&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74749&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74749&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74749&r=support Expected behavior: https://bugs.php.net/fix.php?id=74749&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74749&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74749&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74749&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74749&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74749&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74749&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74749&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74749&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74749&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74749&r=mysqlcfg

« previous php.bugs (#209503) next »