Debian Bug report logs -
#505414
FTBFS with GCC 4.4: missing #include
Reported by: Martin Michlmayr <tbm@cyrius.com>
Date: Wed, 12 Nov 2008 07:42:10 UTC
Severity: normal
Tags: patch
Found in version xmoto/0.4.2-3
Fixed in version xmoto/0.5.0-1
Done: Samuel Mimram <smimram@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#505414; Package xmoto.
(Wed, 12 Nov 2008 07:42:12 GMT) (full text, mbox, link).
Acknowledgement sent
to Martin Michlmayr <tbm@cyrius.com>:
New Bug report received and forwarded. Copy sent to Debian Games Team <pkg-games-devel@lists.alioth.debian.org>.
(Wed, 12 Nov 2008 07:42:16 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: xmoto
Version: 0.4.2-3
User: debian-gcc@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 xmoto_0.4.2-3 on em64t by sbuild/amd64 0.53
...
> if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"xmoto\" -DVERSION=\"0.4.2\" -D_GNU_SOURCE=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DXMOTO_LITTLE_ENDIAN=1 -DHAV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ICONV=1 -DICONV_CONST= -DHAVE_NL_LOCALE_NAME=1 -DHAVE_LONG_LONG_INT=1 -DHAVE_LONG_DOUBLE=1 -DHAVE_WCHAR_T=1 -DHAVE_WINT_T=1 -DHAVE_INTMAX_T=1 -DHAVE_POSIX_PRINTF=1 -DHAVE_STDINT_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_ASPRINTF=1 -DHAVE_FWPRINTF=1 -DHAVE_PUTENV=1 -DHAVE_SETENV=1 -DHAVE_SETLOCALE=1 -DHAVE_SNPRINTF=1 -DHAVE_WCSLEN=1 -DHAVE_DECL__SNPRINTF=0 -DHAVE_DECL__SNWPRINTF=0 -DHAVE_DECL_GETC_UNLOCKED=1 -DHAVE_LANGINFO_CODESET=1 -DHAVE_LC_MESSAGES=1 -DENABLE_NLS=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -I. -I. -DNOMMGR -Wall -DGAMEDATADIR=\"/usr/share/games/xmoto\" -DLOCALESDIR=\"/usr/share/games/locale\" -DASIAN_TTF_FILE=\"/usr/share/fonts/truetype/arphic/bkai00mp.ttf\" -DALLOW_ZOOMING=0 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_OPENGL=1 -DUSE_SDLGFX=0 -D'SVN_REV=""' -Wall -g -O2 -Wl,-z,defs -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT XMArgs.o -MD -MP -MF ".deps/XMArgs.Tpo" -c -o XMArgs.o XMArgs.cpp; \
> then mv -f ".deps/XMArgs.Tpo" ".deps/XMArgs.Po"; else rm -f ".deps/XMArgs.Tpo"; exit 1; fi
> XMArgs.cpp: In member function 'void XMArguments::parse(int, char**)':
> XMArgs.cpp:117: error: 'sscanf' was not declared in this scope
> XMArgs.cpp: In member function 'void XMArguments::help(const std::string&)':
> XMArgs.cpp:536: error: 'printf' was not declared in this scope
> make[2]: *** [XMArgs.o] Error 1
> make[2]: Leaving directory `/build/tbm/xmoto-0.4.2/src'
--- src/helpers/Text.cpp~ 2008-11-12 07:23:06.000000000 +0000
+++ src/helpers/Text.cpp 2008-11-12 07:23:12.000000000 +0000
@@ -20,6 +20,8 @@
#include "Text.h"
+#include <cstdio>
+
std::string txtToLower(const std::string& i_str) {
std::string v_res;
--- src/helpers/Log.cpp~ 2008-11-12 07:26:06.000000000 +0000
+++ src/helpers/Log.cpp 2008-11-12 07:26:14.000000000 +0000
@@ -22,6 +22,7 @@
#include "VExcept.h"
#include "../VFileIO.h"
#include "assert.h"
+#include <cstdio>
#include <stdarg.h>
bool Logger::m_isInitialized = false;
--- src/XMArgs.cpp~ 2008-11-12 07:21:08.000000000 +0000
+++ src/XMArgs.cpp 2008-11-12 07:21:16.000000000 +0000
@@ -23,6 +23,7 @@
#include "XMBuild.h"
#include "VFileIO.h"
#include <sstream>
+#include <cstdio>
#include <stdlib.h>
XMArguments::XMArguments() {
--
Martin Michlmayr
http://www.cyrius.com/
Reply sent
to Samuel Mimram <smimram@debian.org>:
You have taken responsibility.
(Fri, 26 Dec 2008 15:39:06 GMT) (full text, mbox, link).
Notification sent
to Martin Michlmayr <tbm@cyrius.com>:
Bug acknowledged by developer.
(Fri, 26 Dec 2008 15:39:06 GMT) (full text, mbox, link).
Message #10 received at 505414-close@bugs.debian.org (full text, mbox, reply):
Source: xmoto
Source-Version: 0.5.0-1
We believe that the bug you reported is fixed in the latest version of
xmoto, which is due to be installed in the Debian FTP archive:
xmoto-data_0.5.0-1_all.deb
to pool/main/x/xmoto/xmoto-data_0.5.0-1_all.deb
xmoto_0.5.0-1.diff.gz
to pool/main/x/xmoto/xmoto_0.5.0-1.diff.gz
xmoto_0.5.0-1.dsc
to pool/main/x/xmoto/xmoto_0.5.0-1.dsc
xmoto_0.5.0-1_i386.deb
to pool/main/x/xmoto/xmoto_0.5.0-1_i386.deb
xmoto_0.5.0.orig.tar.gz
to pool/main/x/xmoto/xmoto_0.5.0.orig.tar.gz
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 505414@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Samuel Mimram <smimram@debian.org> (supplier of updated xmoto 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.8
Date: Tue, 23 Dec 2008 15:55:40 +0100
Source: xmoto
Binary: xmoto xmoto-data
Architecture: source all i386
Version: 0.5.0-1
Distribution: experimental
Urgency: low
Maintainer: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
Changed-By: Samuel Mimram <smimram@debian.org>
Description:
xmoto - 2D motocross platform game
xmoto-data - 2D motocross platform game - data files
Closes: 505414 508286
Changes:
xmoto (0.5.0-1) experimental; urgency=low
.
[ Miriam Ruiz ]
* New Upstream Release (Closes: #508286)
* Added patch to fix FTBFS in gcc 4.4 (Closes: #505414)
+ Thanks to Martin Michlmayr for the patch.
* Refreshed patches
* Removed patch fix_segfault2.patch: Already fixed in upstream code
.
[ Samuel Mimram ]
* Add missing dependency on libsdl-net1.2-dev.
Checksums-Sha1:
add640486d857decb3b8ff93ce057f75291a5c35 1545 xmoto_0.5.0-1.dsc
9d89c0c7fa7da23378577c8ed572cc381267dfae 21913971 xmoto_0.5.0.orig.tar.gz
d995221210db25822986e2396ae92b92cf83689c 7603 xmoto_0.5.0-1.diff.gz
9806219cb3c41c6630ca6bc2d6ace4201f4be520 20053340 xmoto-data_0.5.0-1_all.deb
dfef9add6b3ad008f7da8e8423fe5aa674acefa2 1445200 xmoto_0.5.0-1_i386.deb
Checksums-Sha256:
193ad681a7408e448b063fd505b5340d4262739cdcdd2927f8868a5f55ae5ad9 1545 xmoto_0.5.0-1.dsc
705a70c3cda8300179e049c5b1fb8d5d241ede0a3bc1961d5e93682babccc93f 21913971 xmoto_0.5.0.orig.tar.gz
681e719ecd31cfd0fddcb74489b68f92fe5162aa73ef7bac804ce87a3c35cf38 7603 xmoto_0.5.0-1.diff.gz
3b9194e672889f97f152bd44d29809e042406139a2cdacf53e4d8974470a8507 20053340 xmoto-data_0.5.0-1_all.deb
ca151d219a72da54f69ab95e91791c2bc94e602cf1b9712427eb14416df2613a 1445200 xmoto_0.5.0-1_i386.deb
Files:
5fa41cfb507f22f3ae1e46e3d798ce37 1545 games optional xmoto_0.5.0-1.dsc
e693ec0f949e44fb78187b8e82650869 21913971 games optional xmoto_0.5.0.orig.tar.gz
738ccd0253a90a29e05131dc8d2c28ca 7603 games optional xmoto_0.5.0-1.diff.gz
7ad8da35809a6d6fdf83ee204e8dca81 20053340 games optional xmoto-data_0.5.0-1_all.deb
dc91e80c788fb9ce2fd99bb9d3cfed99 1445200 games optional xmoto_0.5.0-1_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAklU9QkACgkQIae1O4AJae8T8gCfWaxqr59yoX4G/z8ea4fEt5Ow
8o8An2cnU26HqVuh05m1CJuLGQ34L1gJ
=Kwbu
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Tue, 21 Apr 2009 07:28:14 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 13:24:21 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.