In file included from libvirtd.c:50:0: ../src/util/virnetlink.h:30:27: fatal error: netlink/msg.h: No such file or directory compilation terminated. Reproducible: Always Steps to Reproduce: 1. make sure libnl-1.1 is not insatlled and nothing depends on it. 2. emerge libvirt Actual Results: x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../gnulib/lib -I../include -I../include -I../src -I../src -I../src/util -I../src/conf -I../src/rpc -I../src/remote -I/usr/include/libxml2 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -Wall -W -Wformat-y2k -Wformat-security -Winit-self -Wmissing-include-dirs -Wunused -Wunknown-pragmas -Wstrict-aliasing -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wlogical-op -Waggregate-return -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wnested-externs -Winline -Winvalid-pch -Wvolatile-register-var -Wdisabled-optimization -Wbuiltin-macro-redefined -Wmudflap -Wpacked-bitfield-compat -Wsync-nand -Wattributes -Wcoverage-mismatch -Wcpp -Wdeprecated-declarations -Wdiv-by-zero -Wdouble-promotion -Wendif-labels -Wextra -Wformat-contains-nul -Wformat-extra-args -Wformat-zero-length -Wformat=2 -Wmultichar -Wnormalized=nfc -Woverflow -Wpointer-to-int-cast -Wpragmas -Wsuggest-attribute=const -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure -Wtrampolines -Wno-missing-field-initializers -Wno-sign-compare -Wjump-misses-init -Wno-format-nonliteral -Wframe-larger-than=4096 -fstack-protector-all --param=ssp-buffer-size=4 -fexceptions -fasynchronous-unwind-tables -fdiagnostics-show-option -funit-at-a-time -fipa-pure-const -Wno-suggest-attribute=pure -Wno-suggest-attribute=const -DQEMUD_PID_FILE="\"\"" -DREMOTE_PID_FILE="\"\"" -march=native -O2 -pipe -c -o libvirtd-stream.o `test -f 'stream.c' || echo './'`stream.c In file included from libvirtd.c:50:0: ../src/util/virnetlink.h:30:27: fatal error: netlink/msg.h: No such file or directory compilation terminated. make[3]: *** [libvirtd-libvirtd.o] Error 1 make[3]: *** Waiting for unfinished jobs.... remote.c: In function 'remoteDispatchAuthSaslStart': remote.c:2373:17: warning: variable 'identity' set but not used [-Wunused-but-set-variable] remote.c: In function 'remoteDispatchAuthSaslStep': remote.c:2471:17: warning: variable 'identity' set but not used [-Wunused-but-set-variable] make[3]: Leaving directory `/var/tmp/portage/app-emulation/libvirt-0.9.13/work/libvirt-0.9.13/daemon' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/app-emulation/libvirt-0.9.13/work/libvirt-0.9.13/daemon' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-emulation/libvirt-0.9.13/work/libvirt-0.9.13' make: *** [all] Error 2 * ERROR: app-emulation/libvirt-0.9.13 failed (compile phase): * emake failed Please note that only libnl-3 is installed [I] dev-libs/libnl Installed versions: 3.2.11(3)(09:55:35 AM 07/11/2012)(-doc -static-libs -utils) LIBNL_CFLAGS defined but not used in daemon/Makefile*
emerge --info '=app-emulation/libvirt-0.9.13' Portage 2.1.11.5 (default/linux/amd64/10.0/desktop, gcc-4.6.3, glibc-2.15-r2, 3.4.4-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.4.4-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.1 Timestamp of tree: Wed, 11 Jul 2012 06:00:01 +0000 ccache version 3.1.7 [disabled] app-shells/bash: 4.2_p29 dev-java/java-config: 2.1.12 dev-lang/python: 2.7.3-r2, 3.2.3-r1 dev-util/ccache: 3.1.7 dev-util/cmake: 2.8.8-r3 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1-r1 sys-apps/openrc: 0.10.5 sys-apps/sandbox: 2.6 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.5, 1.12.2 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.6.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.4-r1 (virtual/os-headers) sys-libs/glibc: 2.15-r2 Repositories: gentoo gentoo-vnkuznet-overlay vmware seden Installed sets: @system ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA skype-eula googleearth AdobeFlash-10.3 Oracle-BCLA-JavaSE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en ru" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/gentoo-vnkuznet-overlay /usr/local/portage/vmware /usr/local/portage/seden" SYNC="rsync://vds.csc.ncsu.edu/gentoo-portage" USE="X a52 aac acl acpi afs agg alsa amd64 apache2 apng aspell autoipd avahi bash-completion bazaar berkdb bluetooth branding bzip2 cairo cdda cddb cdr cgi cleartype cli consolekit cracklib crypt ctype cups curl cvs cxx dbus declarative device-mapper dmx dri dts dvd dvdr dvi embedded emboss encode exif extensions faac faad fam fastcgi ffmpeg firefox firefox3 flac fontconfig fortran fts3 fuse g3dvl gd gdbm gdm gdu geoip gif gimp git glib gnome gnutls gpg gpm groupwise grub gstreamer gtk guile h323 hesiod hpcups hpijs hpn hunspell iconv icu iproute2 ipv6 ithreads jabber java joystick jpeg kde kdm kdrive kerberos kqemu lcms ldap libnotify libv4l2 lua lxc mad matroska mdnsresponder-compat mmx mng modules mp3 mp4 mpeg mudflap multilib mysql nagios-dns nagios-ntp nagios-ping nagios-ssh nautilus ncurses network networking nls nptl nsplugin nvidia ogg openal opengl openmp pam pam_krb5 pam_ssh pango parted pcre pdf phonon plasma png policykit ppds pppd pulseaudio qemu qemu-ifup qt3support qt4 quicktime readline regex rss sasl script sdl secure-delete semantic-desktop session sip speex spell sql sqlite sqlite3 sse sse2 ssl startup-notification stream svg tcpd theora threads thunderbird tiff truetype udev udisks unicode upower usb v4l v4l2 vaapi vcd vdpau vhosts vim vim-syntax virt-network vlm vnc vorbis vpx wav weather weather-metar webdav webdav-neon webkit wxwidgets x264 xcb xcomposite xinerama xml xorg xpm xrandr xrender 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 auth_digest authn_alias authn_anon authn_dbm authn_file authz_core authz_dbm 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 mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" 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 joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19 jruby" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia" 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, USE_PYTHON ================================================================= Package Settings ================================================================= app-emulation/libvirt-0.9.13 was built with the following: USE="avahi caps libvirtd lxc macvtap (multilib) nls parted policykit python qemu sasl udev vepa virt-network -audit -debug -iscsi -lvm -nfs -numa -openvz -pcap -phyp (-selinux) -uml -virtualbox -xen"
libnl:3 ./configure says: Headers will be installed in ${prefix}/include/libnl3, therefore you will need to add "-I/usr/include/libnl3" to CFLAGS
Created attachment 318108 [details, diff] patch for missing libnl includes This patch fixes it for me. Just place it in /etc/portage/patches/app-emulation/libvirt-0.9.13/ until the ebuild is fixed.
This affected me as well. Thanks for the patch, gentoobugs.
Thanks for the patch, + 19 Jul 2012; Justin Lecher <jlec@gentoo.org> + +files/libvirt-0.9.13-libnl3.patch, libvirt-0.9.13.ebuild: + Add fix for libnl3 detection +