home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.apollo
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!caen!sdd.hp.com!hp-cv!hp-pcd!hpcvusn!hpcvusc!tomg
- From: tomg@hpcvusc (Thomas J. Gilg)
- Subject: Re: Making /lib/xmlib1.1 a global library in SR10.4
- Message-ID: <1992Nov13.215059.1429@hpcvusn.cv.hp.com>
- Sender: nobody@hpcvusn.cv.hp.com (Nobody - UID must be 99999)
- Nntp-Posting-Host: hpcvusc.cv.hp.com
- Organization: Hewlett-Packard Company, Corvallis, Oregon USA
- X-Newsreader: Tin 1.1 PL5
- References: <1992Nov7.033430.26974@nrtpa038.bnr.ca>
- Date: Fri, 13 Nov 1992 21:50:59 GMT
- Lines: 57
-
- Bill Gutknecht (bag@node_1f11c.bnr.ca) wrote:
- > I'd like to make the library globaly loaded in an effort to save memory
- > and help performance .....
- >
- > Anyhow, I entered the following two lines into /etc/sys.conf
- >
- > lib xtlib.r4, global, optional # Needed to resolve globals in xmlib1.1
- > lib xmlib1.1, global, optional
-
- Under Domain/OS, the load order of shared libraries is very critical. As
- an example, consider the sequence of events when running vuewm:
-
- Step Action
- ---- -----------------------------------------------------------------------
- 1. load vuewm
- 2. inlib /lib/xvlib.r4
- 3. inlib /lib/bmslib
- 4. inlib /lib/xmlib1.1
- 5. inlib /lib/xtlib.r4
- 6. inlib /lib/x11lib.r4
- 7. <would execute x11lib.r4:main() if one existed>
- 8. execute xtlib.r4:main() which causes some symbols in
- x11lib.r4 to be redefined in size (struct) and in value.
- 9. execute xmlib1.1:main() which causes some symbols in x11lib.r4
- and xtlib.r4 to be redefined.
- 10. inlib /usr/softbench/lib/libsoftlib
- 11. <execute libsoftlib:main() if their is one (?)>
- 12. inlib /lib/xextlib.r4
- 13. inlib /lib/x11lib.r4
- 14. <would execute x11lib.r4:main() if one existed>
- 15. exec vuewm
-
- note: use /usr/apollo/bin/coffdump -Ai <coff file> to obtain this info.
-
- All the X/Motif/Softbench libraries know what dependencies they have on
- each other, and the appropriate inlib-ing occurs automatically *in the
- correct order*.
-
- I would guess that placing the Xt and Xm libraries in /etc/sys.conf is
- causing something to go wrong with the load sequence. Or....
-
- A key question for which I don't have an answer is whether shared libraries
- in /etc/sys.conf will have their main() routines executed if they have one.
- In the X/Motif libraries, it is absolutly critical that the main() routines
- in the libraries get executed so that things like vendorShell can be
- properly initialized.
-
- > I reboot and everything seems ok until vuelogin tries to run, and the thing
- > hangs. I'm on a DN3500 running SR10.4 and mwm ... any ideas?
-
- Remove Xt and Xm from /etc/sys.conf, and then try from a pad to inlib
- the libraries. Then startup /usr/lib/X11/vue/etc/vuelogin and see what
- happens.
-
- Thomas Gilg
- tomg@cv.hp.com
-
-