Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
Not eligible to see or edit group visibility for this bug.
View Bug Activity | Format For Printing | XML | Clone This Bug
On both an x86 with gcc 3.3 and a hppa system with 3.3, dev-cpp/libherdstat-0.2.0 doesn't build. The error messages look like this: if /bin/sh ../../../libtool --silent --tag=CXX --mode=compile i586-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../.. -Os -march=i586 -pipe -pedantic -ansi -W -Wall -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -MT spinner.lo -MD -MP -MF ".deps/spinner.Tpo" -c -o spinner.lo spinner.cc; \ then mv -f ".deps/spinner.Tpo" ".deps/spinner.Plo"; else rm -f ".deps/spinner.Tpo"; exit 1; fi spinner.cc:58: error: syntax error before `__attribute__' spinner.cc:58: error: prototype for `void herdstat::util::Spinner::do_increment(...)' does not match any in class ` herdstat::util::Spinner' ../../../herdstat/util/progress/spinner.hh:64: error: candidate is: virtual void herdstat::util::Spinner::do_increment(int) spinner.cc: In member function `void herdstat::util::Spinner::do_increment(...) ': spinner.cc:64: error: ISO C++ forbids declaration of `printf' with no type spinner.cc:64: error: declaration of `printf' not in a namespace surrounding ` std' spinner.cc:64: error: declaration of `int std::printf' spinner.cc:64: error: conflicts with built-in declaration `int std::printf(const char*, ...)' spinner.cc:64: error: initializer list being treated as compound expression spinner.cc:68: error: syntax error before `}' token make[4]: *** [spinner.lo] Error 1 make[4]: Leaving directory `/var/tmp/portage/libherdstat-0.2.0/work/libherdstat-0.2.0/herdstat/util/progress' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/libherdstat-0.2.0/work/libherdstat-0.2.0/herdstat/util' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/libherdstat-0.2.0/work/libherdstat-0.2.0/herdstat' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libherdstat-0.2.0/work/libherdstat-0.2.0' make: *** [all] Error 2 `emerge info`: Thu Jan 19 21:27:05 CET 2006 Gentoo Base System version 1.6.14 Portage 2.1_pre3-r1 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.14-gentoo-r8-JeR i586) ================================================================= System uname: 2.6.14-gentoo-r8-JeR i586 AMD-K6(tm) 3D processor dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i586-pc-linux-gnu" CFLAGS="-Os -march=i586 -pipe" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/fax /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control /var/spool/fax/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-Os -march=i586 -pipe" DISTDIR="/keeps/gentoo/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg cvs distlocks fixpackages notitles prelink sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.scarlet-internet.nl/pub/gentoo ftp://mirror.nutsmaas.nl/gentoo/" LC_ALL="en_US.UTF-8" LINGUAS="en" PKGDIR="/keeps/gentoo/packages-i586" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/keeps/gentoo/portage" PORTDIR_OVERLAY="/keeps/gentoo/local" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow aac alsa apache2 apm audiofile avi bash-completion berkdb bitmap-fonts bzip2 caps chroot crypt cups curl eds elf emboss encode expat fax ffmpeg flash foomaticdb fortran gd gdbm gif gimpprint gmp gpm gs gstreamer idn imagemagick ipv6 jpeg lcms ldap libg++ libwww lzo mad matroska mhash mikmod ming mmx mng mp3 mpeg multitarget ncurses network nls nptl nptlonly offensive ogg oggvorbis oss pam pcre pdflib perl physfs pic png ppds python quicktime readline rle samba scanner sftplogging slang smux snmp spell ssl svg tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vorbis winbind wmf xml xml2 xvid zlib elibc_glibc kernel_linux linguas_en userland_GNU" Unset: ASFLAGS, CTARGET, LANG, LDFLAGS, MAKEOPTS And another `emerge info`: Thu Jan 19 21:29:29 CET 2006 Gentoo Base System version 1.6.14 Portage 2.1_pre3-r1 (default-linux/hppa/2005.0, gcc-3.3.6, glibc-2.3.4.20040808-r1, 2.6.15.1-pa4-JeR parisc) ================================================================= System uname: 2.6.15.1-pa4-JeR parisc PA7300LC (PCX-L2) ccache version 2.3 [disabled] dev-lang/python: 2.2.3-r6, 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="hppa" AUTOCLEAN="yes" CBUILD="hppa1.1-unknown-linux-gnu" CFLAGS="-O3 -pipe -mschedule=7100LC -march=1.1" CHOST="hppa1.1-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/ssh /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -mschedule=7100LC -march=1.1" DISTDIR="/keeps/gentoo/portage/distfiles" FEATURES="autoconfig buildpkg distlocks fixpackages notitles sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.scarlet-internet.nl/pub/gentoo ftp://mirror.nutsmaas.nl/gentoo/" LC_ALL="en_US.UTF-8" MAKEOPTS="-j2" PKGDIR="/keeps/gentoo/packages-hpvis" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/keeps/gentoo/portage" PORTDIR_OVERLAY="/keeps/gentoo/local" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="hppa X alsa apache2 audiofile bash-completion berkdb bitmap-fonts bzip2 c++ cairo caps cjk crypt cups curl elf esd exif expat fam fame fbcon flac foomaticdb fortran gd gdbm gif gimpprint glut gnutls gpm gstreamer gtk gtk2 guile idn imagemagick imlib ipv6 javascript jpeg lcms libwww lua mad mhash mikmod mng motif ncurses nls offensive ogg oss pam pcre pdflib perl pic png python qt readline recode ruby samba sdl slp snmp spell sqlite ssl svg tcpd threads tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales v4l vorbis xml2 zlib elibc_glibc kernel_linux userland_GNU video_cards_stifb video_cards_fbdev" Unset: ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS
Okay, I'm getting the same error. It looks like the problem is caused by the LIBHERDSTAT_UNUSED macro, which is part of the signature in the *.cc but not in the *.hh. The compiler seems to be punishing us for this.
Fixed.