octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: [swig:bugs] #1353 Octave 3.8.0 support


From: Orion Poplawski
Subject: Fwd: [swig:bugs] #1353 Octave 3.8.0 support
Date: Sat, 04 Jan 2014 20:01:17 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Forwarding from the SWIG bug report - and indeed, it will be *very*
difficult for SWIG to support octave changing APIs without some kind of
version check.  If anyone can envision how this is to be done without it
- please post a solution.  Otherwise it seems simplest to simply
reinstate OCTAVE_API_VERSION_NUMBER.


-------- Original Message --------
Subject: [swig:bugs] #1353 Octave 3.8.0 support
Date: Sat, 04 Jan 2014 17:03:19 +0000
From: William Fulton <address@hidden>
Reply-To: [swig:bugs]  <address@hidden>
To: [swig:bugs]  <address@hidden>

Why have they dropped OCTAVE_API_VERSION_NUMBER ? It is essential for
dealing with changing apis. I don't see how SWIG can support Octave
without it.


---

** [bugs:#1353] Octave 3.8.0 support**

**Status:** open
**Labels:** octave
**Created:** Mon Dec 30, 2013 03:38 AM UTC by Orion Poplawski
**Last Updated:** Fri Jan 03, 2014 10:01 PM UTC
**Owner:** nobody

Looks like things need to be updated for octave 3.8.0 support.  These
are some errors while trying to build plplot 5.9.11 with swig 2.0.11 and
octave 3.8.0:

cd /builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave &&
/usr/bin/swig -octave -DSWIG_OCTAVE -outdir
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave -c++
-I/builddir/build/BUILD/plplot-5.9.11/include
-I/builddir/build/BUILD/plplot-5.9.11/lib/qsastime
-I/builddir/build/BUILD/plplot-5.9.11/fedora
-I/builddir/build/BUILD/plplot-5.9.11/fedora/include
-I/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave
-I/usr/include -I/usr/include/octave-3.8.0
-I/usr/include/octave-3.8.0/octave
-I/builddir/build/BUILD/plplot-5.9.11/bindings/swig-support -o
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx
/builddir/build/BUILD/plplot-5.9.11/bindings/octave/plplot_octave.i

/usr/bin/cmake -E cmake_progress_report
/builddir/build/BUILD/plplot-5.9.11/fedora/CMakeFiles 19
[ 13%] Building CXX object
bindings/octave/CMakeFiles/plplot_octave.dir/plplot_octaveOCTAVE_wrap.cxx.o
cd /builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave &&
/usr/bin/c++   -DHAVE_CONFIG_H -Dplplot_octave_EXPORTS -O2 -g -pipe
-Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables  -fPIC
-I/builddir/build/BUILD/plplot-5.9.11/include
-I/builddir/build/BUILD/plplot-5.9.11/lib/qsastime
-I/builddir/build/BUILD/plplot-5.9.11/fedora
-I/builddir/build/BUILD/plplot-5.9.11/fedora/include
-I/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave
-I/usr/include/octave-3.8.0 -I/usr/include/octave-3.8.0/octave
-I/builddir/build/BUILD/plplot-5.9.11/bindings/swig-support    -o
CMakeFiles/plplot_octave.dir/plplot_octaveOCTAVE_wrap.cxx.o -c
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:1507:36:
warning: 'Octave_map' is deprecated (declared at
/usr/include/octave-3.8.0/octave/oct-map.h:484) [-Wdeprecated-declarations]
     virtual Octave_map map_value() const {
                                    ^
/builddir/build/BUILD/plplot-5.9.11/fedora/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.0/octave/ov.h:58:0,
                 from /usr/include/octave-3.8.0/octave/oct-obj.h:34,
                 from /usr/include/octave-3.8.0/octave/ov-fcn.h:32,
                 from /usr/include/octave-3.8.0/octave/ov-builtin.h:28,
                 from /usr/include/octave-3.8.0/octave/defun-int.h:28,
                 from /usr/include/octave-3.8.0/octave/defun-dld.h:30,
                 from /usr/include/octave-3.8.0/octave/oct.h:36,
                 from
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:154:
/usr/include/octave-3.8.0/octave/ov-base.h:568:22: error:   overriding
'virtual octave_map octave_base_value::map_value() const'
   virtual octave_map map_value (void) const;
                      ^
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:
In member function 'virtual dim_vector octave_swig_type::dims() const':
/builddir/build/BUILD/plplot-5.9.11/fedora/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() ) {
                                              ^
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:
At global scope:
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:1742:36:
warning: 'Octave_map' is deprecated (declared at
/usr/include/octave-3.8.0/octave/oct-map.h:484) [-Wdeprecated-declarations]
     virtual Octave_map map_value() const
                                    ^
/builddir/build/BUILD/plplot-5.9.11/fedora/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.0/octave/ov.h:58:0,
                 from /usr/include/octave-3.8.0/octave/oct-obj.h:34,
                 from /usr/include/octave-3.8.0/octave/ov-fcn.h:32,
                 from /usr/include/octave-3.8.0/octave/ov-builtin.h:28,
                 from /usr/include/octave-3.8.0/octave/defun-int.h:28,
                 from /usr/include/octave-3.8.0/octave/defun-dld.h:30,
                 from /usr/include/octave-3.8.0/octave/oct.h:36,
                 from
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:154:
/usr/include/octave-3.8.0/octave/ov-base.h:568:22: error:   overriding
'virtual octave_map octave_base_value::map_value() const'
   virtual octave_map map_value (void) const;
                      ^
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:
In function 'void SWIG_Octave_LinkGlobalValue(std::string)':
/builddir/build/BUILD/plplot-5.9.11/fedora/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.0/octave/symtab.h:1322)
[-Wdeprecated-declarations]
   symbol_table::varref(name);
                            ^
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:
In function 'void labelfunc_octave(PLINT, PLFLT, char*, PLINT, PLPointer)':
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:2310:13:
warning: unused variable 'i' [-Wunused-variable]
         int i;
             ^
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:
In function 'void ct_octave(PLFLT, PLFLT, PLFLT*, PLFLT*, PLPointer)':
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:2336:27:
warning: unused variable 'i' [-Wunused-variable]
         octave_idx_type   i;
                           ^
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:
In function 'octave_value_list _wrap_plGetCursor(const
octave_value_list&, int)':
/builddir/build/BUILD/plplot-5.9.11/fedora/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.0/octave/ov.h:242)
[-Wdeprecated-declarations]
     retval4( 0 ) = octave_value( charMatrix( 80, 1 ), true );
                                                            ^
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:
In function 'octave_value_list _wrap_plgdev(const octave_value_list&, int)':
/builddir/build/BUILD/plplot-5.9.11/fedora/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.0/octave/ov.h:242)
[-Wdeprecated-declarations]
     retval1( 0 ) = octave_value( charMatrix( 80, 1 ), true );
                                                            ^
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:
In function 'octave_value_list _wrap_plgfnam(const octave_value_list&,
int)':
/builddir/build/BUILD/plplot-5.9.11/fedora/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.0/octave/ov.h:242)
[-Wdeprecated-declarations]
     retval1( 0 ) = octave_value( charMatrix( 80, 1 ), true );
                                                            ^
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:
In function 'octave_value_list _wrap_plgver(const octave_value_list&, int)':
/builddir/build/BUILD/plplot-5.9.11/fedora/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.0/octave/ov.h:242)
[-Wdeprecated-declarations]
     retval1( 0 ) = octave_value( charMatrix( 80, 1 ), true );
                                                            ^
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:
In function 'bool SWIG_Octave_LoadModule(std::string)':
/builddir/build/BUILD/plplot-5.9.11/fedora/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");
     ^
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:21859:35:
error: 'unwind_protect_int' was not declared in this scope
     unwind_protect_int(error_state);
                                   ^
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:21861:47:
error: 'unwind_protect_bool' was not declared in this scope
     unwind_protect_bool(discard_error_messages);
                                               ^
/builddir/build/BUILD/plplot-5.9.11/fedora/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");
     ^
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:
In function 'bool SWIG_Octave_InstallFunction(octave_function*,
std::string)':
/builddir/build/BUILD/plplot-5.9.11/fedora/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");
     ^
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:21891:35:
error: 'unwind_protect_int' was not declared in this scope
     unwind_protect_int(error_state);
                                   ^
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:21893:47:
error: 'unwind_protect_bool' was not declared in this scope
     unwind_protect_bool(discard_error_messages);
                                               ^
/builddir/build/BUILD/plplot-5.9.11/fedora/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");
     ^
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:
In member function 'virtual dim_vector octave_swig_type::dims() const':
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:1200:5:
warning: control reaches end of non-void function [-Wreturn-type]
     }
     ^
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:
At global scope:
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:1859:28:
warning: 'octave_value_list octave_set_immutable(const
octave_value_list&, int)' defined but not used [-Wunused-function]
   static octave_value_list octave_set_immutable(const octave_value_list
&args, int nargout) {
                            ^
/builddir/build/BUILD/plplot-5.9.11/fedora/bindings/octave/plplot_octaveOCTAVE_wrap.cxx:2158:5:
warning: 'int _arraylen(const octave_value&)' defined but not used
[-Wunused-function]
     _arraylen( const octave_value &o_obj )
     ^



---

Sent from sourceforge.net because you indicated interest in
<https://sourceforge.net/p/swig/bugs/1353/>

To unsubscribe from further messages, please visit
<https://sourceforge.net/auth/subscriptions/>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]