Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-users: Re: [Ethereal-users] Compile help question

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Mon, 24 Apr 2006 23:27:15 -0700
King, John (Greg) (LMIT-HOU) wrote:

configure:24126: checking for pcap_open_live in -lpcap
configure:24156: gcc -o conftest -D_U_="__attribute__((unused))" -Wall
-Wpointer-arith -W  -g -O2 -I/usr/local/include -I/usr/includ
e/glib-2.0 -I/usr/lib/glib-2.0/include    -I/usr/local/include
-L/usr/local/lib conftest.c -lpcap    >&5
/usr/local/lib/libpcap.a(pcap-linux.o)(.text+0xe1): In function
`pcap_read_linux':
: undefined reference to `pfring_recv'
/usr/local/lib/libpcap.a(pcap-linux.o)(.text+0x83d): In function
`pcap_close_linux':
: undefined reference to `pfring_close'
/usr/local/lib/libpcap.a(pcap-linux.o)(.text+0x91d): In function
`pcap_open_live':
: undefined reference to `pfring_open'
/usr/local/lib/libpcap.a(pcap-linux.o)(.text+0x13bd): In function
`pcap_set_cluster':
: undefined reference to `pfring_set_cluster'
/usr/local/lib/libpcap.a(pcap-linux.o)(.text+0x13c9): In function
`pcap_remove_from_cluster':
: undefined reference to `pfring_remove_from_cluster'
/usr/local/lib/libpcap.a(pcap-linux.o)(.text+0x13d5): In function
`pcap_set_reflector':
: undefined reference to `pfring_set_reflector'

It appears that the routines to use the ring buffer aren't in libpcap itself.

What library are they in? -lpfring? Ethereal's configuration script needs to link with that library, as well.