From owner-freebsd-questions Sun Apr 11 16:56: 3 1999 Delivered-To: freebsd-questions@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 8BF2A14D5C for ; Sun, 11 Apr 1999 16:55:44 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id JAA07242; Mon, 12 Apr 1999 09:23:26 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id JAA49016; Mon, 12 Apr 1999 09:23:24 +0930 (CST) Message-ID: <19990412092324.R2142@lemis.com> Date: Mon, 12 Apr 1999 09:23:24 +0930 From: Greg Lehey To: Human Wong , freebsd-questions@FreeBSD.ORG Subject: Re: FreeBSD 2.2.5 socket lib References: <37109B30.B75E0277@hotmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <37109B30.B75E0277@hotmail.com>; from Human Wong on Sun, Apr 11, 1999 at 08:53:04PM +0800 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [Format recovered--see http://www.lemis.com/email/email-format.html] On Sunday, 11 April 1999 at 20:53:04 +0800, Human Wong wrote: > Hi, > > I am using FreeBSD 2.2.5 and try to write some C program. I need to > link two libraries libsocket.a and libnsl.a, but cannot find in my > machine. I have installed the whole devel package. May I ask what > should I get to install the two libraries? Any procedure that I > should follow and what URL I can refer to? It looks like you come from a System V background. System V looks on networking as an "add-on", and keeps networking code in separate libraries. BSD looks on networking as part of the system, and it keeps the functions in the standard C library. Just remove the -libsocket and -libnsl options from your Makefile, and everything should be OK. Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message