Package: obby
Version: 0.4.1-2
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 obby_0.4.1-2 on coconut0 by sbuild/ia64 0.49
...
> ../../inc/format_string.hpp:75: error: 'strtol' was not declared in this scope
> make[3]: *** [libserialise_la-token.lo] Error 1

--- inc/format_string.hpp~      2007-04-02 19:48:45.000000000 +0000
+++ inc/format_string.hpp       2007-04-02 19:48:51.000000000 +0000
@@ -19,6 +19,7 @@
 #ifndef _OBBY_FORMATSTRING_HPP_
 #define _OBBY_FORMATSTRING_HPP_
 
+#include <cstdlib>
 #include <string>
 #include <vector>
 #include <sstream>
--- inc/zeroconf.hpp~   2007-04-02 19:52:04.000000000 +0000
+++ inc/zeroconf.hpp    2007-04-02 19:52:10.000000000 +0000
@@ -21,6 +21,7 @@
 
 #include <string>
 #include <map>
+#include <memory>
 
 #include <sigc++/signal.h>
 #include <net6/non_copyable.hpp>
--- inc/document_info.hpp~      2007-04-02 19:55:00.000000000 +0000
+++ inc/document_info.hpp       2007-04-02 19:55:09.000000000 +0000
@@ -21,6 +21,7 @@
 
 #include <sigc++/signal.h>
 #include <net6/object.hpp>
+#include <algorithm>
 #include "position.hpp"
 #include "ptr_iterator.hpp"
 #include "format_string.hpp"
--- src/colour.cpp~     2007-04-02 19:56:53.000000000 +0000
+++ src/colour.cpp      2007-04-02 19:56:59.000000000 +0000
@@ -16,6 +16,7 @@
  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+#include <cstdlib>
 #include <sstream>
 #include "colour.hpp"
 

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