[Oisf-users] Error in compiling the pf_ring support

Eric Leblond eric at regit.org
Sat Mar 19 23:44:20 UTC 2011


Le samedi 19 mars 2011 à 21:43 +0100, phillip at bailey.st a écrit :
> Hash: SHA1
> Dear All,
> I'm trying to implement the pf_ring support on the Smooth-Sec
> distribution, I've followed step by step your how to
> http://bit.ly/hItajV and at the very end I'm getting one error
> on compiling suricata, please see the error below. There's any
> patch to fix this ?
> source-pfring.c: In function 'ReceivePfringThreadInit':
> source-pfring.c:285: error: too few arguments to function
> 'pfring_set_cluster'
> source-pfring.c:235: warning: unused variable 'tmpctype'
> make[2]: *** [source-pfring.o] Error 1
> make[2]: Leaving directory `/root/suricata-1.1beta1/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/suricata-1.1beta1'
> make: *** [all] Error 2
> Thanks in advance for your help.

I manage to get exactly the same issue. The compilation fails because
HAVE_PFRING_CLUSTER_TYPE is not set as it should be (pfring_set_cluster
test fails due to some problem). You can check this in config.log, it
should be indicated some lines below:
    checking for pfring_set_cluster in -lpfring
In my case, this was due to the fact I did not install correctly
linux/pf_ring.h. After doing from pf_ring root directory:
  sudo cp kernel/linux/pf_ring.h /usr/local/include/linux/
I then rerun configure and compilation went fine.

Eric Leblond <eric at regit.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-users/attachments/20110320/e894b373/attachment.sig>

More information about the Oisf-users mailing list