From owner-freebsd-questions@FreeBSD.ORG Tue Feb 5 03:30:51 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49A3F16A41B for ; Tue, 5 Feb 2008 03:30:51 +0000 (UTC) (envelope-from bhuvaneswari.ramkumar@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id 1B2A713C45A for ; Tue, 5 Feb 2008 03:30:48 +0000 (UTC) (envelope-from bhuvaneswari.ramkumar@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so2248945fgg.35 for ; Mon, 04 Feb 2008 19:30:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; bh=39sIGMwOgRzAZ3hTr6DkmNIPwbw89rlSYOiP9v47mIg=; b=PudiD77jd4s26QbstFx8UCThp8Gp6DjuwfS/xaNcFjLTCo6i1PAMQuTpcbS4ebOPTnKf1cFCLHvJWuarecArIN21W73I8SnIvgWvTBuPlHGO3VP0nax1ta9kEyBnZKYUp9Re6tbtxYdWyzpep7PUsSQ/RYoE5hnhmMimUU1zn5g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=WKJKWOvncsI+0/4/OaM3AKtMKvIjKTU/7Bs9ZAuaeGlFoG7RWsI8K8b9SnLUo10LTjpdOZ/WvjzKppq9tLhT7+kyUqQZHnimjFIFg332tod1U/Aj/EjoY3VdOjI6n7mPSx1N0wmYRpQeNMHwlUe0hE1NUQ10rk8Ad29mHQuDAcU= Received: by 10.86.53.8 with SMTP id b8mr7297857fga.64.1202182247079; Mon, 04 Feb 2008 19:30:47 -0800 (PST) Received: by 10.86.58.7 with HTTP; Mon, 4 Feb 2008 19:30:47 -0800 (PST) Message-ID: <7c7927920802041930y1b209944ice740f47d006cf83@mail.gmail.com> Date: Mon, 4 Feb 2008 22:30:47 -0500 From: "Bhuvaneswari Ramkumar" Sender: bhuvaneswari.ramkumar@gmail.com To: Mel In-Reply-To: <200802042041.57804.fbsd.questions@rachie.is-a-geek.net> MIME-Version: 1.0 References: <7c7927920802040954u948a5ebga929f11a2fa76a45@mail.gmail.com> <200802041929.32973.fbsd.questions@rachie.is-a-geek.net> <7c7927920802041036v79bc635h34c51f747384b0ad@mail.gmail.com> <200802042041.57804.fbsd.questions@rachie.is-a-geek.net> X-Google-Sender-Auth: ee56f5d95a76d948 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Libnet in FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2008 03:30:51 -0000 Sorry I'm not getting this....... what did u want me to try ? I'm not using the ports collection and have installed libnet 1.1.2.1 in root. Did u say I had to add these lines to the make-file of my app.c sample file or to the BSD make-file in usr/share/mk or is it something else ? .........also my /usr/local/lib doesnt have any lib11 file like that. Just wanted to understand it before I tried it. Thanks Bhuvana On Feb 4, 2008 2:41 PM, Mel wrote: > On Monday 04 February 2008 19:36:17 Bhuvaneswari Ramkumar wrote: > > > well actually, even the sample applications seem to have the same > problem, > > So I'm guessing its some installation issue: > > > > # cc dns.c > > /var/tmp//ccImyVt1.o(.text+0x88) : In function 'main' : : undefined > > reference to 'libnet_init' > > > > This is how my compilation result reads for the dns.c sample > application. > > Says the same for all libnet calls. > > Linking 101. If you used the port (/usr/ports/net/libnet) then: > > cc -L/usr/local/lib/libnet11 -lnet dns.c > > or: > cat <BSDmakefile > PROG=dns > LDADD=-lnet > LDFLAGS+=-L/usr/local/lib/libnet11 > > .include > EOF > > then type make :) > -- > Mel >