Date: Mon, 4 Feb 2008 13:36:17 -0500 From: "Bhuvaneswari Ramkumar" <ramkumar@iastate.edu> To: Mel <fbsd.questions@rachie.is-a-geek.net> Cc: freebsd-questions@freebsd.org Subject: Re: Libnet in FreeBSD Message-ID: <7c7927920802041036v79bc635h34c51f747384b0ad@mail.gmail.com> In-Reply-To: <200802041929.32973.fbsd.questions@rachie.is-a-geek.net> References: <7c7927920802040954u948a5ebga929f11a2fa76a45@mail.gmail.com> <200802041929.32973.fbsd.questions@rachie.is-a-geek.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <fbsd.questions@rachie.is-a-geek.net> 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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7c7927920802041036v79bc635h34c51f747384b0ad>