Package: einstein
Version: 2.0.dfsg.2-3
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).

You can reproduce this problem with gcc-snapshot (20070422-1 or higher)
from unstable. (Currently not available for i386, but for amd64 and
and ia64.  I hope to have i386 binaries in the archive in the near
future.)

> Automatic build of einstein_2.0.dfsg.2-3 on em64t by sbuild/amd64 0.53
...
> g++ -c -Wall -O6 compressor.cpp
> In file included from compressor.cpp:3:
> convert.h: In function 'std::wstring toString(const T&)':
> convert.h:21: error: must #include <typeinfo> before using typeid
> make[1]: *** [compressor.o] Error 1

--- mkres/convert.h~    2007-04-26 16:19:34.000000000 +0000
+++ mkres/convert.h     2007-04-26 16:19:42.000000000 +0000
@@ -5,6 +5,7 @@
 #include <iostream>
 #include <sstream>
 #include <string>
+#include <typeinfo>
 
 #include "exceptions.h"
 #include "unicode.h"
--- convert.h~  2007-04-26 16:20:45.000000000 +0000
+++ convert.h   2007-04-26 16:20:56.000000000 +0000
@@ -5,6 +5,7 @@
 #include <iostream>
 #include <sstream>
 #include <string>
+#include <typeinfo>
 
 #include "exceptions.h"
 #include "unicode.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