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