Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Feb 1999 20:21:27 -0800 (PST)
From:      Alex Zepeda <garbanzo@hooked.net>
To:        Chuck Robey <chuckr@mat.net>
Cc:        "Alton, Matthew" <Matthew.Alton@anheuser-busch.com>, "'Gurudatt Shenoy'" <gurudatt@cs.tamu.edu>, FreeBSD Hackers <freebsd-hackers@FreeBSD.ORG>
Subject:   RE: What libraries for socket programs in FreeBSD?
Message-ID:  <Pine.BSF.4.05.9902182020030.254-100000@zippy.dyn.ml.org>
In-Reply-To: <Pine.BSF.4.05.9902182312160.320-100000@picnic.mat.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 18 Feb 1999, Chuck Robey wrote:

> On Thu, 18 Feb 1999, Alex Zepeda wrote:
> 
> > On Thu, 18 Feb 1999, Chuck Robey wrote:
> > 
> > > On Fri, 19 Feb 1999, Alton, Matthew wrote:
> > > 
> > > > man socket
> > > > man connect
> > > > man listen
> > > > man bind
> > > > ...
> > > 
> > > He didn't ask what they were, he asked *where* they were.
> > 
> > Yes, and the man pages should and usually do document which external
> > libraries are needed.
> 
> Not usually the ones that reside in libc, no, I haven't ever noticed
> that.  I used to have to go looking with nm, when I was new to bsd.
> Certainly none of these do, and it's pretty common for other OSs to need
> net libs.  I wasn't trying to be critical, but the advice offered no
> help.

But if you don't give gcc any libraries to link with, by default it will
at least link in libc, right?  So one could implicitly assume that if the
man page mentions no other libraries, it's in libc.  Mostly, I've found
this to be true.

- alex



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9902182020030.254-100000>