Re: [gentoo-user] dev-lang/php-7.4.21-r1::gentoo failed (compile phase)

2021-07-17 Thread Michael Orlitzky
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 
>   |  ^~~~
> 

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 
  #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.





Re: [gentoo-user] dev-lang/php-7.4.21-r1::gentoo failed (compile phase)

2021-07-17 Thread tastytea
On 2021-07-17 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
>  |  ^~~~ compilation terminated.
> make: *** [Makefile:461: ext/libxml/libxml.lo] Error 1
> make: *** Waiting for unfinished jobs
>  * ERROR: dev-lang/php-7.4.21-r1::gentoo failed (compile phase):

/usr/include/unicode/ucnv.h belongs to dev-libs/icu. It looks like
dev-libs/libxml2 needs it even if it is installed with USE="-icu". Could
you report the bug on ?

As a workaround, re-install dev-libs/libxml2 with USE="icu".

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgp1aDvT4lpaM.pgp
Description: Digitale Signatur von OpenPGP