Package: ginac
Version: 1.3.5-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.  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 ginac_1.3.5-3 on coconut0 by sbuild/ia64 0.49
...
> mkdir .libs
>  g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -Wall -O2 -finline-limit=1200 -c add.cpp 
>  -fPIC -DPIC -o .libs/add.o
> add.cpp: In member function 'virtual int GiNaC::add::degree(const GiNaC::ex&) 
> const':
> add.cpp:259: error: 'INT_MIN' was not declared in this scope
> add.cpp: In member function 'virtual int GiNaC::add::ldegree(const 
> GiNaC::ex&) const':
> add.cpp:276: error: 'INT_MAX' was not declared in this scope
> make[3]: *** [add.lo] Error 1
> make[3]: Leaving directory `/build/tbm/ginac-1.3.5/ginac'

--- ginac/add.cpp~      2007-04-01 19:31:16.000000000 +0000
+++ ginac/add.cpp       2007-04-01 19:31:22.000000000 +0000
@@ -22,6 +22,7 @@
 
 #include <iostream>
 #include <stdexcept>
+#include <climits>
 
 #include "add.h"
 #include "mul.h"
--- ginac/function.cpp~ 2007-04-01 19:34:58.000000000 +0000
+++ ginac/function.cpp  2007-04-01 19:35:03.000000000 +0000
@@ -28,6 +28,7 @@
 #include <string>
 #include <stdexcept>
 #include <list>
+#include <climits>
 
 #include "function.h"
 #include "operators.h"
--- ginac/indexed.cpp~  2007-04-01 19:36:57.000000000 +0000
+++ ginac/indexed.cpp   2007-04-01 19:37:03.000000000 +0000
@@ -20,6 +20,7 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
  */
 
+#include <climits>
 #include <iostream>
 #include <sstream>
 #include <stdexcept>
--- ginac/pseries.cpp~  2007-04-01 19:51:16.000000000 +0000
+++ ginac/pseries.cpp   2007-04-01 19:51:21.000000000 +0000
@@ -23,6 +23,7 @@
 
 #include <numeric>
 #include <stdexcept>
+#include <climits>
 
 #include "pseries.h"
 #include "add.h"
--- ginac/symmetry.cpp~ 2007-04-01 19:51:26.000000000 +0000
+++ ginac/symmetry.cpp  2007-04-01 19:51:32.000000000 +0000
@@ -23,6 +23,7 @@
 #include <iostream>
 #include <stdexcept>
 #include <functional>
+#include <climits>
 
 #include "symmetry.h"
 #include "lst.h"


Then we fail with:

/usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.3.0/../../../../include/c++/4.3.0/bits/stl_tree.h:938:
error: passing 'const GiNaC::error_and_integral_is_less' as 'this'
argument of 'bool GiNaC::error_and_integral_is_less::operator()(const
GiNaC::error_and_integral&, const GiNaC::error_and_integral&)'
discards qualifiers

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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to