Package: highlight Version: 2.4.8-1.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 highlight_2.4.8-1.1 on em64t by sbuild/amd64 0.53 ... > c++ -O2 -DHL_DATA_DIR=\"/usr/share/highlight/\" -c platform_fs.cpp > c++ -O2 -DHL_DATA_DIR=\"/usr/share/highlight/\" -c ./re/Pattern.cpp > ./re/Pattern.cpp: In member function 'void Pattern::raiseError()': > ./re/Pattern.cpp:71: error: 'stderr' was not declared in this scope > ./re/Pattern.cpp:71: error: 'fprintf' was not declared in this scope > make[2]: *** [Pattern.o] Error 1 > make[2]: Leaving directory `/build/tbm/highlight-2.4.8/highlight' A patch is attached. -- Martin Michlmayr http://www.cyrius.com/
--- highlight/re/Pattern.cpp~ 2008-11-07 19:29:43.000000000 +0000 +++ highlight/re/Pattern.cpp 2008-11-07 19:29:52.000000000 +0000 @@ -25,6 +25,7 @@ #include "Pattern.h" #include "Matcher.h" +#include <cstdio> #include <cstring> #include <algorithm> #include <cctype>

