Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 215572 - sci-libs/libqalculate-0.9.6-r1 fails to compile with gcc-4.3.0
Summary: sci-libs/libqalculate-0.9.6-r1 fails to compile with gcc-4.3.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-31 13:08 UTC by Bert Karwatzki
Modified: 2008-04-01 15:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bert Karwatzki 2008-03-31 13:08:39 UTC
Compiling sci-libs/libqalculate-0.9.6-r1 with gcc-4.3.0 from portage gives following error:
Number.cc:608: error: 'INT_MAX' was not declared in this scope

Reproducible: Always




This patch solves the problem:
diff -aur libqalculate.old/Number.cc libqalculate/Number.cc
--- libqalculate.old/Number.cc  2008-03-29 19:47:00.000000000 +0100
+++ libqalculate/Number.cc      2008-03-29 19:49:47.000000000 +0100
@@ -15,6 +15,7 @@
 #include "Calculator.h"

 #include <sstream>
+#include <climits>
 #include "util.h"

 #define REAL_PRECISION_FLOAT_RE(x)             cln::cl_float(cln::realpart(x), cln::float_format(PRECISION + 1))
Comment 1 Markus Dittrich (RETIRED) gentoo-dev 2008-04-01 12:53:29 UTC
Thanks much for the note + patch. I'll have a look
at it later.

Best,
Markus
Comment 2 Markus Dittrich (RETIRED) gentoo-dev 2008-04-01 15:20:48 UTC
Fixed in portage cvs.

Thanks,
Markus