On Sat, 2021-07-17 at 15:13 -0600, the...@sys-concept.com wrote: > On of my system is giving me an error when compiling php > > In file included from /usr/include/libxml2/libxml/parser.h:812, > from > /var/tmp/portage/dev-lang/php-7.4.21-r1/work/sapis-build/cli/ext/libxml/libxml.c:34: > /usr/include/libxml2/libxml/encoding.h:31:10: fatal error: unicode/ucnv.h: No > such file or directory > 31 | #include <unicode/ucnv.h> > | ^~~~~~~~~~~~~~~~ >
Was your dev-libs/libxml2 built with USE=icu? And is icu installed? If you look in /usr/include/libxml2/libxml/encoding.h you probably see, #ifdef LIBXML_ICU_ENABLED #include <unicode/ucnv.h> #endif so that unicode header should only be used when libxml2 was built with USE=icu. In that case, USE=icu also pulls in dev-libs/icu, which is what provides the header.