Re: Libnet in FreeBSD

[ Available lists | Index of freebsd-questions | Month of Feb 2008 | Week of 4 Feb 2008 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Bhuvaneswari Ramkumar <ramkumar@iastate.edu>
Date
4 Feb 2008 18:36:19
Subject
Re: Libnet in FreeBSD
Message-ID
7c7927920802041036v79bc635h34c51f747384b0ad@mail.gmail.com

In reply to
References to
Replies

[ Hide this part ]
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"
>


Elapsed time: 0.123 seconds