Package: libavg
Version: 0.8.0-1
User: [EMAIL PROTECTED]
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with the upcoming GCC 4.4.  Version 4.4
has not been released yet but I'm building with a snapshot in order
to find errors and give people an advance warning.

GCC 4.4 cleaned up some more C++ headers.  You always have to #include
headers directly and cannot rely for things to be included indirectly.

You can reproduce this problem with gcc-snapshot from unstable.

> Automatic build of libavg_0.8.0-1 on em64t by sbuild/amd64 0.53
...
> /bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. 
> -I../../../src/graphics -I../../src -I.. -I/usr/include/GraphicsMagick   
> -pthread    -Wno-invalid-offsetof -g -O2 -MT OGLHelper.lo -MD -MP -MF 
> .deps/OGLHelper.Tpo -c -o OGLHelper.lo ../../../src/graphics/OGLHelper.cpp
>  g++ -DHAVE_CONFIG_H -I. -I../../../src/graphics -I../../src -I.. 
> -I/usr/include/GraphicsMagick -pthread -Wno-invalid-offsetof -g -O2 -MT 
> OGLHelper.lo -MD -MP -MF .deps/OGLHelper.Tpo -c 
> ../../../src/graphics/OGLHelper.cpp  -fPIC -DPIC -o .libs/OGLHelper.o
> ../../../src/graphics/OGLHelper.cpp: In function 'void 
> avg::getGLVersion(int&, int&)':
> ../../../src/graphics/OGLHelper.cpp:171: error: 'sscanf' was not declared in 
> this scope
> ../../../src/graphics/OGLHelper.cpp: In function 'void 
> avg::getGLShadingLanguageVersion(int&, int&)':
> ../../../src/graphics/OGLHelper.cpp:187: error: 'sscanf' was not declared in 
> this scope
> make[4]: *** [OGLHelper.lo] Error 1
> make[4]: Leaving directory `/build/tbm/libavg-0.8.0/build2.5/src/graphics'
> make[3]: *** [all-recursive] Error 1

--- src/graphics/OGLHelper.cpp~ 2008-11-13 18:47:17.000000000 +0000
+++ src/graphics/OGLHelper.cpp  2008-11-13 18:47:24.000000000 +0000
@@ -33,6 +33,7 @@
 #endif
 
 #include <assert.h>
+#include <cstdio>
 #include <iostream>
 #include <sstream>
 #include <cstring>
--- src/graphics/FBOImage.cpp~  2008-11-13 18:47:53.000000000 +0000
+++ src/graphics/FBOImage.cpp   2008-11-13 18:47:59.000000000 +0000
@@ -25,6 +25,8 @@
 #include "../base/Logger.h"
 #include "../base/Exception.h"
 
+#include <cstdio>
+
 namespace avg {
 
 FBOImage::FBOImage(const IntPoint& size, PixelFormat pf, int precision, 

-- 
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