Package: sinfo
Version: 0.0.33-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-4.4/g++-4.4 from unstable.

> Automatic build of sinfo_0.0.33-2 on em64t by sbuild/amd64 0.53
...
> x86_64-linux-gnu-g++ -DPACKAGE_NAME=\"sinfo\" -DPACKAGE_TARNAME=\"sinfo\" 
> -DPACKAGE_VERSION=\"0.0.33\" -DPACKAGE_STRING=\"sinfo\ 0.0.33\" 
> -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"sinfo\" -DVERSION=\"0.0.33\" 
> -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_DLFCN_H=1 -DSIMPLE_USER_CACHE=1 
> -DCPUNO_ADJUST=1 -DNCURSES_OK=1 -DHAVEDEFAULTCOLORS=1 -DHAVE_DIRENT_H=1 
> -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_FCNTL_H=1 
> -DHAVE_LIMITS_H=1 -DHAVE_NETDB_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_STDLIB_H=1 
> -DHAVE_STRING_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SOCKET_H=1 
> -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UTMP_H=1 -DHAVE_GETOPT_H=1 
> -DTIME_WITH_SYS_TIME=1 -DHAVE_DECL_GETOPT=1 -DHAVE_LIBNSL=1 -DHAVE_FORK=1 
> -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDLIB_H=1 
> -DHAVE_MALLOC=1 -DRETSIGTYPE=void -DHAVE_GETOPT_LONG=1 -DHAVE_DAEMON=1 
> -DHAVE_LIBRESOL
> V=1 -DHAVE_HSTRERROR=1 -DHAVE_ATEXIT=1 -DHAVE_GETHOSTBYADDR=1 
> -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETPAGESIZE=1 -DHAVE_GETTIMEOFDAY=1 
> -DHAVE_INET_NTOA=1 -DHAVE_MEMSET=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 
> -DHAVE_STRERROR=1 -DHAVE_STRSTR=1 -DHAVE_UNAME=1 -I. -I../libmessage 
> -I../libmessageio -I../libsinfo    -g -O2 -MT sinfohtml.o -MD -MP -MF 
> .deps/sinfohtml.Tpo -c -o sinfohtml.o sinfohtml.cc
> sinfohtml.cc: In member function 'void SinfoHTML::printHTMLStatusLine(float, 
> float)':
> sinfohtml.cc:52: error: 'snprintf' was not declared in this scope
> sinfohtml.cc: In member function 'void SinfoHTML::printHTMLOneHost(int, const 
> Wsinfo&, float, float)':
> sinfohtml.cc:175: error: 'snprintf' was not declared in this scope
> sinfohtml.cc:245: error: 'snprintf' was not declared in this scope
> sinfohtml.cc:265: error: 'snprintf' was not declared in this scope
> sinfohtml.cc:281: error: 'snprintf' was not declared in this scope
> sinfohtml.cc:287: error: 'snprintf' was not declared in this scope
> sinfohtml.cc:294: error: 'snprintf' was not declared in this scope
> sinfohtml.cc:302: error: 'snprintf' was not declared in this scope
> sinfohtml.cc:315: error: 'snprintf' was not declared in this scope
> sinfohtml.cc:336: error: 'snprintf' was not declared in this scope
> make[2]: *** [sinfohtml.o] Error 1

--- sinfo/sinfohtml.cc~ 2009-10-05 12:53:07.000000000 +0000
+++ sinfo/sinfohtml.cc  2009-10-05 12:53:19.000000000 +0000
@@ -1,5 +1,6 @@
 #include <math.h>
 #include <unistd.h>
+#include <cstdio>
 #include <iostream>
 #include <iomanip>
 #include <string.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