Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 689650 - dev-python/lxml-4.3.3 - In file included from /usr/include/libxslt/xsltInternals.h:24, from src/lxml/etree.c:718: /usr/include/libxslt/xsltlocale.h:20:10: fatal error: xlocale.h: No such file or directory
Summary: dev-python/lxml-4.3.3 - In file included from /usr/include/libxslt/xsltIntern...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-11 07:55 UTC by Martin Mokrejš
Modified: 2020-08-07 23:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2019-07-11 07:55:54 UTC
Hi,
  am I missing some dependency on my system?

running build_ext
building 'lxml.etree' extension
creating /var/tmp/portage/dev-python/lxml-4.3.3/work/lxml-4.3.3-python2_7/build/temp.linux-x86_64-2.7
creating /var/tmp/portage/dev-python/lxml-4.3.3/work/lxml-4.3.3-python2_7/build/temp.linux-x86_64-2.7/src
creating /var/tmp/portage/dev-python/lxml-4.3.3/work/lxml-4.3.3-python2_7/build/temp.linux-x86_64-2.7/src/lxml
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-strict-aliasing -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -I/usr/include/libxml2 -Isrc -Isrc/lxml/includes -I/usr/include/python2.7 -c src/lxml/etree.c -o /var/tmp/portage/dev-python/lxml-4.3.3/work/lxml-4.3.3-python2_7/build/temp.linux-x86_64-2.7/src/lxml/etree.o -w
In file included from /usr/include/libxslt/xsltInternals.h:24,
                 from src/lxml/etree.c:718:
/usr/include/libxslt/xsltlocale.h:20:10: fatal error: xlocale.h: No such file or directory
 #include <xlocale.h>
          ^~~~~~~~~~~
compilation terminated.
Compile failed: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1


# emerge --info '=dev-python/lxml-4.3.3::gentoo'

Portage 2.3.40 (python 2.7.15-final-0, default/linux/amd64/17.0, gcc-8.3.0, glibc-2.29-r2, 4.17.4-default x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.17.4-default-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9650_@_3.00GHz-with-gentoo-2.6
KiB Mem:    16404004 total,   4531216 free
KiB Swap:   15647296 total,  15647296 free
Timestamp of repository gentoo: Wed, 10 Jul 2019 08:30:01 +0000
Head commit of repository gentoo: 7f50ff9daf1b6504c2b5bfb7690b088c4316d689
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.30 p5) 2.30.0
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.5.5::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.14.3::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.26.3::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.4_p6-r1::gentoo, 1.9.6-r3::gentoo, 1.10.3::gentoo, 1.11.6::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r4::gentoo, 2.31.1-r6::gentoo, 2.32-r1::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo, 7.3.0-r3::gentoo, 8.2.0-r6::gentoo, 8.3.0-r1::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

science
    location: /var/lib/layman/science
    masters: gentoo
    priority: 0

haskell
    location: /var/lib/layman/haskell
    masters: gentoo
    priority: 1

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 2

x-layman
    location: /var/lib/layman
    masters: gentoo
    priority: 3

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE freedist all-rights-reserved estscan X11 free-noncomm phrap sun-jlfgr bonnie ApE trf OBO-Edit swiss-prot staden xv finchtv MSttfEULA GRL intel-ucode bakoma AGREP BSD-BroadInstitute fasta unRAR gmap FLI-Jena as-is ACE twm xsm font-adobe-75dpi FAULTHANDLER OracleDB ANTLR czyborra MaxMind blat DB JamesClark"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://ftp.fi.muni.cz/pub/linux/gentoo/ rsync://gentoo.mirror.dkm.cz/gentoo/ ftp://gentoo.mirror.web4u.cz/"
LANG="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en cs cz"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X accessibility alsa amd64 amr apache apache2 berkdb bzip2 cairo cgi cli cracklib crypt cups cxx dbus device-mapper dri encode ffmpeg flac fontconfig fortran gd gdbm geoip gnutls hal iconv id3tag innodb java jce jpeg jpg ladspa laptop libtirpc mad maildir mmx mpi mpich2 multilib mysql ncurses nfs nls nptl nptlonly ogg opengl openmp openssl pam pcre php png policykit postfix procmail python readline seccomp server session sndfile spf sse sse2 ssl suexec svg syslog tcpd threads tiff truetype unicode usb wavpack xattr xml xorg xvfb zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Martin Mokrejš 2019-07-11 07:59:20 UTC
Maybe it assumes older libc? xlocale.h was removed from libc around 2017 while locale.h should be enough to use.
Comment 2 Martin Mokrejš 2019-07-11 08:29:39 UTC
From https://bugzilla.redhat.com/show_bug.cgi?id=1464244 I am quoting:

Ralf Corsepius 2017-06-23 07:16:56 UTC
From glibc.spec:

* Wed Jun 21 2017 Florian Weimer <fweimer@redhat.com> - 2.25.90-8
- Adjust build requirements for gcc, binutils, kernel-headers.
- Auto-sync with upstream master,
  commit 43e0ac24c836eed627a75ca932eb7e64698407c6, changing:
- Remove <xlocale.h>



Paul Howarth 2017-06-23 08:12:38 UTC
Upstream glibc commit:

https://sourceware.org/git/?p=glibc.git;a=commit;h=f0be25b6336db7492e47d2e8e72eb8af53b5506d



Florian Weimer 2017-06-23 11:46:41 UTC

<xlocale.h> previously said:

/* Structure for reentrant locale using functions.  This is an
   (almost) opaque type for the user level programs.  The file and
   this data structure is not standardized.  Don't rely on it.  It can
   go away without warning.  */

It's an internal glibc header which was installed by accident.  Perl should not be including it, and I expect that recompiling Perl will simply undefine I_XLOCALE:

#ifdef I_XLOCALE
#   include <xlocale.h>
#endif

…
Checking to see if you have fpos64_t...
<xlocale.h> NOT found.
newlocale() found.
…

I_XLOCALE does not gate anything else AFAICS.
Comment 3 Matt Turner gentoo-dev 2019-07-11 16:04:52 UTC
There's a tracker bug (https://bugs.gentoo.org/show_bug.cgi?id=xlocale.h) but it seems hard to believe that you're having that problem so long after glibc-2.26 was stabilized...
Comment 4 Martin Mokrejš 2019-07-11 16:32:19 UTC
(In reply to Matt Turner from comment #3)
> but it seems hard to believe that you're having that problem so long after
> glibc-2.26 was stabilized...

Well, the machine is a bit dated and I did not update it for some while, but definitely I did once in a year or so ... Anyway, it is as it is.
Comment 5 David Denoncin 2020-08-07 23:12:31 UTC
This is an issue with <libxslt-1.1.32 together with >=glibc-2.26 which was reported upstream in https://bugzilla.gnome.org/show_bug.cgi?id=788264 and commited in https://gitlab.gnome.org/GNOME/libxslt/commit/8b4babb8f742a1a189df4c4569e68eda308df68f:

Support glibc 2.26 which removes xlocale.h. Fixes bug 788264. Thanks to
Quentin Minster for the report.

Anyway, no clue as to why this happened so late, but all referenced versions of libxslt and lxml are gone now.