Opened 15 years ago

Closed 15 years ago

#452 closed defect (fixed)

multi_polynomial_libsingular.c doesn't compile on Solaris

Reported by: mabshoff Owned by: malb
Priority: major Milestone: sage-2.8.3
Component: packages: standard Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

the compilation fails complaining about OSTREAM:

gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes - fPIC -I/extra/home/mabshoff/SAGE-build/sage-2.8/local/include/singular -I/extra/home/mabshoff/SAGE-build/sage-2.8/localinclude -I/extra/ home/mabshoff/SAGE-build/sage-2.8/localinclude/python -I/extra/home/ mabshoff/SAGE-build/sage-2.8/develsage/sage/ext -I/extra/home/ mabshoff/SAGE-build/sage-2.8/local/include/python2.5 -c sage/rings/ polynomial/multi_polynomial_libsingular.cpp -o build/temp.solaris-2.9- sun4u-2.5/sage/rings/polynomial/multi_polynomial_libsingular.o -w cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ In file included from /extra/home/mabshoff/SAGE-build/sage-2.8/local/ include/singular/factory.h:43,

from /extra/home/mabshoff/SAGE-build/sage-2.8/local/

include/singular/interrupt.h:6,

from sage/rings/polynomial/

multi_polynomial_libsingular.cpp:30: /extra/home/mabshoff/SAGE-build/sage-2.8/localinclude/templates/ ftmpl_array.h:38: error: 'OSTREAM' has not been declared /extra/home/mabshoff/SAGE-build/sage-2.8/localinclude/templates/ ftmpl_array.h:44: error: expected constructor, destructor, or type conversion before '&' token In file included from /extra/home/mabshoff/SAGE-build/sage-2.8/local/ include/singular/factory.h:44,

from /extra/home/mabshoff/SAGE-build/sage-2.8/local/

include/singular/interrupt.h:6,

from sage/rings/polynomial/

multi_polynomial_libsingular.cpp:30: /extra/home/mabshoff/SAGE-build/sage-2.8/localinclude/templates/ ftmpl_factor.h:40: error: 'OSTREAM' has not been declared /extra/home/mabshoff/SAGE-build/sage-2.8/localinclude/templates/ ftmpl_factor.h:49: error: expected constructor, destructor, or type conversion before '&' token In file included from /extra/home/mabshoff/SAGE-build/sage-2.8/local/ include/singular/factory.h:45,

from /extra/home/mabshoff/SAGE-build/sage-2.8/local/

include/singular/interrupt.h:6,

from sage/rings/polynomial/

multi_polynomial_libsingular.cpp:30: /extra/home/mabshoff/SAGE-build/sage-2.8/localinclude/templates/ ftmpl_list.h:27: error: expected constructor, destructor, or type conversion before '&' token /extra/home/mabshoff/SAGE-build/sage-2.8/localinclude/templates/ ftmpl_list.h:47: error: 'OSTREAM' has not been declared /extra/home/mabshoff/SAGE-build/sage-2.8/localinclude/templates/ ftmpl_list.h:78: error: 'OSTREAM' has not been declared /extra/home/mabshoff/SAGE-build/sage-2.8/localinclude/templates/ ftmpl_list.h:79: error: ISO C++ forbids declaration of 'OSTREAM' with no type /extra/home/mabshoff/SAGE-build/sage-2.8/localinclude/templates/ ftmpl_list.h:79: error: 'OSTREAM' is neither function nor member function; cannot be declared friend /extra/home/mabshoff/SAGE-build/sage-2.8/localinclude/templates/ ftmpl_list.h:79: error: expected ';' before '&' token /extra/home/mabshoff/SAGE-build/sage-2.8/localinclude/templates/ ftmpl_list.h:86: error: expected constructor, destructor, or type conversion before '&' token In file included from /extra/home/mabshoff/SAGE-build/sage-2.8/local/ include/singular/factory.h:46,

from /extra/home/mabshoff/SAGE-build/sage-2.8/local/

include/singular/interrupt.h:6,

from sage/rings/polynomial/

multi_polynomial_libsingular.cpp:30: /extra/home/mabshoff/SAGE-build/sage-2.8/localinclude/templates/ ftmpl_matrix.h:27: error: expected constructor, destructor, or type conversion before '&' token /extra/home/mabshoff/SAGE-build/sage-2.8/localinclude/templates/ ftmpl_matrix.h:37: error: 'OSTREAM' has not been declared /extra/home/mabshoff/SAGE-build/sage-2.8/localinclude/templates/ ftmpl_matrix.h:57: error: 'OSTREAM' has not been declared /extra/home/mabshoff/SAGE-build/sage-2.8/localinclude/templates/ ftmpl_matrix.h:58: error: ISO C++ forbids declaration of 'OSTREAM' with no type /extra/home/mabshoff/SAGE-build/sage-2.8/localinclude/templates/ ftmpl_matrix.h:58: error: 'OSTREAM' is neither function nor member function; cannot be declared friend /extra/home/mabshoff/SAGE-build/sage-2.8/localinclude/templates/ ftmpl_matrix.h:58: error: expected ';' before '&' token /extra/home/mabshoff/SAGE-build/sage-2.8/localinclude/templates/ ftmpl_matrix.h:93: error: expected constructor, destructor, or type conversion before '&' token In file included from /extra/home/mabshoff/SAGE-build/sage-2.8/local/ include/singular/tmpl_inst.h:8,

from /extra/home/mabshoff/SAGE-build/sage-2.8/local/

include/singular/interrupt.h:8,

from sage/rings/polynomial/

multi_polynomial_libsingular.cpp:30: /extra/home/mabshoff/SAGE-build/sage-2.8/local/include/singular/ class.h:43: error: 'OSTREAM' has not been declared /extra/home/mabshoff/SAGE-build/sage-2.8/local/include/singular/ class.h:44: error: ISO C++ forbids declaration of 'OSTREAM' with no type /extra/home/mabshoff/SAGE-build/sage-2.8/local/include/singular/ class.h:44: error: 'OSTREAM' is neither function nor member function; cannot be declared friend /extra/home/mabshoff/SAGE-build/sage-2.8/local/include/singular/ class.h:44: error: expected ';' before '&' token /extra/home/mabshoff/SAGE-build/sage-2.8/local/include/singular/ class.h:50: error: expected `;' before '}' token error: command 'gcc' failed with exit status 1 sage: There was an error installing modified sage library code.

You can build libCF with and without IO support and apparently this got mixed up. This is why we build a stand-alone libCF/libfac after we built SINGULAR and libSINGULAR. This way we make sure OSTREAM is known properly. Short answer: I'll have look at it.

Martin

Change History (6)

comment:1 Changed 15 years ago by mabshoff

  • Resolution set to fixed
  • Status changed from new to closed

Fixed by Martin Albrecht in Singular-20070819p2.

Cheers,

Michael

comment:2 Changed 15 years ago by mabshoff

  • Milestone changed from sage-3.0 to sage-2.8.2

comment:3 Changed 15 years ago by mabshoff

  • Milestone changed from sage-2.8.2 to sage-2.8.3
  • Resolution fixed deleted
  • Status changed from closed to reopened

Unfortunately, that new package breaks compilation on OSX and/or Linux. William has revered back to some former version of the spkg, so let's reopen this and target it at 2.8.3 and hope that it will be all sorted out be by then.

Cheers,

Michael

comment:4 Changed 15 years ago by was

  • Milestone changed from sage-2.8.3 to sage-2.9

comment:5 Changed 15 years ago by mabshoff

  • Milestone changed from sage-2.9 to sage-2.8.3

comment:6 Changed 15 years ago by was

  • Resolution set to fixed
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.