<div dir="ltr">Over the past two days, I've pulled the latest builds for both pf_ring and Suricata.  After successfully compiling pf_ring, compilation of Suricata failed.<div><br></div><div>Variations of this command were tried:</div>
<div><br></div><div>./autogen.sh && LIBS=-lrt ./configure --enable-pfring --enable-geoip --with-libpfring-includes=/usr/local/pfring/include/ --with-libpfring-libraries=/usr/local/pfring/lib/ --with-libpcap-includes=/usr/local/pfring/include/ --with-libpcap-libraries=/usr/local/pfring/lib/ --with-libnss-libraries=/usr/lib --with-libnss-includes=/usr/include/nss/ --with-libnspr-libraries=/usr/lib --with-libnspr-includes=/usr/include/nspr && sudo make clean && sudo make && sudo make install && sudo ldconfig<br>
</div><div><br></div><div><div>I kept getting this error:</div><div><br></div><div>checking for pfring_open in -lpfring... no</div><div>checking for pfring_stats in -lpfring... no</div><div><br></div><div>   ERROR! --enable-pfring was passed but the library was not found or version is >4, go get it</div>
<div><br></div><div>Which is more detailed in the config.log:</div><div><br></div><div>configure:16039: checking for pfring_open in -lpfring</div><div>configure:16064: gcc -o conftest -g -O2 -Wextra -Werror-implicit-function-declar</div>
<div>ation -fno-tree-pre -Wall -Wno-unused-parameter -std=gnu99 -march=native -DHAVE_</div><div>LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DHAVE</div><div>_PFRING  -I/opt/PF_RING/include   -L/opt/PF_RING/lib conftest.c -lpfring -lpcap </div>
<div>-lnet -lpthread -lyaml -lpcre  >&5</div><div>/usr/local/lib/libpfring.so: undefined reference to `numa_node_of_cpu'</div><div>/usr/local/lib/libpfring.so: undefined reference to `clock_gettime'</div><div>
/usr/local/lib/libpfring.so: undefined reference to `numa_bind'</div><div>/usr/local/lib/libpfring.so: undefined reference to `numa_parse_nodestring'</div><div>/usr/local/lib/libpfring.so: undefined reference to `numa_available'</div>
<div><br></div><div>configure:16088: checking for pfring_stats in -lpfring</div><div>configure:16113: gcc -o conftest -g -O2 -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -Wno-unused-parameter -std=gnu99 -march=native -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DHAVE_PFRING  -I/opt/PF_RING/include   -L/opt/PF_RING/lib conftest.c -lpfring -lpcap -lrt -lnet -lpthread -lyaml -lpcre  >&5</div>
<div>/usr/local/lib/libpfring.so: undefined reference to `numa_node_of_cpu'</div><div>/usr/local/lib/libpfring.so: undefined reference to `numa_bind'</div><div>/usr/local/lib/libpfring.so: undefined reference to `numa_parse_nodestring'</div>
<div>/usr/local/lib/libpfring.so: undefined reference to `numa_available'</div><div><br></div><div>  pass --enable-non-bundled-htp to Suricata's configure script.</div><div>  Add --with-libhtp-includes=<dir> and --with-libhtp-libraries=<dir> if</div>
<div>  libhtp is not installed in the include and library paths.</div><div><br></div></div><div>After downloading the stable releases of both pf_ring and Suricata, both compiled and installed successfully.</div><div><br></div>
<div>Any ideas?</div><div><br></div><div>Thanks.</div><div><br></div><div>Mark</div><div><br></div></div>