Ben Abbott wrote: > Installing octave-forge fails for me > > I'm using Distribution: 10.4 with unstable packages enabled. > > The 1st error I encounter is below > > ... > mkoctfile -DHAVE_OCTAVE_29 -v -c chol.cc > g++-4.0 -c -I/sw/include -I/sw/include/octave-2.9.12 > -I/sw/include/octave-2.9.12/octave -I/sw/include -g -O2 > -DHAVE_OCTAVE_29 chol.cc -o chol.o > ov-re-tri.h:41: error: invalid covariant return type for > 'virtual octave_value* octave_tri::clone() const' > /sw/include/octave-2.9.12/octave/ov-re-mat.h:87: > error: overriding 'virtual octave_base_value* > octave_matrix::clone() const' > ov-re-tri.h:44: error: invalid covariant return type for > 'virtual octave_value* octave_tri::try_narrowing_conversion()' > /sw/include/octave-2.9.12/octave/ov-re-mat.h:90: > error: overriding 'virtual octave_base_value* > octave_matrix::try_narrowing_conversion()' > chol.cc: In function 'octave_value_list > Fchol(const octave_value_list&, int)': > chol.cc:62: warning: 'print_usage' is deprecated > (declared at /sw/include/octave-2.9.12/octave/defun-int.h:38) > make[2]: *** [chol.o] Error 1 > ... > > There are many more errors. For example, > > ... > mkoctfile -DHAVE_OCTAVE_29 -v -DTYPEID_HAS_CLASS > -c ov-re-tri.cc -o ov-re-tri.o > g++-4.0 -c -I/sw/include -I/sw/include/octave-2.9.12 > -I/sw/include/octave-2.9.12/octave -I/sw/include -g -O2 -DHAVE_OCTAVE_29 - > DTYPEID_HAS_CLASS ov-re-tri.cc -o ov-re-tri.o > ov-re-tri.h:41: error: invalid covariant return type for > 'virtual octave_value* octave_tri::clone() const' > /sw/include/octave-2.9.12/octave/ov-re-mat.h:87: > error: overriding 'virtual octave_base_value* > octave_matrix::clone() const' > ov-re-tri.h:44: error: invalid covariant return type for > 'virtual octave_value* octave_tri::try_narrowing_conversion()' > /sw/include/octave-2.9.12/octave/ov-re-mat.h:90: > error: overriding 'virtual octave_base_value* > octave_matrix::try_narrowing_conversion()' > ov-re-tri.cc: In member function 'virtual octave_value* > octave_tri::clone() const': > ov-re-tri.cc:31: error: cannot convert 'octave_tri*' to > 'octave_value*' in return > ov-re-tri.cc: In function 'octave_value* > tri_numeric_conversion_function(const octave_value&)': > ov-re-tri.cc:37: error: cannot dynamic_cast > '(const octave_value&)(+ a)' (of type 'const class octave_value&') > to type 'const class octave_tri&' (source type is not polymorphic) > ov-re-tri.cc:39: error: cannot convert 'octave_matrix*' to > 'octave_value*' in return > ov-re-tri.cc: At global scope: > ov-re-tri.cc:42: error: 'type_conv_fcn' does not name a type > ov-re-tri.cc: In member function 'virtual octave_value* > octave_tri::try_narrowing_conversion()': > ov-re-tri.cc:50: error: cannot convert 'octave_base_value*' > to 'octave_value*' in initialization > ov-re-tri.cc:78: error: cannot convert 'octave_matrix*' > to 'octave_value*' in assignment > ov-re-tri.cc: In function 'octave_value > oct_assignop_assign(octave_base_value&, const > octave_value_list&, const octave_base_value&)': > ov-re-tri.cc:153: error: cannot dynamic_cast > '(const octave_base_value&)(+ a2)' (of type 'const > class octave_base_value&') to type 'class > octave_matrix&' (conversion casts away constness) > make[2]: *** [ov-re-tri.o] Error 1 > ... > > Any thoughts? > > > Yeah. Fink's octave forge is geared for octave-2.1. I reported this to the maintainer--octave-forge upstream has changed a few things, so he has to change how the package is set up.
If you're on a PowerPC, you could downgrade octave via "fink install octave-2.1.71-1006" and then install octave-forge. I'm not sure whether you'd then be able to install the current octave and use the stuff from octave-forge--I haven't tried that as of yet. -- Alexander K. Hansen akh AT finkproject DOT org Fink User Liaison and Documenter ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Fink-beginners mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-beginners
