<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>215572</bug_id>
          
          <creation_ts>2008-03-31 13:08 0000</creation_ts>
          <short_desc>sci-libs/libqalculate-0.9.6-r1 fails to compile with gcc-4.3.0</short_desc>
          <delta_ts>2008-04-01 15:20:48 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>GCC Porting</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>spasswolf@web.de</reporter>
          <assigned_to>sci@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>spasswolf@web.de</who>
            <bug_when>2008-03-31 13:08:39 0000</bug_when>
            <thetext>Compiling sci-libs/libqalculate-0.9.6-r1 with gcc-4.3.0 from portage gives following error:
Number.cc:608: error: &apos;INT_MAX&apos; 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 &quot;Calculator.h&quot;

 #include &lt;sstream&gt;
+#include &lt;climits&gt;
 #include &quot;util.h&quot;

 #define REAL_PRECISION_FLOAT_RE(x)             cln::cl_float(cln::realpart(x), cln::float_format(PRECISION + 1))</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2008-04-01 12:53:29 0000</bug_when>
            <thetext>Thanks much for the note + patch. I&apos;ll have a look
at it later.

Best,
Markus
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2008-04-01 15:20:48 0000</bug_when>
            <thetext>Fixed in portage cvs.

Thanks,
Markus</thetext>
          </long_desc>
      
    </bug>

</bugzilla>