home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sun / misc / 5357 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.8 KB  |  38 lines

  1. Newsgroups: comp.sys.sun.misc
  2. Path: sparky!uunet!ocsmd!finnbogi!obi
  3. From: obi@finnbogi.ocs.com (Obi Thomas)
  4. Subject: Shareable libraries problem (Not again!).
  5. Message-ID: <By081J.2L1@finnbogi.ocs.com>
  6. Sender: obi@finnbogi (Obi Thomas)
  7. Reply-To: obi@finnbogi.ocs.com
  8. Organization: Online Computer Systems, Inc.
  9. Date: Fri, 20 Nov 1992 07:41:42 GMT
  10. Lines: 26
  11.  
  12. Ok, for the (n + 1)th time, could someone please explain yet again how to
  13. break a shareable library into .so and .sa parts? I know the standard
  14. explanation, "Put initialized data in the .so part and the .sa part." But
  15. what I see of the MIT X11R5 source code doesn't jibe with this.
  16.  
  17. For example, in mit/lib/Xt, there are dozens of initialized structures and
  18. arrays (the class structures and the resource arrays). But if I understand
  19. the Imakefile right, these all go in only the .sa part. Why? Isn't this in
  20. conflict with the commonly stated rule above?
  21.  
  22. What about C++? The virtual function tables for a class are initialized
  23. data, right? What do I do with them? What about static objects which have
  24. constructors? I'm trying to make shareable libraries out of some of our
  25. C++ class libraries and not having much luck --- I keep getting unresolved
  26. externals. Some of these go away when I (pretty much at random) stick
  27. different things in the .so and .sa files, but it's hopeless because I'm
  28. flying blind here. I know it's possible because the C++ runtime library is
  29. shareable --- I just don't know what to do.
  30.  
  31. All this has me writhing in pain, so any tips would be greatly welcome.
  32. Also appreciated would be the names of books/papers that discuss this (all
  33. I have is the Sun Programmers Overview and the paper on shareable
  34. libraries on the Sun demo CDROM).
  35.  
  36. I'd prefer answers by email and I'll post a summary if there's interest.
  37. Thank you.
  38.