The headers and symbols come from:
/usr/include/iconv.h
linked via -lc (glibc), not -liconv
If a script explicitly checks for -liconv it won't work , use ubuntu or some other supported OS for aapanel.
What this error actually means
checking if iconv supports errno... no
configure: error: iconv does not support errno
This check comes from PHP’s ext/iconv/config.m4.
Important detail
On glibc iconv (RHEL / Rocky / Alma):
iconv() does not reliably set errno
GNU libiconv does
PHP 8.2/8.3 + expects errno behavior
the installer forces the check, instead of relaxing it for glibc systems
So:
Headers exist ✔
Functions exist ✔
Compile works ✔
Configure test fails ❌
This is why the build stops before Makefile is generated.