Debian Bug report logs - #417114
FTBFS with GCC 4.3: missing #includes

version graph

Package: attal; Maintainer for attal is Debian Games Team <pkg-games-devel@lists.alioth.debian.org>; Source for attal is src:attal (PTS, buildd, popcon).

Reported by: Martin Michlmayr <tbm@cyrius.com>

Date: Sun, 1 Apr 2007 16:03:15 UTC

Severity: important

Tags: patch

Found in version attal/0.9.2-1.2

Fixed in versions attal/1.0~rc1+cvs20080318-2, attal/0.9.2-1.3

Done: Philipp Kern <pkern@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Pascal Audoux <audoux@attal-thegame.org>, Raphael Goulais <rafou@debian.org>:
Bug#417114; Package attal. (full text, mbox, link).


Acknowledgement sent to Martin Michlmayr <tbm@cyrius.com>:
New Bug report received and forwarded. Copy sent to Pascal Audoux <audoux@attal-thegame.org>, Raphael Goulais <rafou@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Martin Michlmayr <tbm@cyrius.com>
To: submit@bugs.debian.org
Subject: FTBFS with GCC 4.3: missing #includes
Date: Sun, 1 Apr 2007 17:02:30 +0100
Package: attal
Version: 0.9.2-1.2
Usertags: ftbfs-gcc-4.3
Tags: patch

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  In GCC 4.3, the C++ header
dependencies have been cleaned up.  The advantage of this is that
programs will compile faster.  The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC).  Some background of this can be found at
http://gcc.gnu.org/PR28080

You can reproduce this problem with gcc-snapshot from unstable.


> Automatic build of attal_0.9.2-1.2 on coconut0 by sbuild/ia64 0.49
...
> g++ -c -pipe -Wall -W -O2 -D_REENTRANT -fPIC  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I.. -I/usr/include/qt3 -o genericMapCreature.o genericMapCreature.cpp
> In file included from ../libCommon/dataTheme.h:44,
>                  from genericMapCreature.cpp:33:
> ../libCommon/genericBase.h: In member function 'virtual void GenericBase::enter(GenericLord*)':
> ../libCommon/genericBase.h:69: warning: deprecated conversion from string constant to 'char*'
> ../libCommon/genericBase.h: In member function 'virtual void GenericBase::out(GenericLord*)':
> ../libCommon/genericBase.h:78: warning: deprecated conversion from string constant to 'char*'
> genericMapCreature.cpp: In member function 'void GenericMapCreature::grow()':
> genericMapCreature.cpp:319: error: 'rand' was not declared in this scope
> make[2]: *** [genericMapCreature.o] Error 1
> make[2]: Leaving directory `/build/tbm/attal-0.9.2/libCommon'


--- libCommon/genericMapCreature.cpp~	2007-04-01 15:44:19.000000000 +0000
+++ libCommon/genericMapCreature.cpp	2007-04-01 15:44:37.000000000 +0000
@@ -27,6 +27,7 @@
 #include "genericMapCreature.h"
 
 // generic include files
+#include <cstdlib>
 // include files for QT
 #include <qstring.h>
 // application specific include files

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



Severity set to `important' from `normal' Request was from Matthias Klose <doko@cs.tu-berlin.de> to control@bugs.debian.org. (Tue, 29 May 2007 09:30:45 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Raphael Goulais <rafou@debian.org>:
Bug#417114; Package attal. (full text, mbox, link).


Message #10 received at 417114@bugs.debian.org (full text, mbox, reply):

From: Philipp Kern <pkern@debian.org>
To: 417114@bugs.debian.org
Subject: NMU diff for attal 0.9.2-1.3
Date: Sun, 16 Mar 2008 23:27:42 +0100
[Message part 1 (text/plain, inline)]
Diff attached.

Kind regards,
Philipp Kern
-- 
 .''`.  Philipp Kern                             Debian Developer
: :' :  http://philkern.de                       Debian Release Assistant
`. `'   xmpp:phil@0x539.de
  `-    finger pkern/key@db.debian.org
[attal_0.9.2-1.3.debdiff (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]

Reply sent to Philipp Kern <pkern@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Martin Michlmayr <tbm@cyrius.com>:
Bug acknowledged by developer. (full text, mbox, link).


Message #15 received at 417114-close@bugs.debian.org (full text, mbox, reply):

From: Philipp Kern <pkern@debian.org>
To: 417114-close@bugs.debian.org
Subject: Bug#417114: fixed in attal 0.9.2-1.3
Date: Sun, 16 Mar 2008 22:32:02 +0000
Source: attal
Source-Version: 0.9.2-1.3

We believe that the bug you reported is fixed in the latest version of
attal, which is due to be installed in the Debian FTP archive:

attal_0.9.2-1.3.diff.gz
  to pool/main/a/attal/attal_0.9.2-1.3.diff.gz
attal_0.9.2-1.3.dsc
  to pool/main/a/attal/attal_0.9.2-1.3.dsc
attal_0.9.2-1.3_amd64.deb
  to pool/main/a/attal/attal_0.9.2-1.3_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 417114@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Philipp Kern <pkern@debian.org> (supplier of updated attal package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun, 16 Mar 2008 22:57:48 +0100
Source: attal
Binary: attal
Architecture: source amd64
Version: 0.9.2-1.3
Distribution: unstable
Urgency: low
Maintainer: Raphael Goulais <rafou@debian.org>
Changed-By: Philipp Kern <pkern@debian.org>
Description: 
 attal      - turn-based strategy game
Closes: 417114
Changes: 
 attal (0.9.2-1.3) unstable; urgency=low
 .
   * NMU for the gcc-4.3 release goal, with a patch provided by Martin
     Michlmayer.  (Closes: #417114)
Files: 
 6a0682f13d017876316b2302f371d166 617 games optional attal_0.9.2-1.3.dsc
 4994d63fc020f53937426b295d200995 6681 games optional attal_0.9.2-1.3.diff.gz
 59c9b919472e161c47c16d31c10255c7 1001218 games optional attal_0.9.2-1.3_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFH3Zva7Ro5M7LPzdgRAvBSAKCp4Xp2zQMbhc9BCA59miEImEzn5gCfZNvX
HRYoNukxv+4MpSag0Ijb6v0=
=OCxC
-----END PGP SIGNATURE-----





Marked as fixed in versions attal/1.0~rc1+cvs20080318-2. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Sat, 02 Nov 2013 15:57:20 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 01 Dec 2013 07:29:13 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Oct 11 23:41:40 2017; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.