Snort mailing list archives

Re: snort3_build261 cannot work with nfq Re:Re: Help! A critical error in appid, but not occur every time。


From: "Michael Altizer \(mialtize\) via Snort-users" <snort-users () lists snort org>
Date: Fri, 11 Oct 2019 19:26:40 +0000

That's odd, but we're not planning to support CentOS/RHEL 7.  CentOS 8 came out recently and we will target that.  I'll 
have a Dockerfile/docker build example image out for that in the not too distant future similar to my Fedora and Ubuntu 
ones.

On 10/10/19 11:51 PM, sofardware wrote:
Yes, /usr/include/linux/netfilter.h exits in my OS(centos7.5/kernel3.10). And I can not found why configure fail.
Adding those checks for linux/types.h and linux/sysctl.h is to resolve the flowing WARING , which suggested by:
 http://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Present-But-Cannot-Be-Compiled.html
=======================================WARNING
checking linux/netfilter.h usability... no
checking linux/netfilter.h presence... yes
configure: WARNING: linux/netfilter.h: present but cannot be compiled
configure: WARNING: linux/netfilter.h:     check for missing prerequisite headers?
configure: WARNING: linux/netfilter.h: see the Autoconf documentation
configure: WARNING: linux/netfilter.h:     section "Present But Cannot Be Compiled"
configure: WARNING: linux/netfilter.h: proceeding with the compiler's result
configure: WARNING:     ## ----------------------------------- ##
configure: WARNING:     ## Report this to snort-team () cisco com<mailto:snort-team () cisco com> ##
configure: WARNING:     ## ----------------------------------- ##
checking for linux/netfilter.h... no
checking linux/netfilter/nfnetlink_queue.h usability... yes
checking linux/netfilter/nfnetlink_queue.h presence... yes
checking for linux/netfilter/nfnetlink_queue.h... yes






At 2019-10-11 11:00:25, "Michael Altizer (mialtize)" <mialtize () cisco com><mailto:mialtize () cisco com> wrote:
I would not suggest doing that.  Which Linux distribution are you using that doesn't have 
/usr/include/linux/netfilter.h?  If it exists but detection fails, check configure.log for why.
Also, why did you add those checks for linux/types.h and linux/sysctl.h?  Was it related to the failure?

On 10/8/19 3:02 AM, sofardware via Snort-users wrote:
I don‘t know if this error is related with that:
When config libdaq, the checking for linux/netfilter.h is always “no”. So I enable the nfq forely as below:
if test "$enable_nfq_module" = yes; then
    AC_CHECK_HEADERS([ linux/types.h])
    AC_CHECK_HEADERS([ linux/sysctl.h])
    AC_CHECK_HEADERS([ linux/netfilter.h linux/netfilter/nfnetlink_queue.h libmnl/libmnl.h], [], 
[enable_nfq_module=yes],   // I change "no" to "yes" to enalbe nfq, because I cant find why  checking for 
linux/netfilter.h always fail.
[[
#ifdef HAVE_TYPES_H
#include <linux/types.h>
#endif
#ifdef  HAVE_SYSCTL_H
#inculde <linux/sysctl.h>
#endif
]])


checking whether NETMAP_API is declared... no
checking linux/types.h usability... yes
checking linux/types.h presence... yes
checking for linux/types.h... yes
checking linux/sysctl.h usability... yes
checking linux/sysctl.h presence... yes
checking for linux/sysctl.h... yes
checking for linux/netfilter.h... no
checking for linux/netfilter/nfnetlink_queue.h... yes
checking for libmnl/libmnl.h... yes
checking for mnl_socket_open in -lmnl... yes
checking for dlopen in -ldl... yes
checking for inttypes.h... (cached) yes
checking for memory.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes






_______________________________________________
Snort-users mailing list
Snort-users () lists snort org
Go to this URL to change user options or unsubscribe:
https://lists.snort.org/mailman/listinfo/snort-users

        To unsubscribe, send an email to:
        snort-users-leave () lists snort org

Please visit http://blog.snort.org to stay current on all the latest Snort news!

Please follow these rules: https://snort.org/faq/what-is-the-mailing-list-etiquette

Current thread: