SUNOS 4.1 dynamic loading doesn't work as documented
Guy Harris
auspex!guy at uunet.uu.net
Sun Jul 8 03:43:32 AEST 1990
>Sorry, problem number 2 was due to a typo. However, problem number 1
>(dlopen() does not call _init() and dlclose() does not call fini()) still
>holds.
>
>I ran "strings - /usr/lib/libdl.so* | grep ini" and saw no references to
>init or fini. Oh well...
Yup, it's a bug. Note that the System V Release 4 documentation on the
"dl*()" routines doesn't mention "_init()" nor "_fini()", so if you want
your code to work under S5R4 as well, you may want to avoid depending on
"_init()" and "_fini()" working even if, as, and when the bug gets fixed.
More information about the Comp.sys.sun
mailing list