help-octave
[Top][All Lists]
Advanced

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

Re: Problem with 2.1.57 loading Octave binary format data file


From: Glenn Golden
Subject: Re: Problem with 2.1.57 loading Octave binary format data file
Date: Wed, 31 Mar 2004 18:34:46 -0700

"Dmitri A. Sergatskov" writes:
> 
> FWIW: I works for me with octave-2.1.57 on both Fedora Core 1 (gcc 3.3.2)
> and Sun Solaris (gcc 3.3.3). It also works across (i.e. I can save on
> Solaris and open on FC1).  I do not have RH 7.3 around anymore...
> 
> There were reports of oddities when octave being build on a system which has
> an older version of octave library installed. You may want to nuke
> 2.1.50 [*] and rebuild 2.1.57 from "make distclean" level.
>
> ([*] "find /usr/local -name "octave*" | xargs rm -rf" works for me)
> 

I did what ought to be effectively the same thing, except instead of
deleting the files, I just moved them all to /tmp so I can recover 
them easily later on.  So when I started the build, there was nothing
left under /usr/local matching the regexp 'octave*'.  I then ran

    make distclean
    make
    make check
    make install

all as root. Behavior same as before.

Anyone else out there running RH7.3 (or similar-vintage gnu/linuces)
that could check to see whether this is happening for them? Here's the
minimal example:

    1>   foo = rand(10);
    2>   save("-binary", "bar", "foo")
    3>   load bar
    error: load: trouble reading binary file `bar'


I admit that this seems like it's gotta be a build problem on my
part, but I sure can't find it.  More or less a vanilla build done
in a vanilla way. The only config options were --enabled-shared,
--enable-dl, and --enable-lite-kernel. 

> I think the issue was that sometimes the new octave gets linked against
> an old octave library. Since search on www.octave.org is not working
> I cannot find the relevant post. May be you can check it with ldd,
> 

I did that when I first came across the problem, but everything looked
right.  Here's the full ldd from the version I just built as per the above::

  liboctinterp.so => /usr/local/lib/octave-2.1.57/liboctinterp.so (0x40014000)
  liboctave.so => /usr/local/lib/octave-2.1.57/liboctave.so (0x40778000)
  libcruft.so => /usr/local/lib/octave-2.1.57/libcruft.so (0x40ca9000)
  liblapack.so.3 => /usr/lib/liblapack.so.3 (0x40d22000)
  libblas.so.3 => /usr/lib/libblas.so.3 (0x4115e000)
  libreadline.so.4 => /usr/lib/libreadline.so.4 (0x411a8000)
  libncurses.so.5 => /usr/lib/libncurses.so.5 (0x411ce000)
  libdl.so.2 => /lib/libdl.so.2 (0x4120d000)
  libm.so.6 => /lib/i686/libm.so.6 (0x41210000)
  libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x41232000)
  libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
  /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


- Glenn



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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