if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -pedantic -ansi -Wall -I/usr/include/libxml++-2.6 -I/usr/include/libxml2 -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -march=athlon-xp -O2 -pipe -fomit-frame-pointer -MT herds.o -MD -MP -MF ".deps/herds.Tpo" -c -o herds.o herds.cc; \ then mv -f ".deps/herds.Tpo" ".deps/herds.Po"; else rm -f ".deps/herds.Tpo"; exit 1; fi if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -pedantic -ansi -Wall -I/usr/include/libxml++-2.6 -I/usr/include/libxml2 -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -march=athlon-xp -O2 -pipe -fomit-frame-pointer -MT pkgquery.o -MD -MP -MF ".deps/pkgquery.Tpo" -c -o pkgquery.o pkgquery.cc; \ then mv -f ".deps/pkgquery.Tpo" ".deps/pkgquery.Po"; else rm -f ".deps/pkgquery.Tpo"; exit 1; fi In file included from /usr/include/libxml++-2.6/libxml++/libxml++.h:22, from xmlparser.hh:35, from xml.hh:33, from herds_xml.hh:30, from pkgquery.hh:32, from pkgquery.cc:28: /usr/include/libxml++-2.6/libxml++/validators/validator.h:25: error: extra `;' make[2]: *** [pkgquery.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/herdstat-1.1.1_rc6/work/herdstat-1.1.1_rc6/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/herdstat-1.1.1_rc6/work/herdstat-1.1.1_rc6' make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: 1. emerge =app-portage/herdstat-1.1.1_rc6 Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.11-gentoo-r9 i686) ================================================================= System uname: 2.6.11-gentoo-r9 i686 AMD Sempron(tm) Gentoo Base System version 1.6.12 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Jun 3 2005, 09:59:34)] ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/glftpd/etc /opt/glftpd/ftp-data /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks maketest sandbox sfperms strict test userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo ftp://ftp.fi.muni.cz/pub/linux/gentoo/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 acpi alsa apache2 apm bash-completion berkdb crypt fbcon fortran ftp gd gdbm gif imap innodb jpeg libg++ libwww maildir mcal mmx mp3 mpeg mysql ncurses nls nptl nptlonly pam pdflib perl php png pnp python readline sasl ssl tcpd tiff unicode xml xml2 zlib linguas_en userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL
The error looks like it is coming from a libxmlpp header. Please include the version of libxmlpp you are using. Might as well include glib/glibmm versions as well for the hell of it.
Ok, here we go: dev-cpp/libxmlpp-2.8.0-r1 dev-libs/glib-2.6.3 dev-cpp/glibmm-2.4.7-r1
OK, to save your bug-hunting time, it works with dev-cpp/libxmlpp-2.10.0-r1.
Only took me about 2 minutes to find the bug, so no worries :) $ diff -u libxml++-2.8.0/libxml++/validators/validator.h libxml++-2.10.0/libxml++/validators/validator.h --- libxml++-2.8.0/libxml++/validators/validator.h 2004-05-28 17:33:03.000000000 -0400 +++ libxml++-2.10.0/libxml++/validators/validator.h 2004-11-30 02:20:34.000000000 -0500 @@ -22,7 +22,7 @@ extern "C" { struct _xmlValidCtxt; -}; +} namespace xmlpp { I'll do an -r2 shortly.
2.8.0-r2 is in CVS. Thanks for the bug Jakub.
That was fast, thanks too!