g++ -DHAVE_CONFIG_H -I. -I. -I../../glib -I../../glib -I../../pango -I../../pango -I../../atk -I../../atk -I../../gdk -I../../gdk -I../../gtk -I../../gtk -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -march=i686 -O3 -pipe -Wall -c -o parser.o `test -f 'parser.cc' || echo './'`parser.cc parser.cc: In method `void {anonymous}::DumpParser::indent()': parser.cc:118: `::right' undeclared (first use here) make[3]: *** [parser.o] Error 1 make[3]: Leaving directory '/var/tmp/portage/gtkmm-2.2.1/work/gtkmm-2.2.1/examples/markup' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gtkmm-2.2.1/work/gtkmm-2.2.1/examples' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gtkmm-2.2.1/work/gtkmm-2.2.1' make: *** [all] Error 2 !!! ERROR: x11-libs/gtkmm-2.2.1 failed. !!! Function src_compile, Line 33, Exitcode 2 !!! emake failed. Reproducible: Always Steps to Reproduce: 1. emerge gtkmm Actual Results: dies Expected Results: compile # emerge info Portage 2.0.47-r10 (default-1.0, gcc-2.95.3, glibc-2.2.5-r8) ================================================================= System uname: 2.4.19-gentoo-r10c i686 AMD Athlon(tm) processor GENTOO_MIRRORS="http://linux.oit.umass.edu/gentoo/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/home/liverbugg/portage" USE="x86 oss 3dnow apm avi crypt cups jpeg libg++ mikmod mmx mpeg ncurses pdflib quicktime spell truetype xml2 xmms xv berkdb bonobo cdr directfb esd gdbm gif gnome gnome-libs gpm gtk gtkhtml guile imlib libwww motif mozilla mysql nls oggvorbis opengl pam perl png python readline sdl slang snmp ssl svga tcltk tcpd tiff X -kde -qt -arts -java dvd encode gtk2" COMPILER="" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe" CXXFLAGS="-march=i686 -O3 -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" FEATURES="sandbox ccache digest"
Created attachment 10240 [details] Simpel patch to resolve compilation problems with gcc 2.95 Patch + updated ebuild to resolve compilation problems on 2.95. One of the examples fails because the 2.95 c++ library doesn't implement std::right io manipulator.
The attached patch works for me on the following: Portage 2.0.47-r10 (default-1.0, gcc-2.95.3, glibc-2.2.5-r4,2.2.5-r8) ================================================================= System uname: 2.4.20-gentoo-r2 i586 AMD-K6(tm)-III+ Processor GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.oregonstate.edu ftp://gentoo.linux.no/pub/gentoo/ " CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss apm avi crypt encode jpeg libg++ mikmod mmx mpeg ncurses pdflib quicktime spell xml2 xmms xv arts berkdb bonobo cdr esd gdbm gif gnome-libs gpm gtkhtml guile imlib java kde libwww motif mozilla nls oggvorbis opengl pam perl png python qt readline scanner sdl slang ssl svga tcltk tcpd tiff X gtk gtk2 gnome 3dnow 3dfx voodoo3 matrox truetype smooth cups alsa" COMPILER="" CHOST="i586-pc-linux-gnu" CFLAGS="-march=k6 -Os -fomit-frame-pointer -pipe" CXXFLAGS="-march=k6 -Os -fomit-frame-pointer -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
it worked here too, with the following setup: Portage 2.0.48 (default-1.0, gcc-2.95.3, glibc-2.2.5-r8) ================================================================= System uname: 2.4.20 i686 Pentium II (Deschutes) GENTOO_MIRRORS="http://gentoo.linux.no/ http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss 3dnow apm avi crypt cups encode jpeg libg++ mikmod mmx mpeg ncurses pdflib quicktime spell truetype xml2 xmms xv arts berkdb bonobo cdr esd gdbm gif gnome-libs gpm gtkhtml guile imlib java kde ldap libwww motif mysql nls oggvorbis opengl pam perl png python qt readline ruby scanner sdl slang ssl svga tcpd tetex tiff gnome imap mozilla pda tcltk X gtk alsa dvd gnome2 gtk2 nas" COMPILER="" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe" CXXFLAGS="-march=i686 -O3 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.forsaken.lands/gentoo-x86-portage" FEATURES="sandbox ccache buildpkg"
Works great, thanks for the fix! My emerge info: Portage 2.0.48 (default-1.0, gcc-2.95.3, glibc-2.2.5-r2,2.2.5-r8) ================================================================= System uname: 2.4.20-win4lin-r1 i686 AMD Athlon(tm) XP 1800+ GENTOO_MIRRORS="http://www.fhh.opensource-mirror.de/gentoo.org/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/X11R6/lib/X11/xkb /opt/tomcat/conf /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/sound /etc/X11/starthere /etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm avi crypt cups encode jpeg libg++ mikmod mmx mpeg ncurses pdflib quicktime spell truetype xml2 xmms xv alsa berkdb bonobo esd gdbm ggi gif gnome gnome-libs gpm gtk gtkhtml guile imlib java ldap libwww mozilla mysql nls oggvorbis opengl pam perl png python qt readline ruby sdl slang ssl svga tcltk tcpd tetex tiff X dga doc dvd evo flash gd ggz gtk2 hbci imap jikes libgda mbox moznoirc moznomail oav pda zlib -kde -arts -motif" COMPILER="" CHOST="i686-pc-linux-gnu" CFLAGS="-O2 -mcpu=i686 -pipe" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache fixpackages"
A simpler solution for this gcc-2 problem would be to mark version 2.2.3 as stable and delete 2.2.1, since 2.2.3 compiles fine with gcc-2, which is still the compiler of the officially current stable Gentoo-1.2, I'd like to mention. *g*
You folks are talking about gcc 2, when I can't get it to compile 2.2.1 or 2.2.3 on gcc 3.3 either. :/
Here is a reference from May 2003 about a known bug compiling against gcc 3.3 and possibly a fix, but I haven't evaluated it myself. Maybe later... :) http://mail.gnome.org/archives/gtkmm-list/2003-May/msg00165.html
gtkmm-2.2.7 compiles fine w/ gcc-2.95
i assume this got resolved with newer versions, closing.