g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../lib -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -c ScriptObject.cpp -fPIC -DPIC -o .libs/ScriptObject.lo g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../lib -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -c ScriptObject.cpp -o ScriptObject.o >/dev/null 2>&1 mv -f .libs/ScriptObject.lo ScriptObject.lo /bin/sh ../../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../lib -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -c VrmlNodeScript.cpp rm -f .libs/VrmlNodeScript.lo g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../lib -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -c VrmlNodeScript.cpp -fPIC -DPIC -o .libs/VrmlNodeScript.lo distcc[1022] ERROR: compile (null) on localhost failed VrmlNodeScript.cpp:36:26: strstream.h: No such file or directory In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3/backward/iostream.h:31, from field.h:25, from vrml97node.h:27, from VrmlNodeScript.h:30, from VrmlNodeScript.cpp:38: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This fileincludes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. distcc[1021] ERROR: compile VrmlNodeScript.cpp on localhost failed make[4]: *** [VrmlNodeScript.lo] Error 1 make[4]: Leaving directory `/var/tmp/portage/openvrml-0.11.2/work/openvrml-0.11.2/src/openvrml/OpenVRML' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/openvrml-0.11.2/work/openvrml-0.11.2/src/openvrml' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/openvrml-0.11.2/work/openvrml-0.11.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/openvrml-0.11.2/work/openvrml-0.11.2' make: *** [all-recursive-am] Error 2 !!! ERROR: media-libs/openvrml-0.11.2 failed. !!! Function src_compile, Line 35, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. emerge =media-libs/openvrml-0.11.2 Portage 2.0.51-r3 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r2, 2.4.22-1.2115.nptlsmp i686) ================================================================= System uname: 2.4.22-1.2115.nptlsmp i686 Intel(R) Xeon(TM) CPU 2.80GHz Gentoo Base System version 1.4.16 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache distcc distlocks noinfo sandbox userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.linux.ee/pub/gentoo/distfiles http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.linux.no/ ftp://gentoo.linux.no/pub/gentoo/ http://ftp.easynet.nl/mirror/gentoo/" MAKEOPTS="-j22" PKGDIR="/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/gentoo/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X alsa apache2 apm arts artswrappersuid avi bitmap-fonts chroot crypt cups dga directfb divx4linux dvd encode flac foomaticdb fortran ggi gif gphoto2 gpm gstreamer gtk2 imlib jpeg kde libg++ libwww lirc mad maildir memlimit mmx mng motif mozilla mpeg ncurses oggvorbis opengl oss pam perl png pthreads qt quicktime sdl slang spell sse ssl svg tiff truetype wmf x86 xinerama xml2 xv xvid zlib video_cards_rage128 linguas_et"
after running $ sed -i 's/<strstream.h>/<sstream>/' *.cpp on sources, i get another error: g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../lib -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -c VrmlScene.cpp -fPIC -DPIC In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3/backward/iostream.h:31, from field.h:25, from vrml97node.h:27, from VrmlScene.h:26, from VrmlScene.cpp:29: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This fileincludes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. VrmlScene.cpp: In static member function `static const VrmlMFNode VrmlScene::readString(const char*, VrmlNamespace*)': VrmlScene.cpp:423: error: `istrstream' undeclared (first use this function) VrmlScene.cpp:423: error: (Each undeclared identifier is reported only once for each function it appears in.) VrmlScene.cpp:423: error: parse error before `(' token VrmlScene.cpp:430: error: `istrstm' undeclared (first use this function) make: *** [VrmlScene.lo] Error 1
please try openvrml-0.14.3
openvrml-0.14.3 compiles fine, but the fix to make openvrml-0.11.2 compile cleanly is trivial, and might as well be added to the ebuild.
Created attachment 49006 [details, diff] Proposed patch to fix strstream -> sstream issue