Created attachment 428174 [details] Build log app-emulation/libvirt-1.3.1, app-emulation/libvirt-1.3.2 and app-emulation/libvirt-9999 fail to build with the same error related to yajl library. # emerge --info '=app-emulation/libvirt-9999::gentoo' Portage 2.2.28 (python 2.7.11-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-5.3.0, glibc-2.22-r2, 4.4.4-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.4.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770_CPU_@_3.40GHz-with-gentoo-2.2 KiB Mem: 16315264 total, 4061792 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Mon, 14 Mar 2016 07:23:23 +0000 sh bash 4.3_p42-r2 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p42-r2::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.22.1::gentoo dev-lang/python: 2.7.11-r2::gentoo, 3.4.3-r7::gentoo dev-util/cmake: 3.3.2-r1::gentoo dev-util/pkgconfig: 0.29.1::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.20.5::gentoo sys-apps/sandbox: 2.10-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r2::gentoo sys-devel/automake: 1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 5.3.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r2::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers) sys-libs/glibc: 2.22-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 LocalOverlay location: /usr/local/portage masters: gentoo priority: 0 c2p-overlay location: /var/lib/layman/c2p-overlay masters: gentoo priority: 50 docker location: /var/lib/layman/docker sync-type: laymansync sync-uri: git://github.com/tianon/docker-overlay.git masters: gentoo priority: 50 emc location: /var/lib/layman/emc masters: gentoo priority: 50 gentoo-zh location: /var/lib/layman/gentoo-zh masters: gentoo priority: 50 gnome location: /var/lib/layman/gnome masters: gentoo priority: 50 jorgicio location: /var/lib/layman/jorgicio masters: gentoo priority: 50 kde location: /var/lib/layman/kde sync-type: laymansync sync-uri: git://anongit.gentoo.org/proj/kde.git masters: gentoo priority: 50 miramir location: /var/lib/layman/miramir masters: gentoo priority: 50 mrueg location: /var/lib/layman/mrueg masters: gentoo priority: 50 mv location: /var/lib/layman/mv masters: gentoo priority: 50 pentoo location: /var/lib/layman/pentoo masters: gentoo priority: 50 plab location: /var/lib/layman/plab masters: gentoo priority: 50 quarks location: /var/lib/layman/quarks masters: gentoo priority: 50 rust location: /var/lib/layman/rust sync-type: laymansync sync-uri: git://github.com/gentoo/gentoo-rust.git masters: gentoo priority: 50 slyfox location: /var/lib/layman/slyfox masters: gentoo priority: 50 tranquility location: /var/lib/layman/tranquility sync-type: laymansync sync-uri: git://anongit.gentoo.org/repo/dev/tranquility.git masters: gentoo priority: 50 vmware location: /var/lib/layman/vmware masters: gentoo priority: 50 zetok-overlay location: /var/lib/layman/zetok-overlay sync-type: laymansync sync-uri: git://github.com/zetok/zetok-overlay.git masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=corei7 -O2 -pipe -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf" 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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=corei7 -O2 -pipe -ggdb" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS=" --quiet-build=y" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news 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="ftp://mirror.ovh.net/gentoo-distfiles/ http://mirror.ovh.net/gentoo-distfiles/ http://gentoo-euetib.upc.es/mirror/gentoo/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="--jobs=5 --silent --load-average=5 " 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="/tmp/" USE="X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran fuse gdbm gif glamor gpm gtk iconv icu infinality ipv6 jpeg kipi lcms libnotify lm_sensors lock mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt3support qt5 readline sdl seccomp semantic-desktop session sound spell sse sse2 ssl startup-notification svg systemd tcpd thunar tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xcomposite xfce xinerama xml xscreensaver xv xvid zlib zsh-completion" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" DRACUT_MODULES="lvm" 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 ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="synaptics evdev vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en es ca" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="intel vmware nouveau" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON # emerge -pqv '=app-emulation/libvirt-9999::gentoo' [ebuild N ] app-emulation/libvirt-9999 USE="avahi caps fuse libvirtd macvtap nls (policykit) qemu systemd udev vepa virt-network -apparmor -audit -firewalld -glusterfs -iscsi -lvm -lxc -nfs -numa -openvz -parted -pcap -phyp -rbd -sasl (-selinux) -uml -virtualbox (-wireshark-plugins) -xen" Attached build log.
what version of yajl do you have?
2.0.4-r3
Could be related to the fact that our 2.x series is pretty out of date. You could try a 1.x series of yajl. I've submitted fixes to update our 2.x.
With version 1.0.11-r1 libvirt compiles correctly. Maybe libvirt should enforce installation of a 1.x version.
(In reply to Gerard Garcia from comment #4) > With version 1.0.11-r1 libvirt compiles correctly. Maybe libvirt should > enforce installation of a 1.x version. dev-libs/yajl-2.0.4-r3 has been stabilized around Dec 27 2014. We have successfully compiled a lot of libvirt versions against yajl since then. I think something else is the problem. Maybe there are some yajl-1* remnants on your system and libvirt gets confused by that...
(In reply to Gerard Garcia from comment #4) > With version 1.0.11-r1 libvirt compiles correctly. Maybe libvirt should > enforce installation of a 1.x version. I've recently added 2.1.0 to the tree. Do you mind retesting with that? libvirt source code checks if you're on 1.x or 2.x and its possible they now use some of the 2.1.0 bits if they're on 2.x.
(In reply to Matthias Maier from comment #5) > (In reply to Gerard Garcia from comment #4) > > With version 1.0.11-r1 libvirt compiles correctly. Maybe libvirt should > > enforce installation of a 1.x version. > > dev-libs/yajl-2.0.4-r3 has been stabilized around Dec 27 2014. > We have successfully compiled a lot of libvirt versions against yajl since > then. > > > I think something else is the problem. Maybe there are some yajl-1* remnants > on your system and libvirt gets confused by that... Well, you were right. I had some old yajl headers in /usr/local/include that were confusing libvirt. (In reply to Doug Goldstein from comment #6) > (In reply to Gerard Garcia from comment #4) > > With version 1.0.11-r1 libvirt compiles correctly. Maybe libvirt should > > enforce installation of a 1.x version. > > I've recently added 2.1.0 to the tree. Do you mind retesting with that? > libvirt source code checks if you're on 1.x or 2.x and its possible they now > use some of the 2.1.0 bits if they're on 2.x. After removing these headers, libvirt compiles without problems with yajl 2.1.0. Thanks!
(In reply to Gerard Garcia from comment #7) > (In reply to Matthias Maier from comment #5) > > (In reply to Gerard Garcia from comment #4) > > > With version 1.0.11-r1 libvirt compiles correctly. Maybe libvirt should > > > enforce installation of a 1.x version. > > > > dev-libs/yajl-2.0.4-r3 has been stabilized around Dec 27 2014. > > We have successfully compiled a lot of libvirt versions against yajl since > > then. > > > > > > I think something else is the problem. Maybe there are some yajl-1* remnants > > on your system and libvirt gets confused by that... > > Well, you were right. I had some old yajl headers in /usr/local/include that > were confusing libvirt. Ah ok. Since it was something local to your machine I'm going to close as invalid. Glad everything is working now, let us know if any other issues come up.