Package: openscenegraph
Version: 1.2.0-2
Usertags: ftbfs-gcc-4.3

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  In GCC 4.3, the C++ header
dependencies have been cleaned up.  The advantage of this is that
programs will compile faster.  The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC).  Some background of this can be found at
http://gcc.gnu.org/PR28080

You can reproduce this problem with gcc-snapshot (20070326-1 or higher)
from unstable.

> Automatic build of openscenegraph_1.2.0-2 on coconut0 by sbuild/ia64 0.49
...
> g++  -O2 -DPRODUCER_VERSION=\"1.1.0\" -DPRODUCER_VERSION_REVISION="1" 
> -DGLX_GLXEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES -fPIC -pthread  
> -I../..//include  -I/build/tbm/openscenegraph-1.2.0/OpenThreads/include  
> -I../..//include -I../. -c ../RenderSurface.cpp
> ../RenderSurface.cpp: In constructor 
> 'Producer::RenderSurface::RenderSurface()':
> ../RenderSurface.cpp:56: error: 'getenv' was not declared in this scope
> ../RenderSurface.cpp:67: error: 'atoi' was not declared in this scope
> ../RenderSurface.cpp:76: error: 'atoi' was not declared in this scope
> make[3]: *** [RenderSurface.o] Error 1

Below is a first patch but it's probably incomplete, sorry.

--- Producer/include/Producer/RenderSurface~    2007-04-02 20:04:00.000000000 
+0000
+++ Producer/include/Producer/RenderSurface     2007-04-02 20:04:06.000000000 
+0000
@@ -17,6 +17,7 @@
 
 #include <Producer/Export>
 
+#include <cstdlib>
 #include <map>
 #include <string>
 #include <iostream>
--- Producer/src/Version.cpp~   2007-04-02 20:05:23.000000000 +0000
+++ Producer/src/Version.cpp    2007-04-02 20:05:30.000000000 +0000
@@ -11,6 +11,7 @@
  * OpenSceneGraph Public License for more details.
  */
 
+#include <cstdlib>
 #include <string>
 #include <Producer/Version>
 
--- OpenSceneGraph/include/osg/ApplicationUsage~        2007-04-02 
20:08:02.000000000 +0000
+++ OpenSceneGraph/include/osg/ApplicationUsage 2007-04-02 20:08:09.000000000 
+0000
@@ -16,6 +16,7 @@
 
 #include <osg/Export>
 
+#include <cstdlib>
 #include <map>
 #include <string>
 #include <ostream>
--- OpenSceneGraph/include/osg/Geometry~        2007-04-02 20:11:40.000000000 
+0000
+++ OpenSceneGraph/include/osg/Geometry 2007-04-02 20:11:50.000000000 +0000
@@ -21,6 +21,8 @@
 #include <osg/Array>
 #include <osg/PrimitiveSet>
 
+#include <cstdlib>
+
 namespace osg {
 
 
--- OpenSceneGraph/src/osgText/DefaultFont.cpp~ 2007-04-02 20:42:51.000000000 
+0000
+++ OpenSceneGraph/src/osgText/DefaultFont.cpp  2007-04-02 20:42:59.000000000 
+0000
@@ -17,6 +17,7 @@
 #include "DefaultFont.h"
 
 #include <osg/Notify>
+#include <cstdlib>
 
 using namespace osgText;
 
--- OpenSceneGraph/src/osg/Notify.cpp~  2007-04-02 20:14:18.000000000 +0000
+++ OpenSceneGraph/src/osg/Notify.cpp   2007-04-02 20:14:23.000000000 +0000
@@ -11,6 +11,7 @@
  * OpenSceneGraph Public License for more details.
 */
 #include <osg/Notify>
+#include <cstdlib>
 #include <string>
 #include <iostream>
 #include <fstream>
--- OpenSceneGraph/src/osg/Program.cpp~ 2007-04-02 20:15:27.000000000 +0000
+++ OpenSceneGraph/src/osg/Program.cpp  2007-04-02 20:15:33.000000000 +0000
@@ -16,6 +16,7 @@
  * author:      Mike Weiblen 2006-03-25
 */
 
+#include <cstdlib>
 #include <fstream>
 #include <list>
 
--- OpenSceneGraph/src/osg/TexEnvFilter.cpp~    2007-04-02 20:17:23.000000000 
+0000
+++ OpenSceneGraph/src/osg/TexEnvFilter.cpp     2007-04-02 20:17:28.000000000 
+0000
@@ -13,6 +13,7 @@
 #include <osg/GLExtensions>
 #include <osg/TexEnvFilter>
 #include <osg/State>
+#include <cstdlib>
 
 using namespace osg;
 

-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to