From owner-freebsd-questions@FreeBSD.ORG Wed Feb 6 04:30:04 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 940A516A41A for ; Wed, 6 Feb 2008 04:30:04 +0000 (UTC) (envelope-from bhuvaneswari.ramkumar@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by mx1.freebsd.org (Postfix) with ESMTP id 25D4F13C447 for ; Wed, 6 Feb 2008 04:30:03 +0000 (UTC) (envelope-from bhuvaneswari.ramkumar@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so2479400fgg.35 for ; Tue, 05 Feb 2008 20:30:03 -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:in-reply-to:mime-version:content-type:references:x-google-sender-auth; bh=NZMUln1bnhaLgyGtK+usqefbtQst+fZNKJxLT+GkPxg=; b=t+2ACClg3s91WZ0YNHrR/vy20GwZzLa7r3cCdvVcapQCHBfypk+aU+WgQW+s3e5FvFnlAvNodM+XqV8/2zuafzb4l2yNHOlQ0RWkcS2IRUjdMxAsU30En+XCQfnwtM4ymk9ZErBQf3vWQMReEgZonUiDxvSJ/zm3IhYAdXdnv0g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=awLYxlMQpd6E9AEa6Upn6mClsH4rj6j/FSOjBkhvmrR/gtvFTOoo4hbVvX8JFuN4bLiKf4ef+gYkdKuNwyBkD2bw7oVxTVYrmkJQbtyiKX+67cAo5JUFGf9VakP1fXkhwhCd0q135nQvEMEx6I3u7K1NNy7TWmMZNV/Eh1MgG9g= Received: by 10.86.89.4 with SMTP id m4mr8627967fgb.45.1202272202982; Tue, 05 Feb 2008 20:30:02 -0800 (PST) Received: by 10.86.58.7 with HTTP; Tue, 5 Feb 2008 20:30:02 -0800 (PST) Message-ID: <7c7927920802052030p3784c8f6w1690ab706eb01811@mail.gmail.com> Date: Tue, 5 Feb 2008 23:30:02 -0500 From: "Bhuvaneswari Ramkumar" Sender: bhuvaneswari.ramkumar@gmail.com To: freebsd-questions@freebsd.org In-Reply-To: <7c7927920802050905g6bf8c3aeu484efd1d80f98281@mail.gmail.com> 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> <7c7927920802041930y1b209944ice740f47d006cf83@mail.gmail.com> <20080205072409.73621f48@scorpio> <7c7927920802050905g6bf8c3aeu484efd1d80f98281@mail.gmail.com> X-Google-Sender-Auth: 83cc036ae999d2c9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Wed, 06 Feb 2008 04:30:04 -0000 Question: do I need to set the cflag & libs options in the libnet-config file for the compiling and linking to happen correctly ? Bhuvana On Feb 5, 2008 12:05 PM, Bhuvaneswari Ramkumar wrote: > ok after that e-mail last night, I did try a make of the ports collection > libnet > after the make, everything looked fine, atleast I didnt notice anything > missing in the log or config files but I still see the same problem, " > undefined reference to libnet_init" and msgs liks that for every libnet > call. I used -lnet too, but of no use, even did the changes in make file > that mel had suggested in the previous post. > > So I dont know what the problem here is or if this is some incompatibility > between how i have BSD and how I have libnet or probably they are not > linking together or something like that. > > Otherwise I dont see why the compiler doesnt recognize any libnet function > calls. > > Here is a question I have, I've worked in TinyOS before and I'm wondering > if in Libnet we need a separate directory for each application with its own > custom-written make file, or things can just be in one pool from where they > are compiled. I do a simple cc -lnet filename.c compile. > Is there something else I'm missing here ? > Thanks > Bhuvana > > >