Dynamic loading on a NeXT?

Hadar Pedhazur (ubs!hadar@uunet.uu.net)
19 Apr 1995 20:58:45 GMT

I am interested in using the Dynamic loading capabilities under NEXTSTEP. The
readme file for dld says which systems it supports, and clearly NeXT based
systems are not on the list. NeXT however, or more specifically MACH,
natively supports dynamic loading.

>From the FAQ, I see the following:

>3.13. Q. Trouble with posix.listdir on NeXTSTEP 3.2.
>
>A. (This is fixed in 1.2.) You need to pass "-posix" to the C
>compiler, especially in the link phase -- it uses the correct version
>of the C library. The easiest way is perhaps to do "make OPT=-posix".
>You also need to remove this NeXT-specific section from import.c:
>
> #if defined(NeXT) || defined(WITH_RLD)
> #define DYNAMIC_LINK
> #define USE_RLD
> #endif

which certainly implies that NeXT can dynamically load. However, my simple
test, build a compliant .o and placed in the sys.path, does not load.

I am willing to dig into the code and see what is going on, and possibly to
hack it in myself if it's not too great a task, but before spinning my wheels
I thought I'd ask this group whether I am missing something simple, or if not,
whether someone else has done the work already and would be willing to share
it?

--
Hadar Pedhazur
Global Equity Derivatives
Union Bank of Switzerland (UBS)