[PURRS-devel] Cannot compile GIAC 0.4.0

Roberto Bagnara bagnara at cs.unipr.it
Sat Jul 3 17:09:05 CEST 2004


Dear Bernard,

I have downloaded GIAC 0.4.0 and tried to compile it with
GCC 3.4.1 (which contains a fix for the bug I told you back
in May).  However, the compilation fails immediately as
follows:

cd /usr/local/distrib/giac-0.4.0/
make
make  all-recursive
make[1]: Entering directory `/usr/local/distrib/giac-0.4.0'
Making all in src
make[2]: Entering directory `/usr/local/distrib/giac-0.4.0/src'
/bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I..    -g -O2 -c sym2poly.cc
mkdir .libs
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -g -O2 -c sym2poly.cc  -fPIC -DPIC -o .libs/sym2poly.lo
In file included from poly.h:26,
                  from sym2poly.h:23,
                  from sym2poly.cc:32:
monomial.h: In function `void giac::Normalrref(std::vector<giac::monomial<T>, std::allocator<giac::monomial<T> > >&, int, int, giac::index_t&, bool)':
monomial.h:776: error: `temp' undeclared (first use this function)
monomial.h:776: error: (Each undeclared identifier is reported only once for each function it appears in.)
monomial.h:778: error: `newcoord' undeclared (first use this function)
In file included from sym2poly.h:23,
                  from sym2poly.cc:32:
poly.h: In member function `T& giac::tensor<T>::operator()(const giac::index_m&)':
poly.h:270: error: `zero' undeclared (first use this function)
poly.h: In member function `const T& giac::tensor<T>::operator()(const giac::index_m&) const':
poly.h:279: error: `zero' undeclared (first use this function)
poly.h: In member function `T giac::tensor<T>::constant_term() const':
poly.h:785: error: `zero' undeclared (first use this function)
In file included from gen.h:37,
                  from sym2poly.h:24,
                  from sym2poly.cc:32:
fraction.h: In member function `void Tfraction<T>::dbgprint()':
fraction.h:185: error: `f' undeclared (first use this function)
In file included from sym2poly.h:24,
                  from sym2poly.cc:32:
gen.h: At global scope:
gen.h:308: error: `giac::gen giac::zero' used prior to declaration
make[2]: *** [sym2poly.lo] Error 1
make[2]: Leaving directory `/usr/local/distrib/giac-0.4.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/distrib/giac-0.4.0'
make: *** [all-recursive-am] Error 2

The compiler seems right in, e.g., `temp' is undeclared in
giac::Normalrref().  Have you got any idea what the problem
may be?
All the best,

     Roberto

-- 
Prof. Roberto Bagnara
Computer Science Group
Department of Mathematics, University of Parma, Italy
http://www.cs.unipr.it/~bagnara/
mailto:bagnara at cs.unipr.it



More information about the PURRS-devel mailing list