Project

General

Profile

Actions

Bug #1294

closed

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

Added by Mats Klepsland over 9 years ago. Updated over 9 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 #2

Updated by Victor Julien over 9 years ago

  • Status changed from New to Closed
  • Target version set to 2.1beta2
  • % Done changed from 0 to 100

Merged, thanks!

Actions

Also available in: Atom PDF