Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 399871 - x11-libs/libxklavier-5.2 fails to build: xkl_config_registry.h:24:36: fatal error: libxklavier/xkl_engine.h: No such file or directory
Summary: x11-libs/libxklavier-5.2 fails to build: xkl_config_registry.h:24:36: fatal e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-23 18:29 UTC by Markus Wernig
Modified: 2012-01-23 18:59 UTC (History)
0 users

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


Attachments
build.log (build.log,17.86 KB, text/plain)
2012-01-23 18:34 UTC, Markus Wernig
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Wernig 2012-01-23 18:29:50 UTC
Building libxklavier-5.2 fails to build with the following errors:

...
/bin/sh ../libtool --silent --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..    -Wall -DDATA_DIR=\"/usr/share/libxklavier\" -I. -I..  -I/usr/include/libxml2   -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include    -DLIBXKBFILE_PRESENT=1 -DENABLE_XKB_SUPPORT=1 -DENABLE_XMODMAP_SUPPORT=1 -O2 -march=native -pipe -fomit-frame-pointer -c -o xkl-enum-types.lo xkl-enum-types.c
  CCLD   libxklavier.la
.libs/xklavier_config_xkb.o: In function `xkl_config_get_keyboard':
xklavier_config_xkb.c:(.text+0x14c): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
  GISCAN Xkl-1.0.gir
In file included from <stdin>:6:0:
/var/tmp/portage/x11-libs/libxklavier-5.2/work/libxklavier-5.2/libxklavier/xkl_config_registry.h:24:36: fatal error: libxklavier/xkl_engine.h: No such file or directory
compilation terminated.
Error while processing the source.
make[2]: *** [Xkl-1.0.gir] Error 1
make[2]: Leaving directory `/var/tmp/portage/x11-libs/libxklavier-5.2/work/libxklavier-5.2/libxklavier'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-libs/libxklavier-5.2/work/libxklavier-5.2'
make: *** [all] Error 2
 * ERROR: x11-libs/libxklavier-5.2 failed (compile phase):
 *   emake failed


Reproducible: Always

Steps to Reproduce:
1. fresh install, using world file from working system, during which:
2. emerge libxklavier
3.



# emerge --info
Portage 2.1.10.44 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r2, 3.0.4-gentoo-amd64 x86_64)
=================================================================
System uname: Linux-3.0.4-gentoo-amd64-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_720_@_1.60GHz-with-gentoo-2.1
Timestamp of tree: Sun, 22 Jan 2012 16:15:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake:           2.8.7-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.9.6-r3, 1.11.2-r1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac accessibility acl acpi alsa amd64 arts avahi bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cddax cddb cdparanoia cdr cli consolekit cracklib crypt css cups cxx dbus device-mapper dga dirac dns dri dts dv dvb dvd dvdnav dvdr dvdread emboss encode exif faac faad fam ffmpeg firefox flac fortran ftp gd gdbm gdu ggi gif gimp gmp gnome gphoto2 gpm gstreamer gtk gtkhtml gzip h323 hal hdmi http iconv imagemagick imap imlib ipv6 java jce jpeg jpeg2k kde kdrive kontact lame laptop lcms ldap libnotify live lzo mad matroska mdnsresponder-compat mikmod mime mmap mmx mmxext mng modplug modules mozilla mp3 mp4 mpeg mplayer mudflap multilib mysql ncurses network networkmanager nls nptl nptlonly nsplugin nss obex ogg opencore-amr opengl openmp openssl osdmenu oss pam pango pcmcia pcre pcsc pcsc-lite pda pdf perl php pipechan plasma png pnm policykit ppds pppd pvr qt3 qt3support qt4 radio raw rdesktop readline rss sasl scanner sdl secure-delete semantic-desktop session sip smartcard smp sockets spell sql sqlite sse sse2 ssl ssse3 startup-notification static-libs svg sysfs tcpd theora threads tiff timidity toolame tremor truetype twolame udev unicode usb utils v4l v4l2 vcd vnc vorbis wav wavpack webkit wifi wmf x264 xanim xattr xcb xcomposite xine xinerama xml xorg xpm xscreensaver xulrunner xv xvid zeroconf zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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="kexi words flow plan stage tables krita karbon braindump" CAMERAS="all" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev synaptics void alps" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev fglrx" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Markus Wernig 2012-01-23 18:34:10 UTC
Created attachment 299631 [details]
build.log
Comment 2 Markus Wernig 2012-01-23 18:36:27 UTC
From /var/tmp/portage/x11-libs/libxklavier-5.2/work/libxklavier-5.2/libxklavier/xkl_config_registry.h the error seems clear:

#include <libxklavier/xkl_engine.h>
#include <libxklavier/xkl_config_item.h>

Since those files are only present in the build tree, not in the system include path, they are not found.

This seems related (at end of thread):

https://www.libreoffice.org/bugzilla/show_bug.cgi?id=44581
Comment 3 Markus Wernig 2012-01-23 18:48:09 UTC
Actually, replacing all occurrances of the "system-wide" include statement in all header files with the "local" ones allows libxklavier to build normally:

/var/tmp/portage/x11-libs/libxklavier-5.2/work/libxklavier-5.2/libxklavier/xkl_config_registry.h:
#include <libxklavier/xkl_engine.h>       --> #include "xkl_engine.h"
#include <libxklavier/xkl_config_item.h>  --> #include "xkl_config_item.h"

... etc (2 or 3 more files to edit)

ebuild /usr/portage/x11-libs/libxklavier/libxklavier-5.2.ebuild merge
Comment 4 Markus Wernig 2012-01-23 18:56:20 UTC
Error only occurs on first build, because afterwards the header files are installed in /usr/include/libxklavier :-)
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2012-01-23 18:59:07 UTC
Added this to portage:

http://cgit.freedesktop.org/libxklavier/patch/?id=57785c952444e4cb9d13e43d4f9cc9713d66958b

Thanks for reporting! (No idea why it doesn't fail here though)
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2012-01-23 18:59:34 UTC
(In reply to comment #4)
> Error only occurs on first build, because afterwards the header files are
> installed in /usr/include/libxklavier :-)

ah ok