[Oisf-devel] Suricata compile fail with current git and PF_RING svn
Mark Stingley
mark.stingley at gmail.com
Thu Feb 6 17:00:50 UTC 2014
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.
Variations of this command were tried:
./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
I kept getting this error:
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
Which is more detailed in the config.log:
configure:16039: checking for pfring_open in -lpfring
configure:16064: gcc -o conftest -g -O2 -Wextra
-Werror-implicit-function-declar
ation -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
-lnet -lpthread -lyaml -lpcre >&5
/usr/local/lib/libpfring.so: undefined reference to `numa_node_of_cpu'
/usr/local/lib/libpfring.so: undefined reference to `clock_gettime'
/usr/local/lib/libpfring.so: undefined reference to `numa_bind'
/usr/local/lib/libpfring.so: undefined reference to `numa_parse_nodestring'
/usr/local/lib/libpfring.so: undefined reference to `numa_available'
configure:16088: checking for pfring_stats in -lpfring
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
/usr/local/lib/libpfring.so: undefined reference to `numa_node_of_cpu'
/usr/local/lib/libpfring.so: undefined reference to `numa_bind'
/usr/local/lib/libpfring.so: undefined reference to `numa_parse_nodestring'
/usr/local/lib/libpfring.so: undefined reference to `numa_available'
pass --enable-non-bundled-htp to Suricata's configure script.
Add --with-libhtp-includes=<dir> and --with-libhtp-libraries=<dir> if
libhtp is not installed in the include and library paths.
After downloading the stable releases of both pf_ring and Suricata, both
compiled and installed successfully.
Any ideas?
Thanks.
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-devel/attachments/20140206/e4686bfa/attachment.html>
More information about the Oisf-devel
mailing list