Package: qtscriptgenerator
Version: 0.1.0-2
User: [email protected]
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with GCC 4.4, which has 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 or
gcc-4.4 from experimental.

> Automatic build of qtscriptgenerator_0.1.0-2 on em64t by sbuild/amd64 0.53
...
> g++ -c -g -Wall -O2 -O2 -Wall -W -D_REENTRANT -DRXX_ALLOCATOR_INIT_0 
> -DQT_NO_DEBUG -DQT_XML_LIB -DQT_CORE_LIB -DQT_SHARED 
> -I/usr/share/qt4/mkspecs/linux-g++ -I../../generator 
> -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtXml -I/usr/include/qt4 
> -I../../generator -I../../generator 
> -I/build/tbm/qtscriptgenerator-0.1.0/generator/../common 
> -I../../generator/parser -I../../generator/parser/rpp 
> -I../../generator/parser/rpp -Irelease -I. -I../../generator -I. -o 
> release/preprocessor.o ../../generator/parser/rpp/preprocessor.cpp
> In file included from ../../generator/parser/rpp/pp.h:69,
>                  from ../../generator/parser/rpp/preprocessor.cpp:23:
> ../../generator/parser/rpp/pp-internal.h: In function 'void 
> rpp::_PP_internal::output_line(const std::string&, int, _OutputIterator)':
> ../../generator/parser/rpp/pp-internal.h:44: error: there are no arguments to 
> 'snprintf' that depend on a template parameter, so a declaration of 
> 'snprintf' must be available
> ../../generator/parser/rpp/pp-internal.h:44: note: (if you use 
> '-fpermissive', G++ will accept your code, but allowing the use of an 
> undeclared name is deprecated)
> In file included from ../../generator/parser/rpp/pp.h:74,
>                  from ../../generator/parser/rpp/preprocessor.cpp:23:
> ../../generator/parser/rpp/pp-macro-expander.h: In member function 
> '_InputIterator rpp::pp_macro_expander::operator()(_InputIterator, 
> _InputIterator, _OutputIterator)':
> ../../generator/parser/rpp/pp-macro-expander.h:233: error: there are no 
> arguments to 'snprintf' that depend on a template parameter, so a declaration 
> of 'snprintf' must be available
> In file included from ../../generator/parser/rpp/pp.h:76,
>                  from ../../generator/parser/rpp/preprocessor.cpp:23:
> ../../generator/parser/rpp/pp-engine-bits.h: In member function 'void 
> rpp::pp::file(const std::string&, _OutputIterator)':
> ../../generator/parser/rpp/pp-engine-bits.h:50: error: there are no arguments 
> to 'fopen' that depend on a template parameter, so a declaration of 'fopen' 
> must be available
> ../../generator/parser/rpp/pp-engine-bits.h: In member function 'void 
> rpp::pp::file(FILE*, _OutputIterator)':
> ../../generator/parser/rpp/pp-engine-bits.h:80: error: there are no arguments 
> to 'feof' that depend on a template parameter, so a declaration of 'feof' 
> must be available
> ../../generator/parser/rpp/pp-engine-bits.h:82: error: there are no arguments 
> to 'fread' that depend on a template parameter, so a declaration of 'fread' 
> must be available
> ../../generator/parser/rpp/pp-engine-bits.h:86: error: there are no arguments 
> to 'fclose' that depend on a template parameter, so a declaration of 'fclose' 
> must be available
> In file included from ../../generator/parser/rpp/pp.h:76,
>                  from ../../generator/parser/rpp/preprocessor.cpp:23:
> ../../generator/parser/rpp/pp-engine-bits.h: In member function 'FILE* 
> rpp::pp::find_include_file(const std::string&, std::string*, 
> rpp::pp::INCLUDE_POLICY, bool) const':
> ../../generator/parser/rpp/pp-engine-bits.h:240: error: 'fopen' was not 
> declared in this scope
> ../../generator/parser/rpp/pp-engine-bits.h:253: error: 'fopen' was not 
> declared in this scope
> ../../generator/parser/rpp/pp-engine-bits.h:279: error: 'fopen' was not 
> declared in this scope
> make[4]: *** [release/preprocessor.o] Error 1
> make[4]: Leaving directory 
> `/build/tbm/qtscriptgenerator-0.1.0/obj-x86_64-linux-gnu/generator'

--- generator/parser/rpp/pp-engine-bits.h~      2009-04-29 17:22:55.000000000 
+0000
+++ generator/parser/rpp/pp-engine-bits.h       2009-04-29 17:23:03.000000000 
+0000
@@ -15,6 +15,8 @@
 #ifndef PP_ENGINE_BITS_H
 #define PP_ENGINE_BITS_H
 
+#include <cstdio>
+
 namespace rpp {
 
 inline std::string pp::fix_file_path(std::string const &filename) const
--- generator/parser/rpp/pp-internal.h~ 2009-04-29 17:23:23.000000000 +0000
+++ generator/parser/rpp/pp-internal.h  2009-04-29 17:23:30.000000000 +0000
@@ -16,6 +16,7 @@
 #define PP_INTERNAL_H
 
 #include <algorithm>
+#include <cstdio>
 
 namespace rpp {
 

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