[Therion] Fw: Bug#413417: FTBFS with GCC 4.3: 'INT_MAX' was not declared in this scope
Wookey
wookey at aleph1.co.uk
Fri Mar 23 23:03:32 CET 2007
I'll put this in the debian package, but it should go in the standard
sources too.
----- Forwarded message from Martin Michlmayr <tbm at cyrius.com> -----
From: Martin Michlmayr <tbm at cyrius.com>
Date: Sun, 4 Mar 2007 21:40:03 +0000
To: submit at bugs.debian.org
Subject: Bug#413417: FTBFS with GCC 4.3: 'INT_MAX' was not declared in this scope
Reply-To: Martin Michlmayr <tbm at cyrius.com>, 413417 at bugs.debian.org
X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham
version=3.0.3, No
Package: therion
Version: 0.3.10-3
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. A patch for this problem is
below.
> Automatic build of therion_0.3.10-3 on em64t by sbuild/amd64 0.53
...
> g++ -c -Wall -DTHLINUX -O2 -o thpdf.o thpdf.cxx
> In file included from thchencdata.h:11,
> from thchenc.h:32,
> from thpdf.cxx:54:
> thparse.h:126: warning: deprecated conversion from string constant to 'char*'
> thparse.h:126: warning: deprecated conversion from string constant to 'char*'
> thparse.h:138: warning: deprecated conversion from string constant to 'char*'
> thparse.h:138: warning: deprecated conversion from string constant to 'char*'
> thparse.h:138: warning: deprecated conversion from string constant to 'char*'
> thparse.h:191: warning: deprecated conversion from string constant to 'char*'
> thparse.h:191: warning: deprecated conversion from string constant to 'char*'
> thparse.h:191: warning: deprecated conversion from string constant to 'char*'
> thparse.h:191: warning: deprecated conversion from string constant to 'char*'
> thparse.h:191: warning: deprecated conversion from string constant to 'char*'
> thparse.h:191: warning: deprecated conversion from string constant to 'char*'
> thparse.h:191: warning: deprecated conversion from string constant to 'char*'
> thparse.h:191: warning: deprecated conversion from string constant to 'char*'
> thparse.h:191: warning: deprecated conversion from string constant to 'char*'
> thparse.h:191: warning: deprecated conversion from string constant to 'char*'
> thparse.h:191: warning: deprecated conversion from string constant to 'char*'
> thparse.h:191: warning: deprecated conversion from string constant to 'char*'
> thparse.h:191: warning: deprecated conversion from string constant to 'char*'
> thparse.h:191: warning: deprecated conversion from string constant to 'char*'
> thparse.h:191: warning: deprecated conversion from string constant to 'char*'
> thparse.h:191: warning: deprecated conversion from string constant to 'char*'
> thparse.h:191: warning: deprecated conversion from string constant to 'char*'
> thparse.h:191: warning: deprecated conversion from string constant to 'char*'
> thparse.h:191: warning: deprecated conversion from string constant to 'char*'
> In file included from thchenc.h:32,
> from thpdf.cxx:54:
> thchencdata.h:50: warning: deprecated conversion from string constant to 'char*'
> thchencdata.h:50: warning: deprecated conversion from string constant to 'char*'
> thchencdata.h:50: warning: deprecated conversion from string constant to 'char*'
> thchencdata.h:50: warning: deprecated conversion from string constant to 'char*'
> thchencdata.h:50: warning: deprecated conversion from string constant to 'char*'
> thchencdata.h:50: warning: deprecated conversion from string constant to 'char*'
> thchencdata.h:50: warning: deprecated conversion from string constant to 'char*'
> thchencdata.h:50: warning: deprecated conversion from string constant to 'char*'
> thchencdata.h:50: warning: deprecated conversion from string constant to 'char*'
> thchencdata.h:50: warning: deprecated conversion from string constant to 'char*'
> thchencdata.h:50: warning: deprecated conversion from string constant to 'char*'
> thchencdata.h:50: warning: deprecated conversion from string constant to 'char*'
> thchencdata.h:50: warning: deprecated conversion from string constant to 'char*'
> thchencdata.h:50: warning: deprecated conversion from string constant to 'char*'
> thpdf.cxx: In function 'void make_sheets()':
> thpdf.cxx:260: error: 'INT_MAX' was not declared in this scope
> thpdf.cxx:262: error: 'INT_MIN' was not declared in this scope
> thpdf.cxx: In function 'void print_surface_bitmaps(std::ofstream&, double, double)':
> thpdf.cxx:836: warning: suggest parentheses around && within ||
> thpdf.cxx: In function 'void build_pages()':
> thpdf.cxx:1333: warning: deprecated conversion from string constant to 'char*'
> thpdf.cxx:1337: warning: deprecated conversion from string constant to 'char*'
> thpdf.cxx:1341: warning: deprecated conversion from string constant to 'char*'
> make[1]: *** [thpdf.o] Error 1
> make[1]: Leaving directory `/build/tbm/therion-0.3.10'
> make: *** [build-stamp] Error 2
--- thpdf.cxx~ 2007-03-04 21:25:58.000000000 +0000
+++ thpdf.cxx 2007-03-04 21:27:33.000000000 +0000
@@ -35,6 +35,8 @@
#include <set>
#include <string>
+#include <limits.h>
+
// #include <cstring>
#include <cstdio>
#include <cfloat>
--
Martin Michlmayr
http://www.cyrius.com/
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
----- End forwarded message -----
Wookey
--
Principal hats: Balloonz - Toby Churchill - Aleph One - Debian
http://wookware.org/
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Therion
mailing list