Package: apertium
Version: 3.0.7+1-2
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 apertium_3.0.7+1-2 on em64t by sbuild/amd64 0.53
...
> (cd .libs && rm -f libapertium3.la && ln -s ../libapertium3.la 
> libapertium3.la)
> if x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I. -I.. 
> -I/usr/include/lttoolbox-3.0 -I/usr/lib/lttoolbox-3.0/include 
> -I/usr/include/libxml2    -I/usr/include/lttoolbox-3.0 
> -I/usr/lib/lttoolbox-3.0/include -I/usr/include/libxml2    -Wall -ansi -O3 
> -mtune=nocona               -fomit-frame-pointer -funroll-loops -Wall -g -O0 
> -MT apertium_pretransfer.o -MD -MP -MF ".deps/apertium_pretransfer.Tpo" -c -o 
> apertium_pretransfer.o apertium_pretransfer.cc; \
>       then mv -f ".deps/apertium_pretransfer.Tpo" 
> ".deps/apertium_pretransfer.Po"; else rm -f ".deps/apertium_pretransfer.Tpo"; 
> exit 1; fi
> apertium_pretransfer.cc: In function 'void readAndWriteUntil(FILE*, FILE*, 
> int)':
> apertium_pretransfer.cc:49: error: 'feof' was not declared in this scope
> apertium_pretransfer.cc: In function 'void procWord(FILE*, FILE*)':
> apertium_pretransfer.cc:71: error: 'feof' was not declared in this scope
> apertium_pretransfer.cc: In function 'void processStream(FILE*, FILE*)':
> apertium_pretransfer.cc:117: error: 'feof' was not declared in this scope
> apertium_pretransfer.cc: In function 'int main(int, char**)':
> apertium_pretransfer.cc:164: error: 'stdin' was not declared in this scope
> apertium_pretransfer.cc:165: error: 'stdout' was not declared in this scope
> apertium_pretransfer.cc:169: error: 'fopen' was not declared in this scope
> apertium_pretransfer.cc:174: error: 'stdout' was not declared in this scope
> apertium_pretransfer.cc:178: error: 'fopen' was not declared in this scope
> apertium_pretransfer.cc:186: error: 'feof' was not declared in this scope
> make[3]: *** [apertium_pretransfer.o] Error 1
> make[3]: Leaving directory `/build/tbm/apertium-3.0.7+1/apertium'

--- apertium/apertium_pretransfer.cc~   2008-11-11 20:36:06.000000000 +0000
+++ apertium/apertium_pretransfer.cc    2008-11-11 20:36:14.000000000 +0000
@@ -16,6 +16,7 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  * 02111-1307, USA.
  */
+#include <cstdio>
 #include <cstdlib>
 #include <iostream>
 #include <libgen.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