[Debian-med-packaging] Bug#504891: FTBFS with GCC 4.4: missing #include

Martin Michlmayr tbm at cyrius.com
Fri Nov 7 20:04:20 UTC 2008

Package: aeskulap
Version: 0.2.2b1-2
User: debian-gcc at lists.debian.org
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 aeskulap_0.2.2b1-2 on em64t by sbuild/amd64 0.53
>  g++ -DHAVE_CONFIG_H -I. -I.. -DORBIT2=1 -pthread -I/usr/include/gconfmm-2.6 -I/usr/lib/gconfmm-2.6/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gconf/2 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -D_REENTRANT -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/atk-1.0 -g -O2 -g -Wall -O2 -c aconfiguration.cpp  -fPIC -DPIC -o .libs/aconfiguration.o
> In file included from aconfiguration.cpp:87:
> aconfiguration-gconf.cpp: In member function 'std::map<Glib::ustring, Aeskulap::Configuration::ServerData, std::less<Glib::ustring>, std::allocator<std::pair<const Glib::ustring, Aeskulap::Configuration::ServerData> > >* Aeskulap::Configuration::get_serverlist()':
> aconfiguration-gconf.cpp:129: error: 'snprintf' was not declared in this scope
> make[3]: *** [aconfiguration.lo] Error 1
> make[3]: Leaving directory `/build/tbm/aeskulap-0.2.2b1/configuration'

--- configuration/aconfiguration-gconf.cpp~	2008-11-07 19:31:00.000000000 +0000
+++ configuration/aconfiguration-gconf.cpp	2008-11-07 19:31:07.000000000 +0000
@@ -27,6 +27,7 @@
 #include <gconfmm.h>
+#include <cstdio>
 #include <iostream>
 namespace Aeskulap {

Martin Michlmayr

More information about the Debian-med-packaging mailing list