Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#145 compilation failure agains liboctave.so.2

None
closed-fixed
Andrew Ross
None
5
2015-02-23
2014-03-22
eatdirt
No

Hi guys,
the recent release of octave 3.8.1 introduced various changes in call to liboctave breaking the compilation of the plplot octave module. If someone could have a look, that would be nice!

Cheers,
chris.


/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:1507:36: warning: ‘Octave_map’ is deprecated (declared at /usr/include/octave-3.8.1/octave/oct-map.h:484) [-Wdeprecated-declarations]
virtual Octave_map map_value() const {
^
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:1507:24: error: invalid covariant return type for ‘virtual Octave_map octave_swig_type::map_value() const’
virtual Octave_map map_value() const {
^
In file included from /usr/include/octave-3.8.1/octave/ov.h:58:0,
from /usr/include/octave-3.8.1/octave/oct-obj.h:34,
from /usr/include/octave-3.8.1/octave/ov-fcn.h:32,
from /usr/include/octave-3.8.1/octave/ov-builtin.h:28,
from /usr/include/octave-3.8.1/octave/defun-int.h:28,
from /usr/include/octave-3.8.1/octave/defun-dld.h:30,
from /usr/include/octave-3.8.1/octave/oct.h:36,
from /home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:154:
/usr/include/octave-3.8.1/octave/ov-base.h:568:22: error: overriding ‘virtual octave_map octave_base_value::map_value() const’
virtual octave_map map_value (void) const;
^
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx: In member function ‘virtual dim_vector octave_swig_type::dims() const’:
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:1183:46: error: ‘class octave_value’ has no member named ‘is_real_nd_array’
} else if (out.is_matrix_type() || out.is_real_nd_array() || out.is_numeric_type() ) {
^
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx: At global scope:
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:1742:36: warning: ‘Octave_map’ is deprecated (declared at /usr/include/octave-3.8.1/octave/oct-map.h:484) [-Wdeprecated-declarations]
virtual Octave_map map_value() const
^
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:1742:24: error: invalid covariant return type for ‘virtual Octave_map octave_swig_ref::map_value() const’
virtual Octave_map map_value() const
^
In file included from /usr/include/octave-3.8.1/octave/ov.h:58:0,
from /usr/include/octave-3.8.1/octave/oct-obj.h:34,
from /usr/include/octave-3.8.1/octave/ov-fcn.h:32,
from /usr/include/octave-3.8.1/octave/ov-builtin.h:28,
from /usr/include/octave-3.8.1/octave/defun-int.h:28,
from /usr/include/octave-3.8.1/octave/defun-dld.h:30,
from /usr/include/octave-3.8.1/octave/oct.h:36,
from /home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:154:
/usr/include/octave-3.8.1/octave/ov-base.h:568:22: error: overriding ‘virtual octave_map octave_base_value::map_value() const’
virtual octave_map map_value (void) const;
^
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx: In function ‘void SWIG_Octave_LinkGlobalValue(std::string)’:
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:2052:28: warning: ‘static octave_value& symbol_table::varref(const string&, symbol_table::scope_id, symbol_table::context_id, bool)’ is deprecated (declared at /usr/include/octave-3.8.1/octave/symtab.h:1322) [-Wdeprecated-declarations]
symbol_table::varref(name);
^
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_plGetCursor(const octave_value_list&, int)’:
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:8412:60: warning: ‘octave_value::octave_value(const charMatrix&, bool, char)’ is deprecated (declared at /usr/include/octave-3.8.1/octave/ov.h:242) [-Wdeprecated-declarations]
retval4( 0 ) = octave_value( charMatrix( 80, 1 ), true );
^
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_plgdev(const octave_value_list&, int)’:
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:15264:60: warning: ‘octave_value::octave_value(const charMatrix&, bool, char)’ is deprecated (declared at /usr/include/octave-3.8.1/octave/ov.h:242) [-Wdeprecated-declarations]
retval1( 0 ) = octave_value( charMatrix( 80, 1 ), true );
^
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_plgfnam(const octave_value_list&, int)’:
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:15510:60: warning: ‘octave_value::octave_value(const charMatrix&, bool, char)’ is deprecated (declared at /usr/include/octave-3.8.1/octave/ov.h:242) [-Wdeprecated-declarations]
retval1( 0 ) = octave_value( charMatrix( 80, 1 ), true );
^
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_plgver(const octave_value_list&, int)’:
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:15793:60: warning: ‘octave_value::octave_value(const charMatrix&, bool, char)’ is deprecated (declared at /usr/include/octave-3.8.1/octave/ov.h:242) [-Wdeprecated-declarations]
retval1( 0 ) = octave_value( charMatrix( 80, 1 ), true );
^
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx: In function ‘bool SWIG_Octave_LoadModule(std::string)’:
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:21858:5: error: ‘begin_frame’ is not a member of ‘unwind_protect’
unwind_protect::begin_frame("SWIG_Octave_LoadModule");
^
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:21859:35: error: ‘unwind_protect_int’ was not declared in this scope
unwind_protect_int(error_state);
^
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:21861:47: error: ‘unwind_protect_bool’ was not declared in this scope
unwind_protect_bool(discard_error_messages);
^
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:21877:5: error: ‘run_frame’ is not a member of ‘unwind_protect’
unwind_protect::run_frame("SWIG_Octave_LoadModule");
^
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx: In function ‘bool SWIG_Octave_InstallFunction(octave_function, std::string)’:
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:21890:5: error: ‘begin_frame’ is not a member of ‘unwind_protect’
unwind_protect::begin_frame("SWIG_Octave_InstallFunction");
^
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:21891:35: error: ‘unwind_protect_int’ was not declared in this scope
unwind_protect_int(error_state);
^
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:21893:47: error: ‘unwind_protect_bool’ was not declared in this scope
unwind_protect_bool(discard_error_messages);
^
/home/eatdirt/plplot/BUILD/plplot-5.10.0/build/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:21913:5: error: ‘run_frame’ is not a member of ‘unwind_protect’
unwind_protect::run_frame("SWIG_Octave_InstallFunction");
^
bindings/octave/CMakeFiles/plplot_octave.dir/build.make:64: recipe for target 'bindings/octave/CMakeFiles/plplot_octave.dir/plplot_octaveOCTAVE_wrap.cxx.o' failed
make[2]:
[bindings/octave/CMakeFiles/plplot_octave.dir/plplot_octaveOCTAVE_wrap.cxx.o] Error 1
CMakeFiles/Makefile2:1455: recipe for target 'bindings/octave/CMakeFiles/plplot_octave.dir/all' failed
make[1]:
[bindings/octave/CMakeFiles/plplot_octave.dir/all] Error 2
make[1]: ** Waiting for unfinished jobs....
Linking C shared module _plplotcmodule.so
[ 62%] Built target _plplotcmodule
Makefile:136: recipe for target 'all' failed

Discussion

  • Alan W. Irwin
    Alan W. Irwin
    2014-03-22

    • status: open --> closed-fixed
    • assigned_to: Andrew Ross
    • Group: -->
     
  • Alan W. Irwin
    Alan W. Irwin
    2014-03-22

    I am going to close this because this issue has already been addressed in the svn trunk version of PLplot (see http://sourceforge.net/p/plplot/mailman/message/32038432/). If following the directions there (especially with swig version) does not solve the issue, then please reopen this bug report.