.oct files - keeping state across calls
Christophe Tournery
christophe.tournery at illusonic.com
Wed Jul 22 09:12:59 CDT 2009
On Jul 14, 2009, at 11:02 AM, John W. Eaton wrote:
> On 14-Jul-2009, Christophe Tournery wrote:
>
> | Could it be an issue with my build from MacPorts then? (Mac OS X
> | 10.5.7, macports 1.710)
> | I see that the Portfile configures octave with:
> |
> | configure.args --enable-shared \
> | --enable-dl \
> | --disable-static \
> | --with-hdf5 \
> | --with-fftw \
> | --with-blas="-framework Accelerate" \
> | --enable-static \
> | --enable-readline \
> | --with-zlib \
> | --with-glpk \
> | --with-curl \
> | --with-lapack \
> | --with-umfpack \
> | --with-colamd \
> | --with-ccolamd \
> | --with-cholmod \
> | --with-cxsparse
>
> I have no idea. I don't have an OS X system, so I can't try to
> reproduce the problem there. Maybe someone else can.
>
> Can you run Octave under gdb and set a breakpoint in the function
> octave_dynamic_loader::do_load_oct and see where/why the .oct file is
> loaded multiple times? Looking at what happens in the function
> octave_dyld_shlib::open might also give you some clues.
Thanks for the pointers to the functions where to set break points.
Now that I recompiled octave 3.2.0 myself (and not from macports), I
don't have the issue anymore and everything seems fine in the
octave_dynamic_loader::do_load_oct function.
So I am closing this thread for now and will try to see if the
configure args used by macports are at fault.
> Also, can you try to use a PKG_ADD file with the lines
>
> autoload ("mylib_init", "mylib.oct");
> autoload ("mylib_desstroy", "mylib.oct");
> autoload ("mylib_process", "mylib.oct");
>
> instead of using symbolic links? Does that change anything?
Just as mentioned above, PKG_ADD works on octave 3.2.0 that I compiled
myself, not on the one compile from macports.
> Are the timestamps on your .oct files somehow in the future?
No they have a correct date and time.
> jwe
Thanks for your support,
-c
More information about the Help-octave
mailing list