Bug #80585 [Com]: Compile error - iconv dose not support errno

From: Date: Mon, 18 Jan 2021 08:49:15 +0000
Subject: Bug #80585 [Com]: Compile error - iconv dose not support errno
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231608@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80585&edit=1

 ID:                 80585
 Comment by:         shimozawa dot hiroki at misou dot co dot jp
 Reported by:        tomas at rybarik dot com
 Summary:            Compile error - iconv dose not support errno
 Status:             Open
 Type:               Bug
 Package:            *Compile Issues
 Operating System:   OracleLinux 7
 PHP Version:        8.0.0
 Block user comment: N
 Private report:     N

 New Comment:

I am also getting the same error.
Will it be fixed in the next version?

Reproduction procedure.

~~~
# cat /etc/redhat-release 
CentOS Linux release 7.3.1611 (Core) 

# cd /usr/local/src/
# wget https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.16.tar.gz
# tar zxvf ./libiconv-1.16.tar.gz
# cd libiconv-1.16
# ./configure --prefix=/usr
# make & make install

# iconv --version
iconv (GNU libiconv 1.16)
Copyright (C) 2000-2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
...


# cd /usr/local/src/php-8.0.1
# ./configure \
... \
... \
--with-iconv

...
...
checking for iconv support... yes
checking for iconv... yes
checking if iconv is glibc's... yes
checking if iconv supports errno... no
configure: error: iconv does not support errno


Previous Comments:
------------------------------------------------------------------------
[2021-01-05 10:28:52] cmb@php.net

As of PHP 8.0.0, iconv implementation which do not support errno
(i.e. non POSIX conforming implementations) are no longer
supported.  Either you glic iconv does not support errno, or that
support is wrongly detected.

Consider to install and use libiconv.

------------------------------------------------------------------------
[2021-01-04 15:06:20] tomas at rybarik dot com

Description:
------------
I'm unable to compile PHP 8.0.0 with enabled iconv.
This is output from configure command:
checking for iconv support... yes
checking for iconv... yes
checking if iconv is glibc's... yes
checking if iconv supports errno... no
configure: error: iconv does not support errno

I tried compile PHP 7.4.13 with the same version of iconv (1.16), there everything is OK.
checking for iconv support... yes
checking for iconv... yes
checking if iconv is glibc's... yes
checking if iconv supports errno... yes
checking if iconv supports //IGNORE... no




------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=80585&edit=1


Thread (9 messages)

« previous php.bugs (#231608) next »