From owner-freebsd-questions@FreeBSD.ORG Tue Feb 5 12:24:31 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 5CA7916A46D for ; Tue, 5 Feb 2008 12:24:31 +0000 (UTC) (envelope-from gerard@seibercom.net) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.189]) by mx1.freebsd.org (Postfix) with ESMTP id C9BB513C4CE for ; Tue, 5 Feb 2008 12:24:30 +0000 (UTC) (envelope-from gerard@seibercom.net) Received: by fk-out-0910.google.com with SMTP id b27so2884630fka.11 for ; Tue, 05 Feb 2008 04:24:29 -0800 (PST) Received: by 10.82.177.3 with SMTP id z3mr15241818bue.35.1202214264998; Tue, 05 Feb 2008 04:24:24 -0800 (PST) Received: from scorpio ( [67.189.206.211]) by mx.google.com with ESMTPS id i6sm8116955gve.5.2008.02.05.04.24.21 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Feb 2008 04:24:22 -0800 (PST) Date: Tue, 5 Feb 2008 07:24:09 -0500 From: Gerard To: freebsd-questions@freebsd.org Message-ID: <20080205072409.73621f48@scorpio> In-Reply-To: <7c7927920802041930y1b209944ice740f47d006cf83@mail.gmail.com> 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> <7c7927920802041930y1b209944ice740f47d006cf83@mail.gmail.com> Organization: seibercom.net X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.7; i386-portbld-freebsd6.2) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX+/v7++v6YOTrq8PCcuIX989UvOSj++v0BNCbpAAAAB3RJTUUHsQwfFzs7RBhzUQAAAhJJREFUOI1dU8GOqzAMNKIoV1bvwD1i0ysqrHplIdBrVSX7ATSbd03VVvn9tQNtQy0hjAdn7LED4AAcPtWm9RV+MPSfxhBLx9ajd6X/ngB6/mTwnRSZua7i7Ca+0ctZKo4Qmz+JY13X6I3nFZBxIYW1PbgfQ5RP8g0XlltEWGf3cV03joYpRnFbvYDKbXjZlXyyhEZA4lI+cN3NaVXE4VKjSwTExO10eTEkkJVqIAD5z0nUBQJluQDRSQjcrBiHAJxZlAH5CUMBMC7OcJ4LMQNnxhZ1HYPscMc6J4UlWRMNwzOpCcAHKSICd1EDn83abdREIbXsHkD1OinP1aCUCOEVRaa1lMcvywUWdYgk13JQUpYNKmvXQ8Kw5ML9YI5h8SakctBc7E/IYuLhYd/zZIk+1gM1vNweQBvHE0j+oYah3sMqAytQYlZk6+ANaaawJdu3OFzYGMZ3iGpa3qMlq9ZH0VZTgrCtw/ngdYkEIIpSbP1bWQAdFdX9vocBdkH2qVjVmuMu3gI5rjs814EUdrCZgWlPaxZZ3RiLFUtr+ud0PXwp2dnQSNXgePt6AZpBj6UMJ7VQkzN4utVeaSW1Dhn/kblGrKeMvNGnzwX4zuEDarYz1KdPtR60Gul0Gued+515SJXhCsl+Tx/3kY/UDvicPll9mfu50t3tvQ/thZpJYgeuwdSKNJ6tCD98MCgoxLDaPxbwqqwPWaWiAAAAAElFTkSuQmCC X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(gxJxxcR nSNPNr*/^~StawWU9KDJ-CT0k$f#@t2^K&BS_f|?ZV/.7Q User-Agent: Claws Mail 3.0.2 (GTK+ 2.12.3; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/EanK2wiZV5gz19QEqNaTB1n"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Subject: Re: Libnet in FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2008 12:24:31 -0000 --Sig_/EanK2wiZV5gz19QEqNaTB1n Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 4 Feb 2008 22:30:47 -0500 "Bhuvaneswari Ramkumar" wrote: > On Feb 4, 2008 2:41 PM, Mel > wrote: >=20 > > 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=3Ddns > > LDADD=3D-lnet > > LDFLAGS+=3D-L/usr/local/lib/libnet11 > > > > .include > > EOF > > > > then type make :) > > -- > > Mel > Sorry I'm not getting this....... >=20 > 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. Please don't "top post". If you don't know what that means, Google for it. Is there any specific reason you choose not to use the ports system to install 'libnet'? It is available! --=20 Gerard gerard@seibercom.net Best of all is never to have been born. Second best is to die soon. --Sig_/EanK2wiZV5gz19QEqNaTB1n Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkeoVWoACgkQ6DWTaTcTwMm1nACg1pxnKSVBObO/4r3cjjMfCqeW ZkUAnjoFKus3QrjV8xfOemd8azB9jFm+ =LwnW -----END PGP SIGNATURE----- --Sig_/EanK2wiZV5gz19QEqNaTB1n--