From owner-freebsd-hackers Thu Feb 18 20:53: 9 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from obie.softweyr.com (unknown [204.68.178.33]) by hub.freebsd.org (Postfix) with ESMTP id AE9A9115DB for ; Thu, 18 Feb 1999 20:53:00 -0800 (PST) (envelope-from wes@softweyr.com) Received: from softweyr.com (zaphod.softweyr.com [204.68.178.35]) by obie.softweyr.com (8.8.8/8.8.8) with ESMTP id VAA15840; Thu, 18 Feb 1999 21:52:33 -0700 (MST) (envelope-from wes@softweyr.com) Message-ID: <36CCEE11.7CFDBB98@softweyr.com> Date: Thu, 18 Feb 1999 21:52:33 -0700 From: Wes Peters Organization: Softweyr llc X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 3.0-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Alex Zepeda Cc: Chuck Robey , "Alton, Matthew" , "'Gurudatt Shenoy'" , FreeBSD Hackers Subject: Re: What libraries for socket programs in FreeBSD? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alex Zepeda wrote: > On Thu, 18 Feb 1999, Chuck Robey wrote: > > On Thu, 18 Feb 1999, Alex Zepeda wrote: > > > On Thu, 18 Feb 1999, Chuck Robey wrote: > > > > > > 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. You are correct, sir; if a library is not mentioned in the man page that implies the function is in libc (or, in some cases, libc_r). If it is not, please submit a PR. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://www.softweyr.com/~softweyr wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message