home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sgi / 13013 < prev    next >
Encoding:
Text File  |  1992-08-29  |  1.7 KB  |  41 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!mcsun!Germany.EU.net!ira.uka.de!chx400!josef!sinkwitz
  3. From: sinkwitz@ifi.unizh.ch (Rainer Sinkwitz)
  4. Subject: Shared Lib building question
  5. Message-ID: <1992Aug28.171213.584@ifi.unizh.ch>
  6. Organization: University of Zurich, Department of Computer Science
  7. Date: Fri, 28 Aug 92 17:12:13 GMT
  8. Lines: 31
  9.  
  10.  
  11. I'm trying to convert a library to a shared library following 
  12. the rules in the book. But the book doesn't tell anything about
  13. /usr/include/shlib.h .
  14.  
  15. I'm still unsure about how to import system calls and libc symbols.
  16. It should be sufficient to begin every file with
  17. #define SHLIB
  18. #include <shlib.h>
  19.  
  20. The _libc_ symbols are then defined in the /usr/lib/libc.a library:
  21. % nm /usr/lib/libc.a | grep _libc_
  22. _libc__ctype        |00000000|Global  |                  |      |  2|SData   
  23. _libc_sys_errlist   |00000000|Global  |                  |      |  2|SData   
  24. _libc_sys_nerr      |00000004|Global  |                  |      |  3|SData   
  25. _libc_perror        |00000008|Global  |                  |      |  4|SData   
  26. _libc_getgrent      |00000000|Global  |                  |      |  2|SData   
  27. _libc_fgetgrent     |00000004|Global  |                  |      |  3|SData   
  28. ... etc
  29.  
  30. I understand that a target shared library is an a.out file. But where
  31. do I tell mkshlib to include the libc.a library.
  32. If I add /usr/lib/libc.a to the #objects list I get an error.
  33.  
  34. Please help.
  35.  
  36. -- 
  37. oooooo    oooo  Rainer Sinkwitz, Multimedia Lab         sinkwitz@ifi.unizh.ch
  38.  $   $   $   "  University of Zurich, Switzerland        VOICE +41-1-257-4346
  39.  $"$$    """"$  Inst.f.Informatik, Winterthurerstr. 190   FAX +41-1-363-00-35
  40. o$o "$o  $ooo"  CH-8057-Z\"urich
  41.