Project

General

Profile

Actions

Bug #1294

closed

Configure doesn't use --with-libpcap-libraries when testing PF_RING library

Added by Mats Klepsland about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

Configure doesn't honour --with-libpcap-libraries and --with-libpcap-includes
when testing libpfring:

$ ./configure --enable-pfring --with-libpfring-includes=/opt/site/pf_ring/include/ --with-libpfring-libraries=/opt/site/pf_ring/lib/ --with-libpcap-includes=/opt/site/libpcap/include/ --with-libpcap-libraries=/opt/site/libpcap/lib/

[..]
checking for pfring_open in -lpfring... no
checking for pfring_stats in -lpfring... no

   ERROR! --enable-pfring was passed but the library was not found or version is >4, go get it
   from http://www.ntop.org/PF_RING.html

libpfring depends on libpcap (at least when BPF filters are enabled).

Because of this, the libpfring checks always fails when libpcap is in
a non-default location.

The reason for this seems to be that libpcap is processed later than
libpfring in configure.ac. Switching the order of configure.ac, so that
libpcap comes before libpfring, seems to fix the issue.

Actions

Also available in: Atom PDF