atom feed14 messages in org.freebsd.freebsd-questionsLibnet in FreeBSD
FromSent OnAttachments
Bhuvaneswari RamkumarFeb 4, 2008 9:54 am 
MelFeb 4, 2008 10:29 am 
Bhuvaneswari RamkumarFeb 4, 2008 10:36 am 
Ashish Shukla आशीष शुक्लFeb 4, 2008 11:22 am 
Bhuvaneswari RamkumarFeb 4, 2008 11:25 am 
Ashish Shukla आशीष शुक्लFeb 4, 2008 11:38 am 
MelFeb 4, 2008 11:41 am 
Bhuvaneswari RamkumarFeb 4, 2008 11:47 am 
Bhuvaneswari RamkumarFeb 4, 2008 11:53 am 
MelFeb 4, 2008 1:00 pm 
Bhuvaneswari RamkumarFeb 4, 2008 7:30 pm 
GerardFeb 5, 2008 4:24 am 
Bhuvaneswari RamkumarFeb 5, 2008 9:04 am 
Bhuvaneswari RamkumarFeb 5, 2008 8:29 pm 
Subject:Libnet in FreeBSD
From:Bhuvaneswari Ramkumar (ramk@iastate.edu)
Date:Feb 4, 2008 10:36:01 am
List:org.freebsd.freebsd-questions

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@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.