Summary: | media-libs/openvrml-0.11.2 compile failed (strstream.h) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Elan Ruusamäe <glen> |
Component: | Current packages | Assignee: | Heinrich Wendel (RETIRED) <lanius> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | CC: | gentoo-bugs |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Proposed patch to fix strstream -> sstream issue |
Description
Elan Ruusamäe
2004-11-08 16:04:53 UTC
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
|