Package: regina-normal
Version: 4.5.1-2
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with GCC 4.4, which has 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 or
gcc-4.4 from experimental.

> Automatic build of regina-normal_4.5.1-2 on em64t by sbuild/amd64 0.53
...
> if /bin/sh ../../libtool --silent --tag=CXX --mode=compile g++ 
> -DHAVE_CONFIG_H -I. -I. -I../../engine -I../../engine  -I/usr/include/libxml2 
>  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef 
> -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion 
> -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG 
> -DNO_DEBUG -O2 -g -O2 -Wformat-security -Wmissing-format-attribute  
> -fno-check-new -fno-common  -MT zstream.lo -MD -MP -MF ".deps/zstream.Tpo" -c 
> -o zstream.lo zstream.cpp; \
>       then mv -f ".deps/zstream.Tpo" ".deps/zstream.Plo"; else rm -f 
> ".deps/zstream.Tpo"; exit 1; fi
> In file included from zstream.cpp:29:
> ../../engine/utilities/zstream.h: In member function 'virtual std::streamsize 
> regina::ZBuffer::xsputn(const char*, std::streamsize)':
> ../../engine/utilities/zstream.h:412: warning: conversion to 'unsigned int' 
> from 'std::streamsize' may alter its value
> zstream.cpp: At global scope:
> zstream.cpp:33: error: 'EOF' was not declared in this scope
> zstream.cpp: In member function 'virtual std::streamsize 
> regina::ZBuffer::xsgetn(char*, std::streamsize)':
> zstream.cpp:37: warning: conversion to 'unsigned int' from 'std::streamsize' 
> may alter its value
> zstream.cpp:41: warning: conversion to 'unsigned int' from 'std::streamsize' 
> may alter its value
> make[4]: *** [zstream.lo] Error 1
> make[4]: Leaving directory `/build/tbm/regina-normal-4.5.1/engine/utilities'

--- engine/utilities/zstream.h~ 2009-04-29 19:13:26.000000000 +0000
+++ engine/utilities/zstream.h  2009-04-29 19:13:34.000000000 +0000
@@ -35,6 +35,7 @@
 #define __ZSTREAM_H
 #endif
 
+#include <cstdio>
 #include <iostream>
 #include <zlib.h>
 

-- 
Martin Michlmayr
http://www.cyrius.com/



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to