home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / apollo / 3956 < prev    next >
Encoding:
Text File  |  1992-11-14  |  2.9 KB  |  71 lines

  1. Newsgroups: comp.sys.apollo
  2. 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
  3. From: tomg@hpcvusc (Thomas J. Gilg)
  4. Subject: Re: Making /lib/xmlib1.1 a global library in SR10.4
  5. Message-ID: <1992Nov13.215059.1429@hpcvusn.cv.hp.com>
  6. Sender: nobody@hpcvusn.cv.hp.com (Nobody - UID must be 99999)
  7. Nntp-Posting-Host: hpcvusc.cv.hp.com
  8. Organization: Hewlett-Packard Company, Corvallis, Oregon USA
  9. X-Newsreader: Tin 1.1 PL5
  10. References: <1992Nov7.033430.26974@nrtpa038.bnr.ca>
  11. Date: Fri, 13 Nov 1992 21:50:59 GMT
  12. Lines: 57
  13.  
  14. Bill Gutknecht (bag@node_1f11c.bnr.ca) wrote:
  15. > I'd like to make the library globaly loaded in an effort to save memory 
  16. > and help performance .....
  17. > Anyhow, I entered the following two lines into /etc/sys.conf
  18. > lib xtlib.r4, global, optional  # Needed to resolve globals in xmlib1.1
  19. > lib xmlib1.1, global, optional
  20.  
  21. Under Domain/OS, the load order of shared libraries is very critical.  As
  22. an example, consider the sequence of events when running vuewm:
  23.  
  24. Step   Action
  25. ----   -----------------------------------------------------------------------
  26. 1.     load vuewm
  27. 2.        inlib /lib/xvlib.r4
  28. 3.           inlib /lib/bmslib
  29. 4.              inlib /lib/xmlib1.1
  30. 5.                 inlib /lib/xtlib.r4
  31. 6.                    inlib /lib/x11lib.r4
  32. 7.                    <would execute x11lib.r4:main() if one existed>
  33. 8.                 execute xtlib.r4:main() which causes some symbols in
  34.                    x11lib.r4 to be redefined in size (struct) and in value.
  35. 9.              execute xmlib1.1:main() which causes some symbols in x11lib.r4
  36.                 and xtlib.r4 to be redefined.
  37. 10.             inlib /usr/softbench/lib/libsoftlib
  38. 11.             <execute libsoftlib:main() if their is one (?)>
  39. 12.       inlib /lib/xextlib.r4
  40. 13.          inlib /lib/x11lib.r4
  41. 14.          <would execute x11lib.r4:main() if one existed>
  42. 15.    exec vuewm
  43.  
  44.      note: use /usr/apollo/bin/coffdump -Ai <coff file> to obtain this info.
  45.  
  46. All the X/Motif/Softbench libraries know what dependencies they have on
  47. each other, and the appropriate inlib-ing occurs automatically *in the
  48. correct order*.
  49.  
  50. I would guess that placing the Xt and Xm libraries in /etc/sys.conf is
  51. causing something to go wrong with the load sequence.   Or....
  52.  
  53. A key question for which I don't have an answer is whether shared libraries
  54. in /etc/sys.conf will have their main() routines executed if they have one.
  55. In the X/Motif libraries, it is absolutly critical that the main() routines
  56. in the libraries get executed so that things like vendorShell can be
  57. properly initialized.
  58.  
  59. > I reboot and everything seems ok until vuelogin tries to run, and the thing
  60. > hangs.  I'm on a DN3500 running SR10.4 and mwm ... any ideas?
  61.  
  62. Remove Xt and Xm from /etc/sys.conf, and then try from a pad to inlib
  63. the libraries.  Then startup /usr/lib/X11/vue/etc/vuelogin and see what
  64. happens.
  65.  
  66. Thomas Gilg
  67. tomg@cv.hp.com
  68.  
  69.