[Box Backup] [Martin Michlmayr] Bug#526152: FTBFS with GCC 4.4: missing #include

Reinhard Tartler boxbackup at boxbackup.org
Wed Apr 29 18:06:03 BST 2009


--=-=-=


Hello boxbackup developers.

it seems that I forgot one include in the last round of patches that I
forwarded to you. Please see the attached mail.

regards,
        Reinhar


--=-=-=
Content-Type: message/rfc822
Content-Disposition: inline

Return-path: <debbugs at rietz.debian.org>
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on apollon.tauware.de
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=AWL,RCVD_IN_DNSWL_LOW
	autolearn=disabled version=3.2.4
Envelope-to: siretart at tauware.de
Delivery-date: Wed, 29 Apr 2009 18:34:28 +0200
Received: from rietz.debian.org ([140.211.166.43])
	by vserver163.int-colo-nuernberg.priv with esmtp (Exim 4.69)
	(envelope-from <debbugs at rietz.debian.org>)
	id 1LzCjr-0001Jd-Co
	for siretart at tauware.de; Wed, 29 Apr 2009 18:34:27 +0200
Received: from debbugs by rietz.debian.org with local (Exim 4.63)
	(envelope-from <debbugs at rietz.debian.org>)
	id 1LzCfc-0005z0-A0; Wed, 29 Apr 2009 16:30:04 +0000
X-Loop: owner at bugs.debian.org
Subject: Bug#526152: FTBFS with GCC 4.4: missing #include
Reply-To: Martin Michlmayr <tbm at cyrius.com>, 526152 at bugs.debian.org
Resent-From: Martin Michlmayr <tbm at cyrius.com>
Resent-To: debian-bugs-dist at lists.debian.org
Resent-CC: Reinhard Tartler <siretart at tauware.de>
Resent-Date: Wed, 29 Apr 2009 16:30:02 +0000
Resent-Message-ID: <handler.526152.B.124102242520536 at bugs.debian.org>
X-Debian-PR-Message: report 526152
X-Debian-PR-Package: boxbackup
X-Debian-PR-Keywords: patch
Received: via spool by submit at bugs.debian.org id=B.124102242520536
          (code B ref -1); Wed, 29 Apr 2009 16:30:02 +0000
Received: (at submit) by bugs.debian.org; 29 Apr 2009 16:27:05 +0000
Received: from sorrow.cyrius.com ([65.19.161.204])
	by rietz.debian.org with esmtp (Exim 4.63)
	(envelope-from <tbm at cyrius.com>)
	id 1LzCcj-0005Kr-LI
	for submit at bugs.debian.org; Wed, 29 Apr 2009 16:27:05 +0000
Received: by sorrow.cyrius.com (Postfix, from userid 10)
	id 0FC3BD8D1; Wed, 29 Apr 2009 16:27:05 +0000 (UTC)
Received: by deprecation.cyrius.com (Postfix, from userid 1000)
	id 4BB5D150FBA; Wed, 29 Apr 2009 18:26:51 +0200 (CEST)
Date: Wed, 29 Apr 2009 18:26:51 +0200
From: Martin Michlmayr <tbm at cyrius.com>
To: submit at bugs.debian.org
Message-ID: <20090429162651.GB21276 at deprecation.cyrius.com>
References: <20090427150237.5EBBE460DB at em64t.snowman.net>
In-Reply-To: <20090427150237.5EBBE460DB at em64t.snowman.net>
User-Agent: Mutt/1.5.19 (2009-01-05)
Delivered-To: submit at bugs.debian.org
Resent-Sender: Debian BTS <debbugs at rietz.debian.org>
Resent-Date: Wed, 29 Apr 2009 16:30:04 +0000
X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.1.5
MIME-Version: 1.0

Package: boxbackup
Version: 0.11~rc3~r2502-1
User: debian-gcc at 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-snapshot from unstable or
gcc-4.4 from experimental.


> Automatic build of boxbackup_0.11~rc3~r2502-1 on em64t by sbuild/amd64 0.53
...
>   [CXX]     SSLLib.cpp
>   [CXX]     ServerControl.cpp
> ServerControl.cpp: In function 'bool KillServer(int, bool)':
> ServerControl.cpp:203: error: 'printf' was not declared in this scope
> ServerControl.cpp:206: error: 'printf' was not declared in this scope
> ServerControl.cpp:207: error: 'stdout' was not declared in this scope
> ServerControl.cpp:207: error: 'fflush' was not declared in this scope
> ServerControl.cpp:216: error: 'printf' was not declared in this scope
> ServerControl.cpp:220: error: 'printf' was not declared in this scope
> ServerControl.cpp:223: error: 'stdout' was not declared in this scope
> ServerControl.cpp:223: error: 'fflush' was not declared in this scope
> make[3]: *** [../../release/lib/server/ServerControl.o] Error 1
> make[3]: Leaving directory `/build/tbm/boxbackup-0.11~rc3~r2502/lib/server'
> make[2]: *** [dep_modules] Error 2

--- lib/server/ServerControl.cpp~	2009-04-29 16:18:00.000000000 +0000
+++ lib/server/ServerControl.cpp	2009-04-29 16:18:39.000000000 +0000
@@ -1,5 +1,6 @@
 #include "Box.h"
 
+#include <stdio.h>
 #include <errno.h>
 
 #ifdef HAVE_SYS_TYPES_H

-- 
Martin Michlmayr
http://www.cyrius.com/




--=-=-=



-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4

--=-=-=--




More information about the Boxbackup mailing list