Installing Snort IPS inline mode in RHEL 5

Discussion in 'all things UNIX' started by abdosir, Jul 24, 2013.

Thread Status:
Not open for further replies.
  1. abdosir

    abdosir Registered Member

    Joined:
    Jul 24, 2013
    Posts:
    1
    Hello,

    I am trying to install snort_inline-2.3.0-RC1 in RHEL 5. I installed all the prerequisites : iptables-1.3.1, libnet-1.0.2a, pcre-6.1.
    I run into the following error when executing make for snort:

    In file included from inline.c:6:
    /usr/include/libnet.h:87:2: error: #error "byte order has not been specified, you'll
    In file included from inline.c:6:
    /usr/include/libnet.h:88: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘to’
    /usr/include/libnet.h:88: error: stray ‘#’ in program
    /usr/include/libnet.h:89: error: missing terminating " character
    In file included from ./snort_packet_header.h:8,
    from ../src/preprocessors/stream.h:4,
    from decode.h:45,
    from inline.c:8:
    /usr/include/time.h:184: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘clock’
    inline.c: In function ‘InitInlinePostConfig’:
    inline.c:158: warning: pointer targets in passing argument 11 of ‘libnet_build_ip’ differ in signedness
    inline.c:161: warning: pointer targets in passing argument 10 of ‘libnet_build_tcp’ differ in signedness
    inline.c:165: warning: pointer targets in passing argument 11 of ‘libnet_build_ip’ differ in signedness
    inline.c:167: warning: pointer targets in passing argument 13 of ‘libnet_build_icmp_unreach’ differ in signedness
    inline.c:176: warning: pointer targets in passing argument 11 of ‘libnet_build_ip’ differ in signedness
    inline.c:179: warning: pointer targets in passing argument 10 of ‘libnet_build_tcp’ differ in signedness
    inline.c:183: warning: pointer targets in passing argument 11 of ‘libnet_build_ip’ differ in signedness
    inline.c:185: warning: pointer targets in passing argument 13 of ‘libnet_build_icmp_unreach’ differ in signedness
    inline.c: In function ‘RejectSocket’:
    inline.c:422: warning: pointer targets in passing argument 1 of ‘libnet_do_checksum’ differ in signedness
    inline.c:429: warning: pointer targets in passing argument 2 of ‘libnet_write_ip’ differ in signedness
    inline.c:462: warning: pointer targets in passing argument 1 of ‘libnet_do_checksum’ differ in signedness
    inline.c:470: warning: pointer targets in passing argument 2 of ‘libnet_write_ip’ differ in signedness
    inline.c: In function ‘RejectLayer2’:
    inline.c:559: error: dereferencing pointer to incomplete type
    inline.c:589: warning: pointer targets in passing argument 1 of ‘libnet_do_checksum’ differ in signedness
    inline.c:595: warning: pointer targets in passing argument 1 of ‘libnet_do_checksum’ differ in signedness
    inline.c:602: warning: pointer targets in passing argument 6 of ‘libnet_build_ethernet’ differ in signedness
    inline.c:609: warning: pointer targets in passing argument 3 of ‘libnet_write_link_layer’ differ in signedness
    inline.c:643: warning: pointer targets in passing argument 1 of ‘libnet_do_checksum’ differ in signedness
    inline.c:649: warning: pointer targets in passing argument 1 of ‘libnet_do_checksum’ differ in signedness
    inline.c:657: warning: pointer targets in passing argument 6 of ‘libnet_build_ethernet’ differ in signedness
    inline.c:667: warning: pointer targets in passing argument 3 of ‘libnet_write_link_layer’ differ in signedness
    make[3]: *** [inline.o] Error 1
    make[3]: Leaving directory `/usr/src/snort_inline-2.3.0-RC1/src'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/usr/src/snort_inline-2.3.0-RC1/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/usr/src/snort_inline-2.3.0-RC1'
    make: *** [all] Error 2


    Can anyone help me fix this problem?
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.