<SNIP>

> I did edit all the needed bits to make the coerce code compile, but
> now I get the following failure in multi_polynomial_libsingular:
>
> 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/local//include -I/extra/
> home/mabshoff/SAGE-build/sage-2.8/local//include/python -I/extra/home/
> mabshoff/SAGE-build/sage-2.8/devel//sage/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/local//include/templates/
> ftmpl_array.h:38: error: 'OSTREAM' has not been declared
> /extra/home/mabshoff/SAGE-build/sage-2.8/local//include/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/local//include/templates/
> ftmpl_factor.h:40: error: 'OSTREAM' has not been declared
> /extra/home/mabshoff/SAGE-build/sage-2.8/local//include/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/local//include/templates/
> ftmpl_list.h:27: error: expected constructor, destructor, or type
> conversion before '&' token
> /extra/home/mabshoff/SAGE-build/sage-2.8/local//include/templates/
> ftmpl_list.h:47: error: 'OSTREAM' has not been declared
> /extra/home/mabshoff/SAGE-build/sage-2.8/local//include/templates/
> ftmpl_list.h:78: error: 'OSTREAM' has not been declared
> /extra/home/mabshoff/SAGE-build/sage-2.8/local//include/templates/
> ftmpl_list.h:79: error: ISO C++ forbids declaration of 'OSTREAM' with
> no type
> /extra/home/mabshoff/SAGE-build/sage-2.8/local//include/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/local//include/templates/
> ftmpl_list.h:79: error: expected ';' before '&' token
> /extra/home/mabshoff/SAGE-build/sage-2.8/local//include/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/local//include/templates/
> ftmpl_matrix.h:27: error: expected constructor, destructor, or type
> conversion before '&' token
> /extra/home/mabshoff/SAGE-build/sage-2.8/local//include/templates/
> ftmpl_matrix.h:37: error: 'OSTREAM' has not been declared
> /extra/home/mabshoff/SAGE-build/sage-2.8/local//include/templates/
> ftmpl_matrix.h:57: error: 'OSTREAM' has not been declared
> /extra/home/mabshoff/SAGE-build/sage-2.8/local//include/templates/
> ftmpl_matrix.h:58: error: ISO C++ forbids declaration of 'OSTREAM'
> with no type
> /extra/home/mabshoff/SAGE-build/sage-2.8/local//include/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/local//include/templates/
> ftmpl_matrix.h:58: error: expected ';' before '&' token
> /extra/home/mabshoff/SAGE-build/sage-2.8/local//include/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.
>
> malb, any idea? I don't know that area of the code very well. It looks
> like a missing include.
>
> Cheers,
>
> Michael

Hello,

I found something odd: ftmpl_list.h exist in two different version in
the tree:

--- singular/ftmpl_list.h       2007-08-16 11:28:02.499761000 -0400
+++ templates/ftmpl_list.h      2007-08-15 00:52:17.166524000 -0400
@@ -1,5 +1,5 @@
 /* emacs edit mode for this file is -*- C++ -*- */
-/* $Id: ftmpl_list.h,v 1.2 2006/05/15 09:03:05 Singular Exp $ */
+/* $Id: ftmpl_list.h,v 1.10 2006/05/15 09:03:07 Singular Exp $ */

 #ifndef INCL_LIST_H
 #define INCL_LIST_H
@@ -9,10 +9,10 @@
 #ifndef NOSTREAMIO
 #ifdef HAVE_IOSTREAM
 #include <iostream>
-#define OSTREAM std::iostream
+#define OSTREAM std::ostream
 #elif defined(HAVE_IOSTREAM_H)
 #include <iostream.h>
-#define OSTREAM iostream
+#define OSTREAM ostream
 #endif
 #endif /* NOSTREAMIO */

I installed the headers for libSingular manually because the Singular
package was broken at that time. Hopefully that will get fixed soon
and I will retry with the "official" package.

Cheers,

Michael


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to