emerge app-emulation/virt-manager failes, because depending app-emulation/libvirt-0.5.1 fails with an error during compilation: Reproducible: Always Actual Results: libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../gnulib/lib -I../include -I../include -I../qemud -I/usr/include/libxml2 -DLIBDIR=\"/usr/lib64\" -DBINDIR=\"/usr/libexec\" -DSBINDIR=\"/usr/sbin\" -DSYSCONF_DIR=\"/etc\" -DLOCALEBASEDIR=\"/usr/share/locale\" -DLOCAL_STATE_DIR=\"/var\" -DGETTEXT_PACKAGE=\"libvirt\" -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables -march=nocona -O2 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs -MT network_driver.lo -MD -MP -MF .deps/network_driver.Tpo -c network_driver.c -fPIC -DPIC -o .libs/network_driver.o network_driver.c:65: error: expected specifier-qualifier-list before 'brControl' network_driver.c: In function 'networkStartup': network_driver.c:124: error: 'struct network_driver' has no member named 'logDir' network_driver.c:137: error: 'struct network_driver' has no member named 'logDir' network_driver.c:151: error: 'struct network_driver' has no member named 'networkConfigDir' network_driver.c:154: error: 'struct network_driver' has no member named 'networkAutostartDir' network_driver.c:162: error: 'struct network_driver' has no member named 'networkConfigDir' network_driver.c:163: error: 'struct network_driver' has no member named 'networkAutostartDir' network_driver.c: In function 'networkReload': network_driver.c:192: error: 'struct network_driver' has no member named 'networkConfigDir' network_driver.c:193: error: 'struct network_driver' has no member named 'networkAutostartDir' network_driver.c: In function 'networkShutdown': network_driver.c:250: error: 'struct network_driver' has no member named 'logDir' network_driver.c:251: error: 'struct network_driver' has no member named 'networkConfigDir' network_driver.c:252: error: 'struct network_driver' has no member named 'networkAutostartDir' network_driver.c:254: error: 'struct network_driver' has no member named 'brctl' network_driver.c:255: warning: implicit declaration of function 'brShutdown' network_driver.c:255: warning: nested extern declaration of 'brShutdown' network_driver.c:255: error: 'struct network_driver' has no member named 'brctl' network_driver.c: In function 'networkStartNetworkDaemon': network_driver.c:674: error: 'struct network_driver' has no member named 'brctl' network_driver.c:674: warning: implicit declaration of function 'brInit' network_driver.c:674: warning: nested extern declaration of 'brInit' network_driver.c:674: error: 'struct network_driver' has no member named 'brctl' network_driver.c:680: warning: implicit declaration of function 'brAddBridge' network_driver.c:680: warning: nested extern declaration of 'brAddBridge' network_driver.c:680: error: 'struct network_driver' has no member named 'brctl' network_driver.c:688: warning: implicit declaration of function 'brSetForwardDelay' network_driver.c:688: warning: nested extern declaration of 'brSetForwardDelay' network_driver.c:688: error: 'struct network_driver' has no member named 'brctl' network_driver.c:691: warning: implicit declaration of function 'brSetEnableSTP' network_driver.c:691: warning: nested extern declaration of 'brSetEnableSTP' network_driver.c:691: error: 'struct network_driver' has no member named 'brctl' network_driver.c:695: warning: implicit declaration of function 'brSetInetAddress' network_driver.c:695: warning: nested extern declaration of 'brSetInetAddress' network_driver.c:695: error: 'struct network_driver' has no member named 'brctl' network_driver.c:703: warning: implicit declaration of function 'brSetInetNetmask' network_driver.c:703: warning: nested extern declaration of 'brSetInetNetmask' network_driver.c:703: error: 'struct network_driver' has no member named 'brctl' network_driver.c:711: warning: implicit declaration of function 'brSetInterfaceUp' network_driver.c:711: warning: nested extern declaration of 'brSetInterfaceUp' network_driver.c:711: error: 'struct network_driver' has no member named 'brctl' network_driver.c:741: error: 'struct network_driver' has no member named 'brctl' network_driver.c:747: warning: implicit declaration of function 'brDeleteBridge' network_driver.c:747: warning: nested extern declaration of 'brDeleteBridge' network_driver.c:747: error: 'struct network_driver' has no member named 'brctl' network_driver.c: In function 'networkShutdownNetworkDaemon': network_driver.c:772: error: 'struct network_driver' has no member named 'brctl' network_driver.c:777: error: 'struct network_driver' has no member named 'brctl' network_driver.c: In function 'networkDefine': network_driver.c:961: error: 'struct network_driver' has no member named 'networkConfigDir' network_driver.c:962: error: 'struct network_driver' has no member named 'networkAutostartDir' network_driver.c: In function 'networkSetAutostart': network_driver.c:1093: error: 'struct network_driver' has no member named 'networkAutostartDir' network_driver.c:1094: error: 'struct network_driver' has no member named 'networkAutostartDir' make[3]: *** [network_driver.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/app-emulation/libvirt-0.5.1/work/libvirt-0.5.1/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/app-emulation/libvirt-0.5.1/work/libvirt-0.5.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-emulation/libvirt-0.5.1/work/libvirt-0.5.1' make: *** [all] Error 2 * * ERROR: app-emulation/libvirt-0.5.1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2632: Called die * The specific snippet of code: * emake || die "emake failed" * The die message: * emake failed Portage 2.1.6.4 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.9_p20081201-r1, 2.6.18-xen-r12 x86_64) ================================================================= System uname: Linux-2.6.18-xen-r12-x86_64-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-glibc2.2.5 Timestamp of tree: Sun, 11 Jan 2009 18:30:01 +0000 app-shells/bash: 3.2_p48 dev-java/java-config: 1.3.7-r1, 2.1.6-r1 dev-lang/python: 2.5.2-r8 dev-python/pycrypto: 2.0.1-r6 dev-util/cmake: 2.6.2-r1 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.1-r1 sys-apps/sandbox: 1.3.2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.28-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs" 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" 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/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" PKGDIR="/usr/portage/packages" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl afs amd64 berkdb bzip2 cairo cli cracklib crypt ctype cups dbus dri firefox fortran freetype gdbm gpm gtk hvm iconv ipv6 isdnlog java kde midi mmx mudflap multilib mysqli ncurses nls nptl nptlonly openlg openmp pam pcre perl pppd python qt4 readline reflection session spl sse sse2 ssl sysfs tcpd truetype unicode xen xorg xulrunner 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
I'm facing exactly the same problem, though I don't get what is wrong here. bridge.h contains: typedef struct _brControl brControl; which is included in network_driver.c so brControl should be persent. I could work around that by copy-pasting the struct definination from bridge.c to network_driver.c typedef struct _brControl { int id; } brControl; But then it failed within the linker. I think I suck at C :-)
(In reply to comment #1) > I'm facing exactly the same problem, though I don't get what is wrong here. > > bridge.h contains: > typedef struct _brControl brControl; > > which is included in network_driver.c so brControl should be persent. I could > work around that by copy-pasting the struct definination from bridge.c to > network_driver.c > > typedef struct _brControl { > int id; > } brControl; > > But then it failed within the linker. I think I suck at C :-) > I reported this same bug against 0.6.0 to the libvirt mailing list (see: http://thread.gmane.org/gmane.comp.emulators.libvirt/11928). The developers posted a patch, but it won't apply against 0.5.1. I just posted a 0.6.0 ebuild and patch that fixes this in bug #257687.
Created attachment 185391 [details, diff] Patch for 0.5.1 As described in libvirt mailling list.
Created attachment 185394 [details] applies the above patch
Fixed in newer versions. This version is no longer in the tree.