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