error with cell2fields

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
sts
Reply | Threaded
Open this post in threaded view
|

error with cell2fields

sts
when I type cell2fields I get

>> cell2fields
error: /usr/lib/x86_64-linux-gnu/octave/packages/struct-1.0.11/x86_64-pc-linux-gnu-api-v50+/cell2fields.oct: failed to load: /usr/lib/x86_64-linux-gnu/octave/packages/struct-1.0.11/x86_64-pc-linux-gnu-api-v50+/cell2fields.oct: undefined symbol: _ZNK5ArrayISsE17resize_fill_valueEv

can anyone help me to understand this problem?


my version of octave:
>> ver
----------------------------------------------------------------------
GNU Octave Version: 4.0.0
GNU Octave License: GNU General Public License
Operating System: Linux 4.4.0-91-generic #114-Ubuntu SMP Tue Aug 8 11:56:56 UTC 2017 x86_64
----------------------------------------------------------------------
Package Name  | Version | Installation directory
--------------+---------+-----------------------
       optim *|   1.4.1 | /usr/share/octave/packages/optim-1.4.1
      struct *|  1.0.11 | /usr/share/octave/packages/struct-1.0.11

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: error with cell2fields

Philip Nienhuis
sts wrote
when I type cell2fields I get

>> cell2fields
error: /usr/lib/x86_64-linux-gnu/octave/packages/struct-1.0.11/x86_64-pc-linux-gnu-api-v50+/cell2fields.oct: failed to load: /usr/lib/x86_64-linux-gnu/octave/packages/struct-1.0.11/x86_64-pc-linux-gnu-api-v50+/cell2fields.oct: undefined symbol: _ZNK5ArrayISsE17resize_fill_valueEv

can anyone help me to understand this problem?


my version of octave:
>> ver
----------------------------------------------------------------------
GNU Octave Version: 4.0.0
GNU Octave License: GNU General Public License
Operating System: Linux 4.4.0-91-generic #114-Ubuntu SMP Tue Aug 8 11:56:56 UTC 2017 x86_64
----------------------------------------------------------------------
Package Name  | Version | Installation directory
--------------+---------+-----------------------
       optim *|   1.4.1 | /usr/share/octave/packages/optim-1.4.1
      struct *|  1.0.11 | /usr/share/octave/packages/struct-1.0.11

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Sorry, we need more info.

What Linux distro, what version, where did you get Octave from? (or did you build it yourself?)

Philip
Reply | Threaded
Open this post in threaded view
|

Re: error with cell2fields

Mike Miller-4
On Tue, Aug 22, 2017 at 07:30:38 -0700, Philip Nienhuis wrote:
> sts wrote
> > when I type cell2fields I get
> >
> >>> cell2fields
> > error:
> > /usr/lib/x86_64-linux-gnu/octave/packages/struct-1.0.11/x86_64-pc-linux-gnu-api-v50+/cell2fields.oct: failed to load:
> > /usr/lib/x86_64-linux-gnu/octave/packages/struct-1.0.11/x86_64-pc-linux-gnu-api-v50+/cell2fields.oct: undefined symbol: _ZNK5ArrayISsE17resize_fill_valueEv
[…]
> > GNU Octave Version: 4.0.0
> > GNU Octave License: GNU General Public License
> > Operating System: Linux 4.4.0-91-generic #114-Ubuntu SMP Tue Aug 8
> > 11:56:56 UTC 2017 x86_64
> > ----------------------------------------------------------------------
> > Package Name  | Version | Installation directory
> > --------------+---------+-----------------------
> >        optim *|   1.4.1 | /usr/share/octave/packages/optim-1.4.1
> >       struct *|  1.0.11 | /usr/share/octave/packages/struct-1.0.11
[…]
> Sorry, we need more info.
>
> What Linux distro, what version, where did you get Octave from? (or did you
> build it yourself?)

There are a few answers to those above, but yes, we need to know whether
Octave was installed from Ubuntu official repositories. Are you on
Ubuntu 16.04 with octave version 4.0.0-3ubuntu9.1 and octave-struct
version 1.0.11-1 installed?

The undefined symbol error is an immediate red flag that this is another
case of a GCC ABI mismatch between how Octave was compiled and how the
struct package was compiled. If these packages are all installed from
Ubuntu, then you should report a bug so this can be fixed for everyone.

See previous posts [1], [2], [3], [4], and the GCC C++ ABI transition
docs [5].

[1]: https://lists.gnu.org/archive/html/help-octave/2016-02/msg00113.html
[2]: https://lists.gnu.org/archive/html/help-octave/2016-06/msg00239.html
[3]: https://lists.gnu.org/archive/html/help-octave/2017-01/msg00010.html
[4]: https://lists.gnu.org/archive/html/help-octave/2017-05/msg00201.html
[5]: https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html

--
mike

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave

signature.asc (849 bytes) Download Attachment