Package: freemat
Version: 3.6+dfsg-3
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 freemat_3.6+dfsg-3 on em64t by sbuild/amd64 0.53
...
> mv -f .deps/File.Tpo .deps/File.Po
> g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
> -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"FreeMat\" 
> -DVERSION=\"3.6\" -DHAVE_CURSES_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 
> -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
> -DHAVE_PORTAUDIO19=1 -DHAVE_PCRE=1 -DHAVE_AVCALL=1 -DHAVE_UMFPACK=1 
> -DHAVE_FFTWF=1 -DHAVE_FFTW=1 -DHAVE_LIBINTL_H=1 -DHAVE_MALLOC_H=1 
> -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 
> -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_STDINT_H=1 
> -DHAVE_SYS_SYSCTL_H=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_DRAND48=1 -DHAVE_SQRT=1 
> -DHAVE_MEMSET=1 -DHAVE_POSIX_MEMALIGN=1 -DHAVE_MEMALIGN=1 
> -DHAVE_CLOCK_GETTIME=1 -DHAVE_SYSCTL=1 -DHAVE_ABORT=1 -DHAVE_PROFILE=1 
> -DHAVE_CURSES_H=1 -I. -I../../libs/libXP -I../../libs/libMex 
> -I../../libs/libMatC -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore 
> -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL 
> -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtXml 
> -I/usr/include/qt4/QtSvg      -g -O2 -I/usr/include/suitesparse -MT IEEEFP.o 
> -MD -MP -MF .deps/IEEEFP.Tpo -c -o IEEEFP.o IEEEFP.cpp
> IEEEFP.cpp: In function 'void ToHexString(float, char*)':
> IEEEFP.cpp:132: error: 'sprintf' was not declared in this scope
> IEEEFP.cpp: In function 'void ToHexString(double, char*)':
> IEEEFP.cpp:144: error: 'sprintf' was not declared in this scope
> IEEEFP.cpp:146: error: 'sprintf' was not declared in this scope
> make[4]: *** [IEEEFP.o] Error 1
> make[4]: Leaving directory `/build/tbm/freemat-3.6+dfsg/libs/libFreeMat'

--- libs/libFreeMat/IEEEFP.cpp~ 2008-11-09 18:29:42.000000000 +0000
+++ libs/libFreeMat/IEEEFP.cpp  2008-11-09 18:29:47.000000000 +0000
@@ -18,6 +18,8 @@
  */
 #include "IEEEFP.hpp"
 
+#include <cstdio>
+
 static bool endianDetected = false;
 static bool bigEndian = false;
 

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