From owner-freebsd-questions@FreeBSD.ORG Mon Feb 4 18:36:19 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 D03F516A417 for ; Mon, 4 Feb 2008 18:36:19 +0000 (UTC) (envelope-from bhuvaneswari.ramkumar@gmail.com) Received: from hu-out-0506.google.com (hu-out-0506.google.com [72.14.214.226]) by mx1.freebsd.org (Postfix) with ESMTP id 3F61A13C45D for ; Mon, 4 Feb 2008 18:36:18 +0000 (UTC) (envelope-from bhuvaneswari.ramkumar@gmail.com) Received: by hu-out-0506.google.com with SMTP id 28so2517923hub.8 for ; Mon, 04 Feb 2008 10:36:17 -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=UpKD/cRs22uQfDE8rVEjwszPNi6npPbYvOmBn9It2O0=; b=GsSA/JVC+RJ2hXJjkUzWUGQhCEuOspGLWKk7VQ2k6niKuvTkOD8VDBPrcgXFzcT/VWkY4FZY7Op3442f0YC+IP3adq1tztVcu8k7l33dCrWqKioqYOILmKW3x1UBjnOA72qsuzVjgdZsfNXHGJbdURdbjenSVI+Je0qbFKHbw28= 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=sRM453LvLgGtlWRvoMQSW45p9KmREdqpJnYEMYiUuiKLi40k5ltU3Q6kxvPsOv4foreHNCVeT5wkkgbqNCEt5FjhbV3h60GNL5GNylA6HfWRZdsDLPvp31FJcvgbrdtk6uCvTWnc6fBPcTCrahiBC0dVfcEJKeZ48u4qxay03j8= Received: by 10.86.84.5 with SMTP id h5mr6886085fgb.53.1202150177465; Mon, 04 Feb 2008 10:36:17 -0800 (PST) Received: by 10.86.58.7 with HTTP; Mon, 4 Feb 2008 10:36:17 -0800 (PST) Message-ID: <7c7927920802041036v79bc635h34c51f747384b0ad@mail.gmail.com> Date: Mon, 4 Feb 2008 13:36:17 -0500 From: "Bhuvaneswari Ramkumar" Sender: bhuvaneswari.ramkumar@gmail.com To: Mel In-Reply-To: <200802041929.32973.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> X-Google-Sender-Auth: a9157b4983f65062 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: Mon, 04 Feb 2008 18:36:19 -0000 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. On Feb 4, 2008 1:29 PM, Mel wrote: > On Monday 04 February 2008 18:54:49 Bhuvaneswari Ramkumar wrote: > > > I'm trying to work with Libnet in BSD, I ftped the package, did a > > ./configure and a make install and things seemed to be fine. > > But when I try to compile a simple application, I get a msg : " > undefined > > reference :libnet_init" , actually it looks like it doesnt recognize any > of > > the libnet functions calls. Am I missing something here ? or is there > > something else to be done about getting libnet to run here ? > > Could you show the entire compile line, you're likely to miss > -L/usr/local, > but there may be other things. > > Also helps to know what you use for you simple application: bsd's make > with a > Makefile, gmake with a Makefile or just type commands by hand. > > -- > Mel > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >