[Oisf-devel] Suricata compile fail with current git and PF_RING svn

Peter Manev petermanev at gmail.com
Thu Feb 6 17:14:28 UTC 2014


On Thu, Feb 6, 2014 at 6:00 PM, Mark Stingley <mark.stingley at gmail.com> wrote:
> 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 pfring version is it that you are using?
Did your pfring installation go without a problem?
Do you see the correct pfring libraries under "/usr/local/pfring/lib/"
and includes under "/usr/local/pfring/include/"?
Can you try without " LIBS=-lrt" ?


>
> 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
>
>
> _______________________________________________
> Suricata IDS Devel mailing list: oisf-devel at openinfosecfoundation.org
> Site: http://suricata-ids.org | Participate:
> http://suricata-ids.org/participate/
> List: https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel
> Redmine: https://redmine.openinfosecfoundation.org/



-- 
Regards,
Peter Manev



More information about the Oisf-devel mailing list