Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 508336 - >app-emulation/libvirt-1.2.3 with >net-analyzer/wireshark-1.11 - In file included from /usr/include/wireshark/epan/proto.h:52:0, from packet-libvirt.c:27: packet-libvirt.c:309:5: error: too few arguments to function 'tvb_memdup'
Summary: >app-emulation/libvirt-1.2.3 with >net-analyzer/wireshark-1.11 - In file incl...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
: 516826 518438 (view as bug list)
Depends on: 508340
Blocks:
  Show dependency tree
 
Reported: 2014-04-21 17:02 UTC by Reto Gantenbein (ganto)
Modified: 2014-11-02 22:56 UTC (History)
9 users (show)

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


Attachments
full build.log (build.log.xz,34.84 KB, application/x-xz)
2014-04-21 17:05 UTC, Reto Gantenbein (ganto)
Details
wireshark-1.12.0-Makefile.patch (wireshark-1.12.0-Makefile.patch,461 bytes, patch)
2014-07-27 13:20 UTC, Juergen Rose
Details | Diff
wireshark-1.12.0-packet-libviert_h.patch (wireshark-1.12.0-packet-libvirt_h.patch,1.27 KB, patch)
2014-07-27 13:21 UTC, Juergen Rose
Details | Diff
wireshark-1.12.0-packet-libviert_c.patch (wireshark-1.12.0-packet-libvirt_c.patch,708 bytes, patch)
2014-07-27 13:22 UTC, Juergen Rose
Details | Diff
libvirt-1.2.5.ebuild using the three patches (libvirt-1.2.5.ebuild,12.36 KB, text/plain)
2014-07-27 13:23 UTC, Juergen Rose
Details
bzip2ed build.log for the patched ebuild (build.log.bz2,36.08 KB, application/x-bzip2)
2014-07-27 14:33 UTC, Juergen Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Reto Gantenbein (ganto) 2014-04-21 17:02:56 UTC
The wireshark dissector plugin that was added to libvirt-1.2.2 results in a build error when compiling against net-analyzer/wireshark-1.11.3.

When using net-analyzer/wireshark-1.10.6, the build is successful.

Reproducible: Always

Steps to Reproduce:
1. ACCEPT_KEYWORDS="**" emerge =wireshark-1.11.3
2. ACCEPT_KEYWORDS="~amd64" emerge =libvirt-1.2.3
Actual Results:  
Making all in tools/wireshark
make[2]: Entering directory `/var/tmp/portage/app-emulation/libvirt-1.2.3/work/libvirt-1.2.3/tools/wireshark'
Making all in src
make[3]: Entering directory `/var/tmp/portage/app-emulation/libvirt-1.2.3/work/libvirt-1.2.3/tools/wireshark/src'
/bin/mkdir -p libvirt
LIBVIRT_VERSION=1.2.3 \
          /usr/bin/perl ./../util/genxdrstub.pl ../../../src/remote/remote_protocol.x ../../../src/remote/qemu_protocol.x ../../../src/remote/lxc_protocol.x ../../../src/rpc/virkeepaliveprotocol.x
/bin/sh ../../../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/bin/../include/wireshark   -march=amdfam10 -O2 -pipe -c -o libvirt_la-packet-libvirt.lo `test -f 'packet-libvirt.c' || echo './'`packet-libvirt.c
/bin/sh ../../../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/bin/../include/wireshark   -march=amdfam10 -O2 -pipe -c -o libvirt_la-plugin.lo `test -f 'plugin.c' || echo './'`plugin.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/bin/../include/wireshark -march=amdfam10 -O2 -pipe -c plugin.c  -fPIC -DPIC -o .libs/libvirt_la-plugin.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/bin/../include/wireshark -march=amdfam10 -O2 -pipe -c packet-libvirt.c  -fPIC -DPIC -o .libs/libvirt_la-packet-libvirt.o
plugin.c:12:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
plugin.c:16:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
plugin.c:21:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
make[3]: *** [libvirt_la-plugin.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
packet-libvirt.c: In function 'dissect_libvirt_payload_xdr_data':
packet-libvirt.c:309:5: warning: passing argument 1 of 'tvb_memdup' from incompatible pointer type [enabled by default]
In file included from /usr/include/wireshark/epan/proto.h:52:0,
                 from packet-libvirt.c:27:
/usr/include/wireshark/epan/tvbuff.h:436:21: note: expected 'struct wmem_allocator_t *' but argument is of type 'struct tvbuff_t *'
packet-libvirt.c:309:5: error: too few arguments to function 'tvb_memdup'
In file included from /usr/include/wireshark/epan/proto.h:52:0,
                 from packet-libvirt.c:27:
/usr/include/wireshark/epan/tvbuff.h:436:21: note: declared here
packet-libvirt.c: In function 'dissect_libvirt':
packet-libvirt.c:426:5: warning: passing argument 7 of 'tcp_dissect_pdus' from incompatible pointer type [enabled by default]
In file included from packet-libvirt.c:29:0:
/usr/include/wireshark/epan/dissectors/packet-tcp.h:111:1: note: expected 'new_dissector_t' but argument is of type 'void (*)(struct tvbuff_t *, struct packet_info *, struct proto_tree *)'
packet-libvirt.c:426:5: error: too few arguments to function 'tcp_dissect_pdus'
In file included from packet-libvirt.c:29:0:
/usr/include/wireshark/epan/dissectors/packet-tcp.h:111:1: note: declared here
make[3]: *** [libvirt_la-packet-libvirt.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-emulation/libvirt-1.2.3/work/libvirt-1.2.3/tools/wireshark/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-emulation/libvirt-1.2.3/work/libvirt-1.2.3/tools/wireshark'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-emulation/libvirt-1.2.3/work/libvirt-1.2.3'
make: *** [all] Error 2

Expected Results:  
Successful build of app-emulation/libvirt-1.2.3

Portage 2.2.8-r1 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.14.1-gentoo x86_64)
=================================================================
System uname: Linux-3.14.1-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1075T_Processor-with-gentoo-2.2
KiB Mem:    16439552 total,   7424884 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of tree: Mon, 21 Apr 2014 01:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.6.8-r3, 2.7.5-r3, 3.3.3
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.14 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x11 sunrise virtualization steam-overlay docker
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /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=amdfam10 -O2 -pipe"
DISTDIR="/mnt/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://de-mirror.org/distro/gentoo/"
LANG="en_US"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/sunrise /var/lib/layman/virtualization /var/lib/layman/steam /var/lib/layman/docker"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X X509 a52 aac aalib acl acpi aio aisleriot alsa amd64 amr apng archive aspell async audio audit avahi bash-completion berkdb bluetooth bonjour bookmarks branding brasero btrfs bzip2 cairo caps ccache cdaudio cdda cddb cdio cdr cdrkit cjk cli clutter colord console corefonts cracklib crypt css cups curl cxx daap dbus dc1394 dconf deskbar device-mapper dga dhcp dia discouraged disk-partition diskio divx dmi dmraid dri drm dv dvd dvdr dvi dvipdfm eds emerald enca encode evo exchange exif expat fam fasttrack fat fbcon ffmpeg flac flickr fontconfig fortran ftp fts fts3 fuse gaim gallium gbm gcj gconf gd gdbm gdu gedit geoip gif gimp gimpprint git glib glitz glsa glut gmp gnome gnome-keyring gnome-print gnuplot gnutella gnutls gphoto2 graphics graphviz grilo gs gsf gstreamer gtk gtk3 gtkhtml gudev guile h323 hddtemp hfs hwdb ical iconv icq icu id3tag idn ieee1394 imagemagick imap inherit-graph inkjar introspection ios ipod iptc ipv6 irc ithreads jabber jpeg kate kerberos keymap keyring kpathsea kqemu kvm lame lastfm latex lcms libass libnotify libsamplerate libsexy live llvm-gcc lm_sensors logrotate lvm lzma lzo magic map matroska mdadm mdnsresponder-compat midi mjpeg mmap mmx mmxext modules mono mp2 mp3 mpeg msn mtp multilib musepack musicbrainz nautilus ncurses network networking networkmanager nfs nfsidmap nls nntp nolvm1 nolvmstatic nptl nsplugin nss ntfs ntfsprogs nvidia ocamlopt ofx ogg opengl openmp openvg osmesa pam parted pcntl pcre pdf pdfimport playlist plotutils png podcast policykit postscript ppds prediction print pstricks pulseaudio python3 qemu qt3support quicktime rar rdesktop readline resolvconf rtc rtmp rtsp sasl schroedinger science scrobbler sdl secure-delete sendto session shout sip smi smp socialweb soundtouch soup sourceview spell sse sse2 ssh ssl stream subtitles subversion svg symlink systemd taglib tagwriting tcpd telepathy tex4ht tga theora threads threadsonly tiff tk toolkit-scroll-bars totem tracker truetype udev unicode unique upnp urandom usb usbredir v4l2 vala vcd vdisk vdpau video vim-syntax virtualbox vlm vnc vorbis vpx vte wav webgl webkit wma wmf x264 xa xanim xattr xcb xcomposite xetex xfs xinerama xml xmldoclet xmp xulrunner xv xvid xvmc youtube zeitgeist zeroconf zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MPMS="worker" 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" DRACUT_MODULES="caps lvm syslog systemd" 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" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="nouveau 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Reto Gantenbein (ganto) 2014-04-21 17:05:05 UTC
Created attachment 375430 [details]
full build.log
Comment 2 Andrey Volkov 2014-04-22 05:46:27 UTC
I have the same result with net-analyzer/wireshark-1.11.3

I don't want libvirt to link wireshark

My solution was --without-wireshark-dissector

--- a/libvirt-1.2.3.ebuild	2014-04-21 14:01:04.000000000 +0600
+++ b/libvirt-1.2.3.ebuild	2014-04-22 11:23:59.335204178 +0600
@@ -33,7 +33,7 @@
 IUSE="audit avahi +caps firewalld fuse iscsi +libvirtd lvm lxc +macvtap nfs \
 	nls numa openvz parted pcap phyp policykit +qemu rbd sasl \
 	selinux +udev uml +vepa virtualbox virt-network xen elibc_glibc \
-	systemd"
+	systemd wireshark"
 REQUIRED_USE="libvirtd? ( || ( lxc openvz qemu uml virtualbox xen ) )
 	lxc? ( caps libvirtd )
 	openvz? ( libvirtd )
@@ -100,6 +100,7 @@
 		sys-apps/iproute2[-minimal]
 		firewalld? ( net-firewall/firewalld )
 	)
+	wireshark? ( <net-analyzer/wireshark-1.11 )
 	elibc_glibc? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )"
 # one? ( dev-libs/xmlrpc-c )
 DEPEND="${RDEPEND}
@@ -316,6 +317,9 @@
 	# systemd unit files
 	use systemd && myconf="${myconf} --with-init-script=systemd"
 
+	# wireshark dissector
+	myconf="${myconf} $(use_with wireshark wireshark-dissector)"
+
 	# this is a nasty trick to work around the problem in bug
 	# #275073. The reason why we don't solve this properly is that
 	# it'll require us to rebuild autotools (and we don't really want
Comment 3 Reto Gantenbein (ganto) 2014-04-22 18:35:09 UTC
Yes, sorry, I forgot to add a hint that I already filled a bug to add the 'wireshark' USE flag to the libvirt ebuild (see #508340).
Comment 4 Andrey Volkov 2014-06-16 14:15:33 UTC
When using net-analyzer/wireshark-1.12.0_rc2 header files is not installed and
app-emulation/libvirt-1.2.4 build is successful (Wireshark dissector disabled).

...
configure: 
configure: Developer Tools
configure: 
configure: Wireshark dissector: no
configure: 
...
Comment 5 Michal Privoznik 2014-07-04 11:01:50 UTC
I've just proposed patches on the libvirt list:

https://www.redhat.com/archives/libvir-list/2014-July/msg00209.html

And they are ready to be merged. However, insterestingly the wireshark-1.11.X fails to. I'm unable to find it anymore in the portage so I'm wondering wheter I should just push the patches or propose another patch set (follow up maybe?) to fix the wireshark-1.11 too.
Comment 6 Michal Privoznik 2014-07-04 11:07:26 UTC
(In reply to Andrey Volkov from comment #2)
> I have the same result with net-analyzer/wireshark-1.11.3
> 
> I don't want libvirt to link wireshark

It doesn't. Firstly, the wireshark dissector is built iff you have wireshark installed. Secondly, it's only a dissector (plugin to wireshark to recognize libvirt's RPC messages). Libvirt itself does not utilize wireshark or any of its part anyhow.
Comment 7 Chris Smith 2014-07-07 21:46:07 UTC
Same issue with libvirt-1.2.5.
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-10 10:52:52 UTC
*** Bug 516826 has been marked as a duplicate of this bug. ***
Comment 9 Juergen Rose 2014-07-27 13:19:43 UTC
(In reply to Michal Privoznik from comment #5)
> I've just proposed patches on the libvirt list:
> 
> https://www.redhat.com/archives/libvir-list/2014-July/msg00209.html
> 
> And they are ready to be merged. However, insterestingly the
> wireshark-1.11.X fails to. I'm unable to find it anymore in the portage so
> I'm wondering wheter I should just push the patches or propose another patch
> set (follow up maybe?) to fix the wireshark-1.11 too.

I tried to use these patches (see also the attached files). But again plugin.c fails with the same error. I used a modified libvirt-1.2.5 ebuild and wireshark-1.12.0rc3.
Comment 10 Juergen Rose 2014-07-27 13:20:48 UTC
Created attachment 381638 [details, diff]
wireshark-1.12.0-Makefile.patch
Comment 11 Juergen Rose 2014-07-27 13:21:31 UTC
Created attachment 381640 [details, diff]
wireshark-1.12.0-packet-libviert_h.patch
Comment 12 Juergen Rose 2014-07-27 13:22:19 UTC
Created attachment 381642 [details, diff]
wireshark-1.12.0-packet-libviert_c.patch
Comment 13 Juergen Rose 2014-07-27 13:23:37 UTC
Created attachment 381644 [details]
libvirt-1.2.5.ebuild using the three patches
Comment 14 Juergen Rose 2014-07-27 14:33:52 UTC
Created attachment 381648 [details]
bzip2ed build.log for the patched ebuild
Comment 15 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-29 11:04:39 UTC
*** Bug 518438 has been marked as a duplicate of this bug. ***
Comment 16 Juergen Rose 2014-07-30 07:29:06 UTC
And now there is the same issue with libvirt-1.2.6.
Comment 17 Juergen Rose 2014-07-30 08:43:29 UTC
(In reply to Juergen Rose from comment #16)
> And now there is the same issue with libvirt-1.2.6.

Sorry it is not the same issue. It is a new one. 'emerge libvirt' fails now with:

root@lynx2:/usr/local/portage/app-emulation(150)# MAKEOPTS=-j1 emerge -v1D libvirt
...
libtool: compile:  x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../gnulib/lib -I.. -I../include -I../include -I../src/util -DIN_LIBVIRT -Dabs_topbuilddir=\"/var/tmp/portage/app-emulation/libvirt-1.2.6/work/libvirt-1.2.6\" -I/usr/include/libnl3 -I/usr/include/libnl3 -I/usr/include/libxml2 -W -Waddress -Waggressive-loop-optimizations -Wall -Warray-bounds -Wattributes -Wbad-function-cast -Wbuiltin-macro-redefined -Wcast-align -Wchar-subscripts -Wclobbered -Wcomment -Wcomments -Wcoverage-mismatch -Wcpp -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wdouble-promotion -Wempty-body -Wendif-labels -Wextra -Wformat-contains-nul -Wformat-extra-args -Wformat-security -Wformat-y2k -Wformat-zero-length -Wfree-nonheap-object -Wignored-qualifiers -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Winit-self -Winline -Wint-to-pointer-cast -Winvalid-memory-model -Winvalid-pch -Wjump-misses-init -Wlogical-op -Wmain -Wmaybe-uninitialized -Wmissing-braces -Wmissing-declarations -Wmissing-field-initializers -Wmissing-include-dirs -Wmissing-parameter-type -Wmissing-prototypes -Wmultichar -Wnarrowing -Wnested-externs -Wnonnull -Wnormalized=nfc -Wold-style-declaration -Wold-style-definition -Woverflow -Woverride-init -Wpacked-bitfield-compat -Wparentheses -Wpointer-arith -Wpointer-sign -Wpointer-to-int-cast -Wpragmas -Wreturn-local-addr -Wreturn-type -Wsequence-point -Wshadow -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstrict-prototypes -Wsuggest-attribute=const -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure -Wswitch -Wsync-nand -Wtrampolines -Wtrigraphs -Wtype-limits -Wuninitialized -Wunknown-pragmas -Wunused -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-function -Wunused-label -Wunused-local-typedefs -Wunused-parameter -Wunused-result -Wunused-value -Wunused-variable -Wvarargs -Wvariadic-macros -Wvector-operation-performance -Wvolatile-register-var -Wwrite-strings -fdiagnostics-show-option -funit-at-a-time -Wno-sign-compare -Wjump-misses-init -Wno-format-nonliteral -Wframe-larger-than=4096 -fexceptions -fasynchronous-unwind-tables -fipa-pure-const -Wno-suggest-attribute=pure -Wno-suggest-attribute=const -fstack-protector-all -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I../src/conf -march=native -O2 -pipe -c util/virobject.c  -fPIC -DPIC -o util/.libs/libvirt_util_la-virobject.o
util/virnuma.c: In function 'virNumaNodeIsAvailable':
util/virnuma.c:428:5: warning: implicit declaration of function 'numa_bitmask_isbitset' [-Wimplicit-function-declaration]
     return numa_bitmask_isbitset(numa_nodes_ptr, node);
     ^
util/virnuma.c:428:5: warning: nested extern declaration of 'numa_bitmask_isbitset' [-Wnested-externs]
util/virnuma.c:428:34: error: 'numa_nodes_ptr' undeclared (first use in this function)
     return numa_bitmask_isbitset(numa_nodes_ptr, node);
                                  ^



root@lynx2:/usr/local/portage/app-emulation(151)# emerge --info '=app-emulation/libvirt-1.2.6::gentoo'
Portage 2.2.10 (default/linux/amd64/13.0/desktop, gcc-4.8.3, glibc-2.19-r1, 3.15.6-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.15.6-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-gentoo-2.2
KiB Mem:     3972144 total,   1102268 free
KiB Swap:   12582908 total,  12515216 free
Timestamp of tree: Wed, 30 Jul 2014 02:30:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.15 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo sunrise science x-portage g-cpan g-octave
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL Intel-SDP dlj-1.1 skype-eula skype-4.0.0.7-copyright googleearth AdobeFlash-11.x cadsoft Oracle-BCLA-JavaSE MakeMKV-EULA NVIDIA-CUDA Nero-AAC-EULA GIMPS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/share/gnupg/qualified.txt /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/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5/ext-active/ /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 /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage_lynx2"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/science /usr/local/portage /var/lib/cpan /var/lib/g-octave"
USE="64bit R X Xaw3d a52 aac acl acpi admin afs alsa amd64 ao apache2 apng applet archive armadillo arpack asf aspell atlas audacious audiofile automap automount bash-completion berkdb blas blast bluetooth bluray boost branding bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli cmake consolekit cracklib crypt css cups curl cxx daap db dbi dbm dbus declarative designer devhelp device-mapper dga dia dirac djvu doc dot dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras faac faad fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpm fpx fuse g3dvl garmin gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp git glade glib glpk gml gmp gnome gnome-keyring gnome-print gnuplot gnutls gold gphoto2 gpm grammar graphics graphtft graphviz grass gsl gsm gstreamer gtk gtk3 gudev guile hddtemp hdf hdf5 hdri html http httpd hvm hwdb iconv icq icu id3tag ide imagemagick imap inotify introspection ipod ipv6 irda ithreads jabber jadetex java jbig jit john jpeg jpeg2k kate kde kdepim kdrive kerberos keymap kpathsea kvm ladspa lame lapack laptop latex lcms ldap lensfun libffi libkms libnotify libsamplerate lirc live lua lzma lzo mad mail maildir mapnik math matroska media-library mercurial mikmod mkl mmx mmxext mng mod modules mono motif mozilla mp3 mp4 mpeg mpi mplayer mtp multilib multimedia musepack musicbrainz mysql mysqli nautilus ncurses netcdf netpbm network networking nfs nls nntp nptl nsplugin ntfs ntp numpy obex objc ocaml ocr octave odbc ofa ogdi ogg openexr opengl openmp openvg pam pango pcre pda pdf pdl2 perl plasma plotutils plugins png podcast policykit portaudio posix postgres postscript ppds preview-latex proj projectm pstricks pulseaudio python python-bindings q32 qemu qhull qt3support qt4 quicktime raw readline reiserfs reports rle romio rpc rrdcgi rrdtool samba sasl schroedinger science sdk sdl secure-delete semantic-desktop server session shout sip slang slp smart smbclient smp sms sndfile snmp soap sockets sound soup sox speex spell sql sqlite sse sse2 ssl ssse3 startup-notification stlport subtitles subversion sudo suexec svg svm swig systemd szip t1lib tcl tcpd tex tex4ht texmacs theora thesaurus thinkpad threads thunderbird tidy tiff tk tools truetype udev udisks unicode upower usb utempter v4l vaapi vala valgrind vdpau video virt-network virtualbox visio vorbis vpx vtk wav webdav webdav-serf webkit wifi wmf wxwidgets x264 xa xattr xcb xetex xext xft xine xml xmlreader xmlrpc xpm xv xvid xvmc yaml youtube zlib zvbi" ABI_X86="64" ALSA_CARDS="intel8x0" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_core authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" DVB_CARDS="usb-wt220u" 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" INPUT_DEVICES="keyboard mouse evdev synaptics void" KERNEL="linux" LCD_DEVICES="cfontz hd44780 mtxorb ncurses X lcd2usb lcdlinux png usblcd" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de fr ru" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel displaylink" 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, SYNC, USE_PYTHON



root@lynx2:/usr/local/portage/app-emulation(152)# emerge -pqv '=app-emulation/libvirt-1.2.6::gentoo'
[ebuild  r  U ] app-emulation/libvirt-1.2.6 [1.2.4] USE="caps fuse libvirtd macvtap nfs nls policykit qemu sasl systemd udev vepa virt-network virtualbox -audit -avahi -firewalld -iscsi -lvm -lxc -numa -openvz -parted -pcap -phyp -rbd (-selinux) -uml -xen" 
[ebuild  rR   ] dev-python/libvirt-python-1.2.5  USE="{-test}" PYTHON_TARGETS="python2_7 python3_3 -python3_2" 
[ebuild  rR   ] app-emulation/libvirt-glib-0.1.8  USE="introspection python vala" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" 


Should I file a new bug report?
Comment 18 Juergen Rose 2014-07-30 12:30:50 UTC
(In reply to Juergen Rose from comment #17)
> (In reply to Juergen Rose from comment #16)
> > And now there is the same issue with libvirt-1.2.6.
> 
> Sorry it is not the same issue. It is a new one. 'emerge libvirt' fails now
> with:
> 
> root@lynx2:/usr/local/portage/app-emulation(150)# MAKEOPTS=-j1 emerge -v1D
> libvirt
> ...
> libtool: compile:  x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I.
> -I.. -I../gnulib/lib -I../gnulib/lib -I.. -I../include -I../include
> -I../src/util -DIN_LIBVIRT
> -Dabs_topbuilddir=\"/var/tmp/portage/app-emulation/libvirt-1.2.6/work/
> libvirt-1.2.6\" -I/usr/include/libnl3 -I/usr/include/libnl3
> -I/usr/include/libxml2 -W -Waddress -Waggressive-loop-optimizations -Wall
> -Warray-bounds -Wattributes -Wbad-function-cast -Wbuiltin-macro-redefined
> -Wcast-align -Wchar-subscripts -Wclobbered -Wcomment -Wcomments
> -Wcoverage-mismatch -Wcpp -Wdeprecated-declarations -Wdisabled-optimization
> -Wdiv-by-zero -Wdouble-promotion -Wempty-body -Wendif-labels -Wextra
> -Wformat-contains-nul -Wformat-extra-args -Wformat-security -Wformat-y2k
> -Wformat-zero-length -Wfree-nonheap-object -Wignored-qualifiers -Wimplicit
> -Wimplicit-function-declaration -Wimplicit-int -Winit-self -Winline
> -Wint-to-pointer-cast -Winvalid-memory-model -Winvalid-pch
> -Wjump-misses-init -Wlogical-op -Wmain -Wmaybe-uninitialized
> -Wmissing-braces -Wmissing-declarations -Wmissing-field-initializers
> -Wmissing-include-dirs -Wmissing-parameter-type -Wmissing-prototypes
> -Wmultichar -Wnarrowing -Wnested-externs -Wnonnull -Wnormalized=nfc
> -Wold-style-declaration -Wold-style-definition -Woverflow -Woverride-init
> -Wpacked-bitfield-compat -Wparentheses -Wpointer-arith -Wpointer-sign
> -Wpointer-to-int-cast -Wpragmas -Wreturn-local-addr -Wreturn-type
> -Wsequence-point -Wshadow -Wsizeof-pointer-memaccess -Wstrict-aliasing
> -Wstrict-prototypes -Wsuggest-attribute=const -Wsuggest-attribute=format
> -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure -Wswitch -Wsync-nand
> -Wtrampolines -Wtrigraphs -Wtype-limits -Wuninitialized -Wunknown-pragmas
> -Wunused -Wunused-but-set-parameter -Wunused-but-set-variable
> -Wunused-function -Wunused-label -Wunused-local-typedefs -Wunused-parameter
> -Wunused-result -Wunused-value -Wunused-variable -Wvarargs -Wvariadic-macros
> -Wvector-operation-performance -Wvolatile-register-var -Wwrite-strings
> -fdiagnostics-show-option -funit-at-a-time -Wno-sign-compare
> -Wjump-misses-init -Wno-format-nonliteral -Wframe-larger-than=4096
> -fexceptions -fasynchronous-unwind-tables -fipa-pure-const
> -Wno-suggest-attribute=pure -Wno-suggest-attribute=const
> -fstack-protector-all -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include
> -I../src/conf -march=native -O2 -pipe -c util/virobject.c  -fPIC -DPIC -o
> util/.libs/libvirt_util_la-virobject.o
> util/virnuma.c: In function 'virNumaNodeIsAvailable':
> util/virnuma.c:428:5: warning: implicit declaration of function
> 'numa_bitmask_isbitset' [-Wimplicit-function-declaration]
>      return numa_bitmask_isbitset(numa_nodes_ptr, node);
>      ^
> util/virnuma.c:428:5: warning: nested extern declaration of
> 'numa_bitmask_isbitset' [-Wnested-externs]
> util/virnuma.c:428:34: error: 'numa_nodes_ptr' undeclared (first use in this
> function)
>      return numa_bitmask_isbitset(numa_nodes_ptr, node);
>                                   ^


Why emerge tries to compile virnuma? The -numa USE flag is set:

root@lynx2:/usr/local/portage/media-libs(165)# emerge -uvDN world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] virtual/udev-215 [208-r2] USE="(-gudev%*) (-introspection%*) (-static-libs%)" ABI_X86="(-32%) (-64%*) (-x32%)" 0 kB
[ebuild  r  U  ] app-emulation/libvirt-1.2.6:0/1.2.6 [1.2.4:0/1.2.4] USE="caps fuse libvirtd macvtap nfs nls policykit qemu sasl systemd udev vepa virt-network virtualbox -audit -avahi -firewalld -iscsi -lvm -lxc -numa -openvz -parted -pcap -phyp -rbd (-selinux) -uml -xen" 0 kB
[ebuild  rR    ] dev-python/libvirt-python-1.2.5  USE="{-test}" PYTHON_TARGETS="python2_7 python3_3 -python3_2" 0 kB
[ebuild  rR    ] app-emulation/libvirt-glib-0.1.8  USE="introspection python vala" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" 0 kB
Comment 19 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-07-31 17:06:39 UTC
+  31 Jul 2014; Michał Górny <mgorny@gentoo.org> libvirt-1.2.3.ebuild,
+  libvirt-1.2.5.ebuild, libvirt-1.2.6.ebuild, libvirt-9999.ebuild:
+  Disable wireshark dissector support to fix automagic dependency and resulting
+  build failures, bugs #508340 and #508336.

I leave any further actions up to the maintainers.
Comment 20 Juergen Rose 2014-09-29 23:30:12 UTC
app-emulation/libvirt-1.2.still fails, if qlist if wireshark-1.12.1 is installed.
Comment 21 Matthias Maier gentoo-dev 2014-11-02 22:56:13 UTC
No longer an issue with app-emulation/libvirt-1.2.9* and net-analyzer/wireshark-1.12.1