Package: lurker
Version: 2.1-7
Usertags: ftbfs-gcc-4.3
Tags: patch

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  In GCC 4.3, the C++ header
dependencies have been cleaned up.  The advantage of this is that
programs will compile faster.  The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC).  Some background of this can be found at
http://gcc.gnu.org/PR28080

You can reproduce this problem with gcc-snapshot (20070326-1 or higher)
from unstable.


> Automatic build of lurker_2.1-7 on coconut0 by sbuild/ia64 0.49
...
> make[3]: Entering directory `/build/tbm/lurker-2.1/index'
> if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../common -I../libesort 
> -I/usr/include/kde   -I/usr/include/qt3 -MT Index.o -MD -MP -MF 
> ".deps/Index.Tpo" -c -o Index.o Index.cpp; \
>       then mv -f ".deps/Index.Tpo" ".deps/Index.Po"; else rm -f 
> ".deps/Index.Tpo"; exit 1; fi
> Index.cpp: In member function 'int Index::index_id(bool, time_t, bool&)':
> Index.cpp:284: error: 'random' was not declared in this scope
> make[3]: *** [Index.o] Error 1

--- index/Index.cpp~    2007-04-02 13:35:28.000000000 +0000
+++ index/Index.cpp     2007-04-02 13:35:36.000000000 +0000
@@ -44,6 +44,7 @@
 
 #include "Index.h"
 
+#include <cstdlib>
 #include <string>
 #include <vector>
 #include <iostream>
--- prune/prune.cpp~    2007-04-02 13:36:16.000000000 +0000
+++ prune/prune.cpp     2007-04-02 13:36:28.000000000 +0000
@@ -37,6 +37,7 @@
 
 #include <iostream>
 
+#include <cstdlib>
 #include <cstring>
 #include <cerrno>
 #include <ctime>
--- prune/attach.cpp~   2007-04-02 13:38:14.000000000 +0000
+++ prune/attach.cpp    2007-04-02 13:38:22.000000000 +0000
@@ -27,6 +27,7 @@
 #include "PTable.h"
 #include <Keys.h>
 
+#include <cstdlib>
 #include <iostream>
 
 using namespace std;
--- render/attach.cpp~  2007-04-02 13:39:44.000000000 +0000
+++ render/attach.cpp   2007-04-02 13:39:52.000000000 +0000
@@ -35,6 +35,7 @@
 #include "commands.h"
 #include "Summary.h"
 
+#include <cstdlib>
 #include <iostream>
 
 using std::cout;
--- render/parse.cpp~   2007-04-02 13:40:40.000000000 +0000
+++ render/parse.cpp    2007-04-02 13:40:46.000000000 +0000
@@ -24,6 +24,7 @@
 
 #define _FILE_OFFSET_BITS 64
 
+#include <cstdlib>
 #include <iostream>
 
 #include "parse.h"
--- render/jump.cpp~    2007-04-02 13:40:53.000000000 +0000
+++ render/jump.cpp     2007-04-02 13:41:15.000000000 +0000
@@ -27,6 +27,7 @@
 #include "parse.h"
 
 #include <ctime>
+#include <cstdlib>
 #include <cstring>
 
 int main()
--- render/keyword.cpp~ 2007-04-02 13:41:21.000000000 +0000
+++ render/keyword.cpp  2007-04-02 13:41:27.000000000 +0000
@@ -27,6 +27,7 @@
 #include <Keys.h>
 #include "parse.h"
 
+#include <cstdlib>
 #include <set>
 #include <vector>
 

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