When emerging wv2 (version 0.2.1) I get the following error: g++ -DHAVE_CONFIG_H -DPACKAGE=\"wv2\" -DVERSION=\"0.2.1\" -I. -I. -I.. -I../include -I.. -I. -I/usr/include/libgsf-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -Wold-style-cast -Wnon-virtual-dtor -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -march=pentium3 -O3 -fomit-frame-pointer -funroll-loops -ffast-math -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -Wold-style-cast -Wnon-virtual-dtor -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -march=pentium3 -O3 -fomit-frame-pointer -funroll-loops -ffast-math -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -MT olestorage.lo -MD -MP -MF .deps/olestorage.Tpo -c olestorage.cpp -fPIC -DPIC -o olestorage.lo olestream.cpp: In destructor `virtual wvWare::OLEStreamReader::~OLEStreamReader()': olestream.cpp:64: warning: use of old-style cast olestream.cpp:64: warning: use of old-style cast olestream.cpp:64: warning: use of old-style cast olestream.cpp: In destructor `virtual wvWare::OLEStreamWriter::~OLEStreamWriter()': olestream.cpp:210: warning: use of old-style cast olestream.cpp:210: warning: use of old-style cast olestream.cpp:210: warning: use of old-style cast In file included from olestorage.cpp:21: wvlog.h:41: error: `std::ios' is not a template wvlog.h:41: error: `std::ios' is not a template wvlog.h:75: error: `std::ios' is not a template wvlog.h:75: error: `std::ios' is not a template olestorage.cpp: In member function `bool wvWare::OLEStorage::open(wvWare::OLEStorage::Mode)': olestorage.cpp:96: warning: use of old-style cast olestorage.cpp:96: warning: use of old-style cast olestorage.cpp:98: warning: use of old-style cast olestorage.cpp:98: warning: use of old-style cast olestorage.cpp:108: warning: use of old-style cast olestorage.cpp:108: warning: use of old-style cast olestorage.cpp:109: warning: use of old-style cast olestorage.cpp:109: warning: use of old-style cast olestorage.cpp:109: warning: use of old-style cast olestorage.cpp:119: warning: use of old-style cast olestorage.cpp:119: warning: use of old-style cast olestorage.cpp:128: warning: use of old-style cast olestorage.cpp:128: warning: use of old-style cast olestorage.cpp:129: warning: use of old-style cast olestorage.cpp:129: warning: use of old-style cast olestorage.cpp:129: warning: use of old-style cast olestorage.cpp: In member function `void wvWare::OLEStorage::close()': olestorage.cpp:148: warning: use of old-style cast olestorage.cpp:148: warning: use of old-style cast olestorage.cpp:148: warning: use of old-style cast olestorage.cpp:154: warning: use of old-style cast olestorage.cpp:154: warning: use of old-style cast olestorage.cpp:154: warning: use of old-style cast olestorage.cpp: In member function `std::list<std::string, std::allocator<std::string> > wvWare::OLEStorage::listDirectory()': olestorage.cpp:180: warning: use of old-style cast olestorage.cpp:180: warning: use of old-style cast olestorage.cpp:180: warning: use of old-style cast olestorage.cpp: In member function `bool wvWare::OLEStorage::enterDirectory(const std::string&)': olestorage.cpp:194: warning: use of old-style cast olestorage.cpp:195: warning: use of old-style cast olestorage.cpp:195: warning: use of old-style cast olestorage.cpp:196: warning: use of old-style cast olestorage.cpp:196: warning: use of old-style cast olestorage.cpp:207: warning: use of old-style cast olestorage.cpp:207: warning: use of old-style cast olestorage.cpp: In member function `void wvWare::OLEStorage::leaveDirectory()': olestorage.cpp:218: warning: use of old-style cast olestorage.cpp:218: warning: use of old-style cast olestorage.cpp:218: warning: use of old-style cast olestorage.cpp:221: warning: use of old-style cast olestorage.cpp:221: warning: use of old-style cast olestorage.cpp:221: warning: use of old-style cast olestorage.cpp: In member function `std::string wvWare::OLEStorage::path() const': olestorage.cpp:274: warning: use of old-style cast olestorage.cpp:274: warning: use of old-style cast olestorage.cpp:276: warning: use of old-style cast olestorage.cpp:276: warning: use of old-style cast if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -DPACKAGE=\"wv2\" -DVERSION=\"0.2.1\" -I. -I. -I.. -I../include -I.. -I. -I/usr/include/libgsf-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -Wold-style-cast -Wnon-virtual-dtor -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -march=pentium3 -O3 -fomit-frame-pointer -funroll-loops -ffast-math -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -Wold-style-cast -Wnon-virtual-dtor -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -march=pentium3 -O3 -fomit-frame-pointer -funroll-loops -ffast-math -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -MT word97_generated.lo -MD -MP -MF ".deps/word97_generated.Tpo" \ -c -o word97_generated.lo `test -f 'word97_generated.cpp' || echo './'`word97_generated.cpp; \ then mv ".deps/word97_generated.Tpo" ".deps/word97_generated.Plo"; \ else rm -f ".deps/word97_generated.Tpo"; exit 1; \ fi make[2]: *** [olestorage.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... g++ -DHAVE_CONFIG_H -DPACKAGE=\"wv2\" -DVERSION=\"0.2.1\" -I. -I. -I.. -I../include -I.. -I. -I/usr/include/libgsf-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -Wold-style-cast -Wnon-virtual-dtor -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -march=pentium3 -O3 -fomit-frame-pointer -funroll-loops -ffast-math -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -Wold-style-cast -Wnon-virtual-dtor -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -march=pentium3 -O3 -fomit-frame-pointer -funroll-loops -ffast-math -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -MT word97_generated.lo -MD -MP -MF .deps/word97_generated.Tpo -c word97_generated.cpp -fPIC -DPIC -o word97_generated.lo word97_generated.cpp:8169:2: warning: #warning is a GCC extension word97_generated.cpp:8169:2: warning: #warning "Couldn't generate reading code for SEPX::grpprl" word97_generated.cpp:8185:2: warning: #warning is a GCC extension word97_generated.cpp:8185:2: warning: #warning "Couldn't generate writing code for SEPX::grpprl" word97_generated.cpp:8206:2: warning: #warning is a GCC extension word97_generated.cpp:8206:2: warning: #warning "Can't compare SEPX::grpprl items" In file included from word97_generated.cpp:32: wvlog.h:41: error: `std::ios' is not a template wvlog.h:41: error: `std::ios' is not a template wvlog.h:75: error: `std::ios' is not a template wvlog.h:75: error: `std::ios' is not a template make[2]: *** [word97_generated.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/wv2-0.2.1/work/wv2-0.2.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/wv2-0.2.1/work/wv2-0.2.1' make: *** [all] Error 2 !!! ERROR: app-text/wv2-0.2.1 failed. !!! Function src_compile, Line 418, Exitcode 2 !!! emake failed My emerge info is as follows: Portage 2.0.50-r6 (default-x86-1.4, gcc-3.4.0, glibc-2.3.3_pre20040420-r0, 2.6.5) ================================================================= System uname: 2.6.5 i686 Pentium III (Katmai) Gentoo Base System version 1.4.10 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -fomit-frame-pointer -funroll-loops -ffast-math -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /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/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -fomit-frame-pointer -funroll-loops -ffast-math -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache fixpackages sandbox" GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X aalib alsa apache2 apm arts avi berkdb bonobo cdr crd crypt cups dga doc dvd encode esd foomaticdb gd gdbm gif gnome gtk gtk2 gtkhtml imagemagick imap imlib java jpeg kde libg++ libwww mad maildir mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres ppds python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tetex truetype usb x86 xml2 xmms xv zlib"
I didn't finally get around to compiling this with GCC 3.3.3 and it worked without a hitch, so it definitly appears to be a GCC 3.4 incompatiblity, which I suspected because of the nature of the error anyway.
REPHRASE: I DID finally get around to compiling this with GCC 3.3.3 and it worked without a hitch, so it definitly appears to be a GCC 3.4 incompatiblity, which I suspected because of the nature of the error anyway.
*** This bug has been marked as a duplicate of 50129 ***