Red Hat Bugzilla – Bug 19690
libpcap-0.4-29.i386.rpm seems to be broken
Last modified: 2008-05-01 11:37:59 EDT
Is something wrong with libpcap-0.4-29.i386.rpm?
I wanted to use the "sting" packet-loss measurement tool from
This tool uses libpcap, and should work on Linux (the author said it does).
Anyway, using /usr/lib/libpcap.a it didn't work (from the little debugging
I did, it appears as if pcap_next does not timeout correctly, and just gets
stuck). When I compiled libpcap-0.4 (which is also available in sting's
myself (easy - just did configure and make) and used the resulting library,
sting worked perfectly.
Could it be that something is wrong in the way libpcap-0.4 is compiled, or
something? I know from (bad) experience that static libraries compiled in
previous versions of gcc (e.g., on Redhat 6.2) no longer work correctly on
Redhat 7, giving seemingly random and hard-to-detect lockups and errors.
Using objdump -x on this library says that it was compiled on Aug 12 - that
is way before Redhat 7 was released, so maybe you just forgot to recompile
it for the new gcc?
Linux uses a different libpcap than you are expecting. See details at bugzilla
#6773 et al.
*** This bug has been marked as a duplicate of 6773 ***