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

Andreas Tille tillea at rki.de
Mon Nov 10 06:59:18 UTC 2008


Hi Alexander,

as you can see below there a one line patch is needed to let aeskulap
(namely version 0.2.2b1 which is packaged for Debian GNU/Linux) compile
with the upcoming gcc 4.4 compiler.  Please tell me whether you are
planing a release in the near future and I might consider packaging this
version or whether it might be better to apply the patch to the Debian
source to compile the package with gcc-4.4.

Kind regards and thanks for working on Aeskulap

       Andreas.

-- 
http://fam-tille.de

---------- Forwarded message ----------
Date: Fri, 7 Nov 2008 21:04:20 +0100
From: Martin Michlmayr <tbm at cyrius.com>
To: submit at bugs.debian.org
Subject: [Debian-med-packaging] Bug#504891: FTBFS with GCC 4.4: missing #include
Resent-Date: Fri, 07 Nov 2008 20:06:01 +0000
Resent-Date: Fri, 07 Nov 2008 20:06:04 +0000
Resent-From: Martin Michlmayr <tbm at cyrius.com>
Resent-To: debian-bugs-dist at lists.debian.org
Resent-cc: Debian-Med Packaging Team
  <debian-med-packaging at lists.alioth.debian.org>

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
http://www.cyrius.com/



_______________________________________________
Debian-med-packaging mailing list
Debian-med-packaging at lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/debian-med-packaging






More information about the Debian-med-packaging mailing list