After upgrading to GCC 4.1.1, 'emerge -e world' failed on fbpager-0.1.4. The package still doesn't compile with a completely rebuilt system. Errors all occur in "Resources.hh" and look like this: Resources.hh:38: error: specialization of 'void FbTk::Resource<T>::setFromString(const char*) [with T = int]' in different namespace Resources.hh:38: error: from definition of 'void FbTk::Resource<T>::setFromString(const char*) [with T = int]' Resources.hh:45: error: specialization of 'std::string FbTk::Resource<T>::getString() [with T = int]' in different namespace Resources.hh:45: error: from definition of 'std::string FbTk::Resource<T>::getString() [with T = int]' Resources.hh:53: error: specialization of 'void FbTk::Resource<T>::setFromString(const char*) [with T = FbPager::FbPager::Alignment]' in different namespace Resources.hh:53: error: from definition of 'void FbTk::Resource<T>::setFromString(const char*) [with T = FbPager::FbPager::Alignment]' Resources.hh:61: error: specialization of 'std::string FbTk::Resource<T>::getString() [with T = FbPager::FbPager::Alignment]' in different namespace Resources.hh:61: error: from definition of 'std::string FbTk::Resource<T>::getString() [with T = FbPager::FbPager::Alignment]' My 'emerge --info': Portage 2.1_rc4-r1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.16.18 i686) ================================================================= System uname: 2.6.16.18 i686 AMD Athlon(tm) XP 2600+ Gentoo Base System version 1.12.0 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r1 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" LANG="de_DE@euro" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/ distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X a52 aac aalib accessibility acl alsa apache2 apm arts asf audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdr cli composite crypt cups curl dga directfb divx4linux dri dvd eds emboss encode esd exif fam fbcon ffmpeg firefox flac foomaticdb fortran gd gdbm ggi gif glibc-omitfp gnutls gphoto2 gpm gstreamer gtk gtk2 hal idn imagemagick imap imlib imlib2 isdnlog jabber jack java jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kqemu ladcca lame lcms libg++ libvisual libwww live lm_sensors mad maildir mbox mbrola mikmod mmx mmxext motif moznocompose moznoirc moznomail mp3 mpeg mpeg2 mplayer musicbrainz mysql ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl oss pam pcre pdf pdflib perl pic png ppds pppd python qt quicktime rdesktop readline reflection ruby samba sametime sdl session slang smime sndfile spell spl sqlite sse ssl svg svga tcltk tcpd theora tidy tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales videos vorbis win32codecs xcomposite xine xml xmms xorg xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 88360 [details, diff] fbpager-0.1.4-gcc41.patch
Thank you, your attached patch works, fbpager builds and runs fine.
Created attachment 89615 [details, diff] ebuild patch for the source code patch I can confirm that the proposed source patch works on my amd64 machine with gcc-4.1.1. Here is an ebuild patch which incorporates the source patch.
confirmed the patch works on ~x86 too
Please put this patch in the tree
Found this bug when upgrading to gcc 4.1 (x86), this path worked for me. It would be great to have the patch in the tree. :)
confirmed the patch works on my ~amd64 too
+1 confirming bug and that patch works, feel free to add to tree :)
patch works here too
I've just hit this bug too. What's preventing the patch from entering the tree? Thanks, Alberto
same here
Maybe someone else would like to fix this, sending to maintainer-needed.
patch works for me to, thanks. hope it enters portage soon.
Fixed! Thanks for the patch, Ryan.