cant compile - undefined reference to `bpfattach'

Vinod VM vinuvm at gmail.com
Fri Oct 5 04:50:38 PDT 2007


Hi,

I'm having trouble in compiling my code with gcc on release 6.2

I've included the following headers,

stdlib.h
sys/types.h
sys/socket.h
net/if.h
net/if_var.h
net/if_types.h
net/bpf.h

When compiling the code, i'm getting the following error message

/var/tmp//ccphxfRO.o(.text+0x3c): In function `main':
: undefined reference to `bpfattach'

What am I doing wrong?

Sorry for asking such a newbie question!


More information about the freebsd-net mailing list