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

version graph

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

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

Date: Sun, 1 Apr 2007 20:48:01 UTC

Severity: normal

Tags: patch

Found in version grhino/0.16.0-1

Fixed in version grhino/0.16.0-2

Done: Bart Martens <bartm@knars.be>

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, Bart Martens <bartm@knars.be>:
Bug#417215; Package grhino. (full text, mbox, link).


Acknowledgement sent to Martin Michlmayr <tbm@cyrius.com>:
New Bug report received and forwarded. Copy sent to Bart Martens <bartm@knars.be>. (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 21:45:47 +0100
Package: grhino
Version: 0.16.0-1
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 grhino_0.16.0-1 on coconut0 by sbuild/ia64 0.49
...
> ./board.h: In function 'void adjust_score(int&, int&)':
> ./board.h:140: warning: suggest braces around empty body in an 'else' statement
> g++ -DORBIT2=1 -pthread -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/libxml2 -g -Wall -O2 -W -Wall -c ./book.cc -DBOOK_PATH=\"/usr/share/grhino/book/\"
> In file included from ./binfile.h:25,
>                  from ./book.cc:21:
> ./board.h: In function 'void adjust_score(int&, int&)':
> ./board.h:140: warning: suggest braces around empty body in an 'else' statement
> ./book.cc: In function 'int* get_symmetry(int)':
> ./book.cc:134: error: 'abort' was not declared in this scope
> make[1]: *** [book.o] Error 1

--- book.cc~	2007-04-01 20:35:35.000000000 +0000
+++ book.cc	2007-04-01 20:35:42.000000000 +0000
@@ -25,6 +25,7 @@
 #include "rand.h"
 #include "gtstream.h"
 
+#include <cstdlib>
 #include <vector>
 #include <iostream>
 #include <stdexcept>
--- game.cc~	2007-04-01 20:36:06.000000000 +0000
+++ game.cc	2007-04-01 20:36:13.000000000 +0000
@@ -33,6 +33,7 @@
 #include "fdstream.h"
 #include "boardio.h"
 
+#include <cstdlib>
 #include <sys/types.h>
 #include <sys/stat.h> 
 #include <unistd.h>
--- log_proc.h~	2007-04-01 20:36:58.000000000 +0000
+++ log_proc.h	2007-04-01 20:37:53.000000000 +0000
@@ -20,6 +20,7 @@
 
 #include "config.h"
 
+#include <cstdlib>
 #include <exception>
 #include <stdexcept>
 #include <string>

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



Reply sent to Bart Martens <bartm@knars.be>:
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 #10 received at 417215-close@bugs.debian.org (full text, mbox, reply):

From: Bart Martens <bartm@knars.be>
To: 417215-close@bugs.debian.org
Subject: Bug#417215: fixed in grhino 0.16.0-2
Date: Mon, 02 Apr 2007 19:32:02 +0000
Source: grhino
Source-Version: 0.16.0-2

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

grhino_0.16.0-2.diff.gz
  to pool/main/g/grhino/grhino_0.16.0-2.diff.gz
grhino_0.16.0-2.dsc
  to pool/main/g/grhino/grhino_0.16.0-2.dsc
grhino_0.16.0-2_i386.deb
  to pool/main/g/grhino/grhino_0.16.0-2_i386.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 417215@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bart Martens <bartm@knars.be> (supplier of updated grhino 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: Mon,  2 Apr 2007 20:38:09 +0200
Source: grhino
Binary: grhino
Architecture: source i386
Version: 0.16.0-2
Distribution: unstable
Urgency: low
Maintainer: Bart Martens <bartm@knars.be>
Changed-By: Bart Martens <bartm@knars.be>
Description: 
 grhino     - Othello/Reversi boardgame
Closes: 417215
Changes: 
 grhino (0.16.0-2) unstable; urgency=low
 .
   * debian/patches/02_gcc_4_3.diff: Added.  Closes: #417215.  Patch by Martin
     Michlmayr <tbm@cyrius.com>, thanks.
Files: 
 b78480b0fce912c23080d8a790fe75d4 726 games optional grhino_0.16.0-2.dsc
 7bd158e1c38a3a9fe3526c7041685b33 10341 games optional grhino_0.16.0-2.diff.gz
 601a6f54bba6a911f676d77af295a4e9 1061812 games optional grhino_0.16.0-2_i386.deb

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

iD8DBQFGEVUBbMaawmho9B8RAsixAKDawKNgUa755TMTzcAGjgHPs70CBQCgiAAM
UuPCmowl3l5cYicHQW8ErDI=
=4vA0
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 24 Jun 2007 17:17:36 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: Sun Jul 2 12:36:38 2023; 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.