[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with an oct file that won't load
From: |
John W. Eaton |
Subject: |
Re: Problem with an oct file that won't load |
Date: |
Thu, 23 Oct 2008 15:30:10 -0400 |
On 23-Oct-2008, John Swensen wrote:
| Attached is a patch to give more information when it fails to load on
| OSX. FYI, as of OSX 10.5 dlopen is the preferred method and all these
| NS* functions are deprecated.
OK, then would someone who uses OS X like to take a look at the
following part of Octave's configure.in file and modify it so that it
first checks for dlopen on OS X systems, and only uses the older
interface if it dlopen is not present?
## Check for dyld first since OS X can have a non-standard libdl
AC_CHECK_HEADER(mach-o/dyld.h)
if test "$ac_cv_header_mach_o_dyld_h" = yes; then
dyld_api=true
else
AC_CHECK_LIB(dld, shl_load)
AC_CHECK_FUNCS(shl_load shl_findsym)
if test "$ac_cv_func_shl_load" = yes \
&& test "$ac_cv_func_shl_findsym" = yes; then
shl_load_api=true
else
AC_CHECK_LIB(wsock32, LoadLibrary)
AC_CHECK_FUNCS(LoadLibrary)
if test "$ac_cv_func_loadlibrary" = yes; then
loadlibrary_api=true
else
AC_CHECK_LIB(dl, dlopen)
AC_CHECK_FUNCS(dlopen dlsym dlerror dlclose)
if test "$ac_cv_func_dlclose" = yes \
&& test "$ac_cv_func_dlerror" = yes \
&& test "$ac_cv_func_dlopen" = yes \
&& test "$ac_cv_func_dlsym" = yes; then
dlopen_api=true
else
case "$canonical_host_type" in
i[[3456]]86-*-sco3.2v5*)
LD_CXX='LD_RUN_PATH=$LD_RUN_PATH:$(octlibdir) $(CXX)'
dlopen_api=true
;;
esac
fi
fi
fi
fi
Thanks,
jwe
- Re: Problem with an oct file that won't load, (continued)
- Re: Problem with an oct file that won't load, John Swensen, 2008/10/23
- Re: Problem with an oct file that won't load, John W. Eaton, 2008/10/23
- Re: Problem with an oct file that won't load, John W. Eaton, 2008/10/23
- Re: Problem with an oct file that won't load, John Swensen, 2008/10/23
- Re: Problem with an oct file that won't load, John W. Eaton, 2008/10/23
- Re: Problem with an oct file that won't load, John Swensen, 2008/10/23
- Re: Problem with an oct file that won't load, John W. Eaton, 2008/10/23
- Re: Problem with an oct file that won't load, John Swensen, 2008/10/23
- Re: Problem with an oct file that won't load, John W. Eaton, 2008/10/23
- Re: Problem with an oct file that won't load, John W. Eaton, 2008/10/23
- Re: Problem with an oct file that won't load,
John W. Eaton <=