conda-forge / perl-feedstock

A conda-smithy repository for perl.
BSD 3-Clause "New" or "Revised" License
3 stars 32 forks source link

`xlocale.h` removed in glibc 2.26 #28

Open epruesse opened 6 years ago

epruesse commented 6 years ago

Building binary perl modules fails with xlocale.h not found.

From https://sourceware.org/glibc/wiki/Release/2.26#Removal_of_.27xlocale.h.27

4.1. Removal of 'xlocale.h' The nonstandard header xlocale.h has been removed in this release. It was never intended to be included directly by programs other than glibc itself, and it was a strict subset of the standard header locale.h. We know that a number of programs do include it, but because it has never been part of any other C library, programs that use it are probably testing for its existence with autoconf or a similar tool, and should not fail to compile.

Packagers need to watch out for cases where a library installs headers that assume xlocale.h is available. Programs that use those headers will fail to build after glibc is updated to 2.26. This is known to be an issue for Perl extension modules (see Red Hat bug 1464244); Perl checks for xlocale.h when it is built, so this particular case can be resolved by rebuilding Perl against glibc 2.26.

It appears rebuilding perl against glibc 2.26 might suffice.

gouarin commented 5 years ago

I have the same issue. Do you know how to solve this ?

mingwandroid commented 5 years ago

Using the AD compilers should avoid this problem.