ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-users: [Wireshark-users] Compilation problems with CVS libpcap

From: "Stephen O'Connell" <srpoc103@xxxxxxxxxxxxxxx>
Date: Fri, 8 Feb 2008 14:43:57 +0000
Hi,

I would like to use Wireshark to monitor USB transfers - to do this I believe
I need to use a CVS version of libpcap because the USB code hasn't made it in
to a package yet. 

I've successfully compiled libpcap from CVS, but can't get Wireshark (0.99.7)
to compile against it. Whenever I run ./configure I get the following error:

checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking for pcap_open_live in -lpcap... no
checking for pcap_open_live in -lpcap with -lcfg -lodm... no
checking for pcap_open_live in -lpcap with -lpfring... no
configure: error: Can't link with library libpcap.

In the config.log the following error is given:

configure:26004: checking for pcap.h
configure:26011: result: yes
configure:26036: checking for pcap_open_live in -lpcap
configure:26071: gcc -o conftest -D_U_="__attribute__((unused))" -g -O2 -Wall
-W -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith
-Wno-pointer-sign -I/usr/local/include -pthread -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/freetype2 -I/usr/include/libpng12   -I/usr/local/include/pcap 
-I/usr/local/include -I/usr/local/include/pcap  -L/usr/local/lib conftest.c
-lpcap    >&5
/usr/local/lib/libpcap.a(gencode.o): In function `.L186':
gencode.c:(.text+0x869): undefined reference to `pcap_parse'
collect2: ld returned 1 exit status

Can anybody point me in the direction of the problem please?

Thanks,

Steve