Package: clucene-core
Version: 0.9.20-3
User: [EMAIL PROTECTED]
Usertags: ftbfs-gcc-4.4
Severity: important
Tags: patch
Your package causes other packages to fail 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.
> cd /home/tbm/src/strigi-0.5.11/obj-x86_64-linux-gnu/src/luceneindexer &&
> /usr/bin/g++ -DHAVE_CONFIG_H -Dclucene_EXPORTS -g -O2 -g -Wall -O2
> -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align
> -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new
> -fno-common -fexceptions -Wno-unused-parameter -fvisibility=hidden
> -fvisibility-inlines-hidden -fvisibility=default -O2 -g -fPIC
> -I/home/tbm/src/strigi-0.5.11/obj-x86_64-linux-gnu/src/luceneindexer
> -I/home/tbm/src/strigi-0.5.11/src/luceneindexer -I/home/tbm/src/strigi-0.5.11
> -I/home/tbm/src/strigi-0.5.11/obj-x86_64-linux-gnu
> -I/home/tbm/src/strigi-0.5.11/src/streamanalyzer
> -I/home/tbm/src/strigi-0.5.11/src/streams
> -I/home/tbm/src/strigi-0.5.11/obj-x86_64-linux-gnu/src/streams
> -I/home/tbm/src/strigi-0.5.11/src/streams/strigi -I/usr/lib -fPIC -o
> CMakeFiles/clucene.dir/jsgzipcompressstream.o -c
> /home/tbm/src/strigi-0.5.11/src/luceneindexer/jsgzipcompressstream.cpp
> In file included from
> /home/tbm/src/strigi-0.5.11/src/luceneindexer/jsgzipcompressstream.h:25,
> from
> /home/tbm/src/strigi-0.5.11/src/luceneindexer/jsgzipcompressstream.cpp:20:
> /usr/include/CLucene/util/bufferedstream.h: In member function 'void
> jstreams::BufferedInputStream<T>::resetBuffer()':
> /usr/include/CLucene/util/bufferedstream.h:54: error: there are no arguments
> to 'printf' that depend on a template parameter, so a declaration of 'printf'
> must be available
> /usr/include/CLucene/util/bufferedstream.h:54: note: (if you use
> '-fpermissive', G++ will accept your code, but allowing the use of an
> undeclared name is deprecated)
> make[2]: ***
> [src/luceneindexer/CMakeFiles/clucene.dir/jsgzipcompressstream.o] Error 1
--- /usr/include/CLucene/util/bufferedstream.h~ 2008-11-13 21:26:33.000000000
+0000
+++ /usr/include/CLucene/util/bufferedstream.h 2008-11-13 21:26:41.000000000
+0000
@@ -29,6 +29,7 @@
#include "streambase.h"
#include "inputstreambuffer.h"
#include <cassert>
+#include <cstdio>
namespace jstreams {
--
Martin Michlmayr
http://www.cyrius.com/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]