From owner-freebsd-hackers Thu Feb 18 20:21:43 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from zippy.dyn.ml.org (pm3-35.ppp.wenet.net [206.15.85.35]) by hub.freebsd.org (Postfix) with ESMTP id C17D71141C for ; Thu, 18 Feb 1999 20:21:40 -0800 (PST) (envelope-from garbanzo@hooked.net) Received: from localhost (garbanzo@localhost [127.0.0.1]) by zippy.dyn.ml.org (8.9.2/8.9.1) with ESMTP id UAA03107; Thu, 18 Feb 1999 20:21:27 -0800 (PST) (envelope-from garbanzo@hooked.net) Date: Thu, 18 Feb 1999 20:21:27 -0800 (PST) From: Alex Zepeda To: Chuck Robey Cc: "Alton, Matthew" , "'Gurudatt Shenoy'" , FreeBSD Hackers Subject: RE: What libraries for socket programs in FreeBSD? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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