*BSD News Article 50771


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!agate!chiuc
From: chiuc@shawnee.CS.Berkeley.EDU (C.Y. Chiu)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Can not compile?
Date: 12 Sep 1995 18:58:51 GMT
Organization: University of California, Berkeley
Lines: 22
Message-ID: <434l9b$c59@agate.berkeley.edu>
References: <42o9kq$jan@agate.berkeley.edu> <42pb4k$hlr@bonnie.tcd-dresden.de> <42vvhe$1uo@agate.berkeley.edu> <430ug0$sj0@bonnie.tcd-dresden.de>
NNTP-Posting-Host: shawnee.cs.berkeley.edu

In article <430ug0$sj0@bonnie.tcd-dresden.de>,
J Wunsch <joerg_wunsch@uriah.heep.sax.de> wrote:

>All the syms you mentioned are supposed to be in libc.{a,so.2.*}.
>
>Perhaps your shared lib is kaputt?  You can also try linking it
>statically to force the use of libc.a (cc -o foo -static foo.c).

Yeap, -static works! But it would be annoying to have to edit all the 
Makefiles to have -static as one of the options.  Here are 
the libc that I found:

        4:-lc.2.1 => /usr/lib/libc.so.2.1 (4 -> -1)
        15:-lc.1.1 => /usr/lib/libc.so.1.1 (15 -> -1)
        31:-lc.4.0 => /usr/lib/libc.so.4 (74 -> 76)

Does this look right?


Chun-Yang Chiu
-------------------------
cchiu@uclink.berkeley.edu