home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sun / misc / 6210 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  2.2 KB

  1. Xref: sparky comp.sys.sun.misc:6210 comp.unix.solaris:459 comp.unix.programmer:5881 comp.unix.misc:4908
  2. Newsgroups: comp.sys.sun.misc,comp.unix.solaris,comp.unix.programmer,comp.unix.misc
  3. Path: sparky!uunet!spool.mu.edu!uwm.edu!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!fstop.csc.ti.com!fstop!west
  4. From: west@chance.tsd.itg.ti.com (Roger West)
  5. Subject: Unresolved references in dynamically loaded shared library (SunOS 4.1.3)
  6. Message-ID: <WEST.93Jan11015448@chance.tsd.itg.ti.com>
  7. Sender: usenet@csc.ti.com
  8. Nntp-Posting-Host: chance.tsd.itg.ti.com
  9. Organization: Texas Instruments, Speech Mushrooms.
  10. Date: Mon, 11 Jan 1993 07:54:48 GMT
  11. Lines: 33
  12.  
  13.  
  14. Hello,
  15.  
  16. I am involved in developing an application which requires dynamically loading
  17. and executing functions from shared libraries which don't necessarily exist at
  18. the time the application driver itself is linked.  When these functions in turn
  19. have calls to functions in other shared libraries, ld.so successfully resolves
  20. these references as long their definitions reside in libraries which were
  21. scanned by ld at the time the application driver was linked (system libraries,
  22. for example).
  23.  
  24. The problem I have run into is that some of these function definitions reside
  25. in other shared libraries which have also been dynamically loaded.  In this
  26. case (unless the references and the definition reside in the same library),
  27. ld.so has no knowledge of these dynamically loaded libraries and therefore
  28. cannot search them.
  29.  
  30. Is there a way to augment this list of dynamic dependencies at run time so that
  31. the search performed by ld.so can be extended to these dynamically loaded
  32. libraries?  Investigation of the data structures defined in /usr/include/link.h
  33. seems to indicate that there is indeed a way this can be done, if the the
  34. programmer has knowledge of the dynamic linking mechanism beyond what is
  35. available from the Sun manuals.
  36.  
  37. I would be grateful for any comments or pointers to related material.
  38.  
  39.  
  40. --
  41.    _____________________________________________________________
  42.    |   Roger West              Internet: west@tsd.itg.ti.com   |
  43.    |   Texas Instruments Inc.    TI MSG: RWES                  |
  44.    |   PO Box 149149, MS 2201     Voice: (512) 250-7372        |
  45.    |___Austin, TX 78714-9149________Fax: (512) 250-7104________|
  46.