Package: xplanet
Version: 1.2.0-7
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.

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.

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

> Automatic build of xplanet_1.2.0-7 on em64t by sbuild/amd64 0.53
....
> if g++ -DHAVE_CONFIG_H -I. -I. -I..  -DDATADIR=\"/usr/share/xplanet\"  
> -I/usr/include/freetype2 -I/usr/include -I/usr/include/pango-1.0 
> -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
>   -O3 -Wall  -g -O2 -MT Satellite.o -MD -MP -MF ".deps/Satellite.Tpo" -c -o 
> Satellite.o Satellite.cpp; \
>       then mv -f ".deps/Satellite.Tpo" ".deps/Satellite.Po"; else rm -f 
> ".deps/Satellite.Tpo"; exit 1; fi
> In file included from /usr/include/stdio.h:903,
>                  from libsgp4sdp4/sgp4sdp4.h:15,
>                  from Satellite.h:6,
>                  from Satellite.cpp:10:
> /usr/include/bits/stdio.h: In function 'int sgp4sdp4::vprintf(const char*, 
> __va_list_tag*)':
> /usr/include/bits/stdio.h:39: error: cannot convert 'sgp4sdp4::_IO_FILE*' to 
> 'FILE*' for argument '1' to 'int sgp4sdp4::vfprintf(FILE*, const char*, 
> __va_list_tag*)'
> /usr/include/bits/stdio.h: In function 'int sgp4sdp4::fgetc_unlocked(FILE*)':
> /usr/include/bits/stdio.h:56: error: invalid use of incomplete type 'struct 
> _IO_FILE'
> /usr/include/stdio.h:45: error: forward declaration of 'struct _IO_FILE'
> /usr/include/bits/stdio.h:56: error: invalid use of incomplete type 'struct 
> _IO_FILE'
> /usr/include/stdio.h:45: error: forward declaration of 'struct _IO_FILE'
> /usr/include/bits/stdio.h:56: error: cannot convert 'FILE*' to 
> 'sgp4sdp4::_IO_FILE*' for argument '1' to 'int 
> sgp4sdp4::__uflow(sgp4sdp4::_IO_FILE*)'
> /usr/include/bits/stdio.h:56: error: invalid use of incomplete type 'struct 
> _IO_FILE'
> /usr/include/stdio.h:45: error: forward declaration of 'struct _IO_FILE'
> /usr/include/bits/stdio.h: In function 'int sgp4sdp4::getc_unlocked(FILE*)':
> /usr/include/bits/stdio.h:66: error: invalid use of incomplete type 'struct 
> _IO_FILE'
> /usr/include/stdio.h:45: error: forward declaration of 'struct _IO_FILE'
> /usr/include/bits/stdio.h:66: error: invalid use of incomplete type 'struct 
> _IO_FILE'
> /usr/include/stdio.h:45: error: forward declaration of 'struct _IO_FILE'
> /usr/include/bits/stdio.h:66: error: cannot convert 'FILE*' to 
> 'sgp4sdp4::_IO_FILE*' for argument '1' to 'int 
> sgp4sdp4::__uflow(sgp4sdp4::_IO_FILE*)'
> /usr/include/bits/stdio.h:66: error: invalid use of incomplete type 'struct 
> _IO_FILE'
> /usr/include/stdio.h:45: error: forward declaration of 'struct _IO_FILE'
> /usr/include/bits/stdio.h: In function 'int sgp4sdp4::fputc_unlocked(int, 
> FILE*)':
> /usr/include/bits/stdio.h:91: error: invalid use of incomplete type 'struct 
> _IO_FILE'
> /usr/include/stdio.h:45: error: forward declaration of 'struct _IO_FILE'
> /usr/include/bits/stdio.h:91: error: invalid use of incomplete type 'struct 
> _IO_FILE'
> /usr/include/stdio.h:45: error: forward declaration of 'struct _IO_FILE'
> /usr/include/bits/stdio.h:91: error: cannot convert 'FILE*' to 
> 'sgp4sdp4::_IO_FILE*' for argument '1' to 'int 
> sgp4sdp4::__overflow(sgp4sdp4::_IO_FILE*, int)'
> /usr/include/bits/stdio.h:91: error: invalid use of incomplete type 'struct 
> _IO_FILE'
> /usr/include/stdio.h:45: error: forward declaration of 'struct _IO_FILE'
> /usr/include/bits/stdio.h: In function 'int sgp4sdp4::putc_unlocked(int, 
> FILE*)':
> /usr/include/bits/stdio.h:101: error: invalid use of incomplete type 'struct 
> _IO_FILE'
> /usr/include/stdio.h:45: error: forward declaration of 'struct _IO_FILE'
> /usr/include/bits/stdio.h:101: error: invalid use of incomplete type 'struct 
> _IO_FILE'
> /usr/include/stdio.h:45: error: forward declaration of 'struct _IO_FILE'
> /usr/include/bits/stdio.h:101: error: cannot convert 'FILE*' to 
> 'sgp4sdp4::_IO_FILE*' for argument '1' to 'int 
> sgp4sdp4::__overflow(sgp4sdp4::_IO_FILE*, int)'
> /usr/include/bits/stdio.h:101: error: invalid use of incomplete type 'struct 
> _IO_FILE'
> /usr/include/stdio.h:45: error: forward declaration of 'struct _IO_FILE'
> /usr/include/bits/stdio.h: In function 'int sgp4sdp4::feof_unlocked(FILE*)':
> /usr/include/bits/stdio.h:128: error: invalid use of incomplete type 'struct 
> _IO_FILE'
> /usr/include/stdio.h:45: error: forward declaration of 'struct _IO_FILE'
> /usr/include/bits/stdio.h: In function 'int sgp4sdp4::ferror_unlocked(FILE*)':
> /usr/include/bits/stdio.h:135: error: invalid use of incomplete type 'struct 
> _IO_FILE'
> /usr/include/stdio.h:45: error: forward declaration of 'struct _IO_FILE'
> make[4]: *** [Satellite.o] Error 1
> make[4]: Leaving directory `/build/tbm/xplanet-1.2.0/src'

--- src/Satellite.cpp~  2008-11-08 16:06:28.000000000 +0000
+++ src/Satellite.cpp   2008-11-08 16:07:31.000000000 +0000
@@ -1,4 +1,5 @@
 #include <clocale>
+#include <cstdio>
 #include <cstring>
 #include <iostream>
 using namespace std;

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