Package: gtkmathview
Version: 0.8.0-3
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 gtkmathview_0.8.0-3 on em64t by sbuild/amd64 0.53
...
> /bin/sh ../../libtool --tag=CXX --mode=compile g++-4.3 -DHAVE_CONFIG_H -I. 
> -I. -I../.. -I../../auto -I../../auto -I/usr/include/glib-2.0 
> -I/usr/lib/glib-2.0/include     -DGMV_MathView_DLL   -g -O2 -g -Wall -O2 -W 
> -Wall -c -o libcommon_la-AbstractLogger.lo `test -f 'AbstractLogger.cc' || 
> echo './'`AbstractLogger.cc
> mkdir .libs
>  g++-4.3 -DHAVE_CONFIG_H -I. -I. -I../.. -I../../auto -I../../auto 
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DGMV_MathView_DLL -g -O2 
> -g -Wall -O2 -W -Wall -c AbstractLogger.cc  -fPIC -DPIC -o 
> .libs/libcommon_la-AbstractLogger.o
> AbstractLogger.cc: In member function 'void AbstractLogger::out(LogLevelId, 
> const char*, ...) const':
> AbstractLogger.cc:52: error: 'snprintf' was not declared in this scope
> AbstractLogger.cc:54: error: 'vsnprintf' was not declared in this scope
> make[5]: *** [libcommon_la-AbstractLogger.lo] Error 1
> make[5]: Leaving directory `/build/tbm/gtkmathview-0.8.0/src/common'

--- src/common/AbstractLogger.cc~       2008-11-07 21:13:28.000000000 +0000
+++ src/common/AbstractLogger.cc        2008-11-07 21:13:34.000000000 +0000
@@ -19,6 +19,7 @@
 #include <config.h>
 
 #include <stdarg.h>
+#include <stdio.h>
 
 #include "AbstractLogger.hh"
 

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