public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] dev-lang/php-7.4.21-r1::gentoo failed (compile phase)
@ 2021-07-17 21:13 thelma
  2021-07-17 21:30 ` tastytea
  2021-07-17 21:31 ` [gentoo-user] " Michael Orlitzky
  0 siblings, 2 replies; 4+ messages in thread
From: thelma @ 2021-07-17 21:13 UTC (permalink / raw
  To: Gentoo mailing list

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>
      |          ^~~~~~~~~~~~~~~~
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):



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] dev-lang/php-7.4.21-r1::gentoo failed (compile phase)
  2021-07-17 21:13 [gentoo-user] dev-lang/php-7.4.21-r1::gentoo failed (compile phase) thelma
@ 2021-07-17 21:30 ` tastytea
  2021-07-17 21:38   ` [SOLVED][gentoo-user] " thelma
  2021-07-17 21:31 ` [gentoo-user] " Michael Orlitzky
  1 sibling, 1 reply; 4+ messages in thread
From: tastytea @ 2021-07-17 21:30 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1063 bytes --]

On 2021-07-17 15:13-0600 thelma@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> |          ^~~~~~~~~~~~~~~~ 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 <https://bugs.gentoo.org/>?

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

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tastytea@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.

[-- Attachment #2: Digitale Signatur von OpenPGP --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] dev-lang/php-7.4.21-r1::gentoo failed (compile phase)
  2021-07-17 21:13 [gentoo-user] dev-lang/php-7.4.21-r1::gentoo failed (compile phase) thelma
  2021-07-17 21:30 ` tastytea
@ 2021-07-17 21:31 ` Michael Orlitzky
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Orlitzky @ 2021-07-17 21:31 UTC (permalink / raw
  To: gentoo-user

On Sat, 2021-07-17 at 15:13 -0600, thelma@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.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [SOLVED][gentoo-user] dev-lang/php-7.4.21-r1::gentoo failed (compile phase)
  2021-07-17 21:30 ` tastytea
@ 2021-07-17 21:38   ` thelma
  0 siblings, 0 replies; 4+ messages in thread
From: thelma @ 2021-07-17 21:38 UTC (permalink / raw
  To: gentoo-user

On 7/17/21 3:30 PM, tastytea wrote:
> On 2021-07-17 15:13-0600 thelma@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> |          ^~~~~~~~~~~~~~~~ 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 <https://bugs.gentoo.org/>?
> 
> As a workaround, re-install dev-libs/libxml2 with USE="icu".
> 
> Kind regards, tastytea

Thanks for the suggestion.
I installed: dev-libs/icu (as it was missing).
This will creates the ucnv.h file that is missing.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-07-17 21:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-17 21:13 [gentoo-user] dev-lang/php-7.4.21-r1::gentoo failed (compile phase) thelma
2021-07-17 21:30 ` tastytea
2021-07-17 21:38   ` [SOLVED][gentoo-user] " thelma
2021-07-17 21:31 ` [gentoo-user] " Michael Orlitzky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox