Mercurial > hg > octave-lojdl
changeset 8272:ed5811a1ec8f
Added output about why a library load fails on OSX
author | jpswensen@compsci34-82-1651.compscidhcp.jhu.edu |
---|---|
date | Thu, 23 Oct 2008 15:22:51 -0400 |
parents | 095b3e4d64e9 |
children | 2c1ba965b486 |
files | liboctave/ChangeLog liboctave/oct-shlib.cc |
diffstat | 2 files changed, 15 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,8 @@ +2008-10-23 John Swensen <jpswensen@comcast.net> + + * oct-shlib.cc (octave_dyld_shlib::open): Call NSLinkEditError to + get better diagnostic if NSLinkModule fails. + 2008-10-23 John W. Eaton <jwe@octave.org> * oct-shlib.cc (octave_dlopen_shlib::open): Use RTLD_NOW instead
--- a/liboctave/oct-shlib.cc +++ b/liboctave/oct-shlib.cc @@ -611,8 +611,16 @@ } else { - (*current_liboctave_error_handler) - ("couldn't link module %s", file.c_str ()); + NSLinkEditErrors ler; + int lerno; + const char *file2; + const char *errstr = 0; + + NSLinkEditError (&ler, &lerno, &file2, &errstr); + + if (errstr) + (*current_liboctave_error_handler) + ("%s: %s", file.c_str (), errstr); } } else