[GiNaC-list] build problems with ver.1.3.3

Sheplyakov Alexei varg at theor.jinr.ru
Thu Nov 24 17:05:02 CET 2005


Replying to myself :)

On Thu, Nov 24, 2005 at 05:42:06PM +0300, Sheplyakov Alexei wrote:
> Hello,
> 
> On Thu, Nov 24, 2005 at 12:59:00PM +0100, Joerg Arndt wrote:
> > attached is the log of a failed build of ginac 1.3.3
> > gcc used is:
> >  gcc-4.1.0_20051123-3
> >  gcc-c++-4.1.0_20051123-3
> 
> Does attached patch fix that?

It does, but `make check' still fails with the following error:

if g++-4.1 -DHAVE_CONFIG_H -I. -I. -I../config -I./../ginac -I../ginac    -O2 -g -finline-limit=1000 -pipe -MT exam_structure.o -MD -MP -MF ".deps/exam_structure.Tpo" -c -o exam_structure.o exam_structure.cpp; \
then mv -f ".deps/exam_structure.Tpo" ".deps/exam_structure.Po"; else rm -f ".deps/exam_structure.Tpo"; exit 1; fi
exam_structure.cpp:50: error: specialization of ‘void GiNaC::structure<T, ComparisonPolicy>::print(const GiNaC::print_context&, unsigned int) const [with T = sprod_s, ComparisonPolicy = GiNaC::compare_std_less]’ in different namespace
exam_structure.cpp:50: error:   from definition of ‘void GiNaC::structure<T, ComparisonPolicy>::print(const GiNaC::print_context&, unsigned int) const [with T = sprod_s, ComparisonPolicy = GiNaC::compare_std_less]’
exam_structure.cpp:56: error: specialization of ‘GiNaC::ex GiNaC::structure<T, ComparisonPolicy>::eval(int) const [with T = sprod_s, ComparisonPolicy = GiNaC::compare_std_less]’ in different namespace
exam_structure.cpp:56: error:   from definition of ‘GiNaC::ex GiNaC::structure<T, ComparisonPolicy>::eval(int) const [with T = sprod_s, ComparisonPolicy = GiNaC::compare_std_less]’

Quick and dirty fix is attached.

-- 
All science is either physics or stamp collecting.

-------------- next part --------------
Index: check/exam_structure.cpp
===================================================================
RCS file: /home/cvs/GiNaC/check/exam_structure.cpp,v
retrieving revision 1.2.4.3
diff -r1.2.4.3 exam_structure.cpp
49a50,51
> namespace GiNaC {
> 
65a68,69
> }
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.cebix.net/pipermail/ginac-list/attachments/20051124/e039601b/attachment.pgp


More information about the GiNaC-list mailing list