|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2021-01-04 15:06 UTC] 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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 13:00:01 2025 UTC |
In PHP 8.1.2 ext iconv on Debian 11: configure:4776: checking if iconv supports errno configure:4805: cc -o conftest -I/usr/local/php8/include/php -I/usr/local/php8/include/php/main -I/usr/local/php8/include/php/TSRM -I/usr/local/php8/include/php/Zend -I/usr/local/php8/include/php/ext -I/usr/local/php8/include/php/ext/date/lib -I/usr/local/include -O3 -march=native -Wl,-rpath,/usr/local/lib -L/usr/local/lib -liconv -liconv conftest.c >&5 /usr/bin/ld: /tmp/ccrQZSHA.o: in function `main': conftest.c:(.text.startup+0x13): undefined reference to `libiconv_open' /usr/bin/ld: conftest.c:(.text.startup+0x34): undefined reference to `libiconv_close' collect2: error: ld returned 1 exit status configure:4805: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define HAVE_LIBICONV 1 | #define ICONV_ALIASED_LIBICONV 1 | #define HAVE_ICONV 1 | #define HAVE_GLIBC_ICONV 1 | #define PHP_ICONV_IMPL "glibc" | /* end confdefs.h. */ | | #include <iconv.h> | #include <errno.h> | | int main() { | iconv_t cd; | cd = iconv_open( "*blahblah*", "*blahblahblah*" ); | if (cd == (iconv_t)(-1)) { | if (errno == EINVAL) { | return 0; | } else { | return 1; | } | } | iconv_close( cd ); | return 2; | } | configure:4812: result: no configure:4814: error: iconv does not support errnoThis error occurs in both FreeBSD 13.2-RELEASE and FreeBSD 14.0-RELEASE with the 8.3.0 dist. I've confirmed that the iconv lib sets errno I have 1.17 loaded. libiconv-1.17 Character set conversion library #include <stdio.h> #include <iconv.h> #include <errno.h> int main(void) { iconv_t cd; errno=0; cd = iconv_open( "*blahblah*", "*blahblahblah*" ); printf("errno:%d\n",errno); } #iconvtest errno: 22