Libnet in FreeBSD
ramkumar at iastate.edu
Mon Feb 4 19:53:25 UTC 2008
Do I need to do this for every libnet app I compile, like modify the PROG
variable in the app's folder .... even for the sample aplications already
compiled & set ?
Aside this, if someone could tell me the exact compilation steps for Libnet,
it would be really helpful.
On Feb 4, 2008 2:41 PM, Mel <fbsd.questions at rachie.is-a-geek.net> wrote:
> On Monday 04 February 2008 19:36:17 Bhuvaneswari Ramkumar wrote:
> > well actually, even the sample applications seem to have the same
> > 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
> > 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
> cat <<EOF >BSDmakefile
> .include <bsd.prog.mk>
> then type make :)
More information about the freebsd-questions