Package: xapian-core
Version: 1.0.7-4
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.

There are two problems:

1) 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.

2) GCC 4.4 will introduce better checks in the preprocessor.  The
problem is pretty obvious: you're using a #elif without any condition
when you really want a #else.

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

> Automatic build of xapian-core_1.0.7-4 on em64t by sbuild/amd64 0.53
...
> /bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. 
> -I../common -I../include -I./include -I../languages -Ilanguages 
> -I../queryparser    -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual 
> -Wcast-align -Wno-long-long -Wformat-security -Wconversion -fno-gnu-keywords 
> -Wundef -Wshadow -Winit-self -Wstrict-overflow=5 -fvisibility=hidden -O2 -c 
> -o backends/flint/flint_version.lo ../backends/flint/flint_version.cc
>  g++ -DHAVE_CONFIG_H -I. -I.. -I../common -I../include -I./include 
> -I../languages -Ilanguages -I../queryparser -Wall -W -Wredundant-decls 
> -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security 
> -Wconversion -fno-gnu-keywords -Wundef -Wshadow -Winit-self 
> -Wstrict-overflow=5 -fvisibility=hidden -O2 -c 
> ../backends/flint/flint_version.cc  -fPIC -DPIC -o 
> backends/flint/.libs/flint_version.o
> ../backends/flint/flint_version.cc: In member function 'void 
> FlintVersion::read_and_check(bool)':
> ../backends/flint/flint_version.cc:140: error: 'rename' was not declared in 
> this scope
> make[3]: *** [backends/flint/flint_version.lo] Error 1
> make[3]: Leaving directory `/build/tbm/xapian-core-1.0.7/build'

--- backends/flint/flint_version.cc~    2008-11-12 07:19:04.000000000 +0000
+++ backends/flint/flint_version.cc     2008-11-12 07:19:15.000000000 +0000
@@ -24,6 +24,8 @@
 
 #include <xapian/error.h>
 
+#include <cstdio>
+
 #include "flint_io.h"
 #include "flint_version.h"
 #include "stringutils.h" // For STRINGIZE() and CONST_STRLEN().
--- bin/quartzdump.cc~  2008-11-12 07:29:45.000000000 +0000
+++ bin/quartzdump.cc   2008-11-12 07:29:53.000000000 +0000
@@ -25,6 +25,7 @@
 #include "btree.h"
 #include "bcursor.h"
 #include "quartz_types.h"
+#include <cstdio>
 #include <iostream>
 #include <vector>
 #include <string>
--- bin/xapian-progsrv.cc~      2008-11-12 07:30:59.000000000 +0000
+++ bin/xapian-progsrv.cc       2008-11-12 07:31:06.000000000 +0000
@@ -24,6 +24,7 @@
 
 #include "gnu_getopt.h"
 
+#include <cstdio>
 #include <cstdlib>
 #include <iostream>
 #include <string>
--- bin/xapian-tcpsrv.cc~       2008-11-12 07:31:18.000000000 +0000
+++ bin/xapian-tcpsrv.cc        2008-11-12 07:31:23.000000000 +0000
@@ -26,6 +26,7 @@
 
 #include "safeerrno.h"
 
+#include <cstdio>
 #include <iostream>
 #include <string>
 
--- common/serialise-double.cc~ 2008-11-12 07:23:19.000000000 +0000
+++ common/serialise-double.cc  2008-11-12 07:23:25.000000000 +0000
@@ -56,7 +56,7 @@
 # define MAX_MANTISSA_BYTES ((DBL_MANT_DIG + 1 + 1) / 2)
 # define MAX_EXP ((DBL_MAX_EXP + 1) / 2)
 # define MAX_MANTISSA (1 << ((DBL_MAX_EXP & 1) * 4))
-#elif
+#else
 # error FLT_RADIX is a value not currently handled (not 2 or 16)
 // # define MAX_MANTISSA_BYTES (sizeof(double) + 1)
 #endif
--- examples/delve.cc~  2008-11-12 07:31:55.000000000 +0000
+++ examples/delve.cc   2008-11-12 07:32:02.000000000 +0000
@@ -25,6 +25,7 @@
 #include <xapian.h>
 
 #include <algorithm>
+#include <cstdio>
 #include <iostream>
 #include <vector>
 
--- examples/quest.cc~  2008-11-12 07:32:46.000000000 +0000
+++ examples/quest.cc   2008-11-12 07:32:57.000000000 +0000
@@ -24,6 +24,7 @@
 
 #include <stdlib.h>
 
+#include <cstdio>
 #include <iostream>
 
 #include "gnu_getopt.h"

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