octave-maintainers
[Top][All Lists]
Advanced

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

Octave library version for release


From: Mike Miller
Subject: Octave library version for release
Date: Thu, 23 Apr 2015 08:25:29 -0400
User-agent: Mutt/1.5.23 (2014-03-12)

Hey jwe, maintainers,

Sorry for bringing this up so late in the release cycle, but should
Octave 4.0.0 still be liboctave.so.2 / liboctinterp.so.2 or should the
version be bumped to 3? It seems that some things are not quite
backwards compatible, so programs or oct-files built against 3.8.2's
liboctave.so.2 may not work with 4.0.0's liboctave.so.2.

Several functions marked deprecated have been removed in 4.0.0. A simple
standalone test program that declares an Octave_map object, for example,
results in the following:

    ./testprog: Symbol `_ZTV17octave_base_value' has different size in shared 
object, consider re-linking
    ./testprog: symbol lookup error: ./testprog: undefined symbol: 
_ZN10Octave_mapC1ERK10dim_vectorRK4Cell

The following example session also shows that something is not quite
right with a very simple oct-file [1] compiled against 3.8.2 and used in
4.0.0:

    $ octave-3.8.2 -q --no-gui-libs
    octave:1> mkoctfile is_real_matrix.cc
    octave:2> is_real_matrix (5)
    ans =  1
    octave:3> is_real_matrix ([1, 2; 3, 4])
    ans =  1
    octave:4> quit
    $ octave-4.0.0-rc3 -q --no-gui-libs
    octave:1> is_real_matrix (5)
    ans = 0
    octave:2> is_real_matrix ([1, 2; 3, 4])
    ans = 0
    octave:3> mkoctfile is_real_matrix.cc
    octave:4> clear -f
    octave:5> is_real_matrix (5)
    ans =  1
    octave:6> is_real_matrix ([1, 2; 3, 4])
    ans =  1

[1] http://hg.code.sf.net/p/octave/control/file/tip/src/is_real_matrix.cc

-- 
mike



reply via email to

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