compilation problem

Ivan Sutoris ivan.sutoris at gmail.com
Wed Mar 25 17:03:25 CDT 2009


2009/3/25 bhatt vihang <bhatt.vihang at gmail.com>:
> I was trying to build octave latest version on suse 11.1 and compilation
> failed. the error message is as follows
>
> CSparse.cc: In member function ‘ComplexMatrix
> SparseComplexMatrix::fsolve(MatrixType&, const Matrix&, octave_idx_type&,
> double&, void (*)(double), bool) const’:
> CSparse.cc:5769: error: invalid conversion from ‘void (*)(int, char*, int,
> char*)’ to ‘void (*)(int, const char*, int, const char*)’
> CSparse.cc: In member function ‘SparseComplexMatrix
> SparseComplexMatrix::fsolve(MatrixType&, const SparseMatrix&,
> octave_idx_type&, double&, void (*)(double), bool) const’:
> CSparse.cc:6012: error: invalid conversion from ‘void (*)(int, char*, int,
> char*)’ to ‘void (*)(int, const char*, int, const char*)’
> CSparse.cc: In member function ‘ComplexMatrix
> SparseComplexMatrix::fsolve(MatrixType&, const ComplexMatrix&,
> octave_idx_type&, double&, void (*)(double), bool) const’:
> CSparse.cc:6303: error: invalid conversion from ‘void (*)(int, char*, int,
> char*)’ to ‘void (*)(int, const char*, int, const char*)’
> CSparse.cc: In member function ‘SparseComplexMatrix
> SparseComplexMatrix::fsolve(MatrixType&, const SparseComplexMatrix&,
> octave_idx_type&, double&, void (*)(double), bool) const’:
> CSparse.cc:6525: error: invalid conversion from ‘void (*)(int, char*, int,
> char*)’ to ‘void (*)(int, const char*, int, const char*)’
> make[2]: *** [pic/CSparse.o] Error 1
> make[2]: Leaving directory `/disk1/vbhatt/octave-3.0.3/liboctave'
> make[1]: *** [liboctave] Error 2
> make[1]: Leaving directory `/disk1/vbhatt/octave-3.0.3'
> make: *** [all] Error 2
>
> please see attached config.log file for output of ./confingure.
>
> would you please guide me what I need to do to make a successful
> compilation.
>
> Thanking you

I've encountered this too - I just uninstalled suitesparse libraries
(didn't need them), but it should be also possible to disable them in
configure script. I think this is known problem and should be fixed in
upcoming 3.0.4 version, see threads [1], [2] (you can probably apply
the patch to 3.0.3 manually if you need to compile with suitesparse).
Anyway, unless you have reasons for compilation, for openSUSE there is
3.0.3 package provided in Contrib repository.

[1] http://www.nabble.com/octave-3.0.2%3A-compilation-error-csparse.cc-td19910718.html#a19930055
[2] http://www.nabble.com/C%2B%2B-error-while-compiling-octave-3.0.3-from-source%2C-using-SuiteSparse-td21753690.html#a21753690

Regards
Ivan Sutoris



More information about the Help-octave mailing list