Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request From: auspex!guy@uunet.uu.net (Guy Harris) Newsgroups: comp.sys.sun Subject: Re: SUNOS 4.1 dynamic loading doesn't work as documented Keywords: SunOS Message-ID: <9801@brazos.Rice.edu> Date: 7 Jul 90 17:43:32 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 12 Approved: Sun-Spots@rice.edu X-Refs: Original: v9n250 X-Sun-Spots-Digest: Volume 9, Issue 256, message 9 >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.