[prev in list] [next in list] [prev in thread] [next in thread] 

List:       snort-devel
Subject:    [Snort-devel] so_rules make errors
From:       "Jeffrey Denton" <dentonj () gmail ! com>
Date:       2008-03-15 12:31:00
Message-ID: 8ebbd7f50803150531s6ea84879s3415bf74ac2f06a9 () mail ! gmail ! com
[Download RAW message or body]

Snort-2.8.1
snortrules-snapshot-CURRENT.tar.gz - (extracted to the snort-2.8.1.rc directory)

The directory that holds the Makefile for the so_rules has moved.  The
BASEDIR entry in the Makefile was not changed.  This results in an
error when make is run.

BASEDIR needs to be changed from "../" to "../../".

dentonj@darkstar:~/src/snort-2.8.1.rc/so_rules/src$ make
ls: cannot access web-misc_*.c: No such file or directory
p2p_winny.c:24:33: error: sf_snort_plugin_api.h: No such file or directory
p2p_winny.c:25:29: error: sf_snort_packet.h: No such file or directory
p2p_winny.c:31: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'ruleWINNYref1'
p2p_winny.c:37: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
p2p_winny.c:43: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
p2p_winny.c:48: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'ruleWINNY'
p2p_winny.c: In function 'ruleWINNYeval':
p2p_winny.c:80: error: 'u_int32_t' undeclared (first use in this function)
p2p_winny.c:80: error: (Each undeclared identifier is reported only once
p2p_winny.c:80: error: for each function it appears in.)
p2p_winny.c:80: error: expected ';' before 'i'
p2p_winny.c:81: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
p2p_winny.c:81: error: 'ptr' undeclared (first use in this function)
p2p_winny.c:82: error: 'u_int8_t' undeclared (first use in this function)
p2p_winny.c:82: error: expected ';' before 't'
p2p_winny.c:84: error: expected ';' before 's'
p2p_winny.c:108: error: 'SFSnortPacket' undeclared (first use in this function)
p2p_winny.c:108: error: 'sp' undeclared (first use in this function)
p2p_winny.c:108: error: expected expression before ')' token
p2p_winny.c:110: error: 'NULL' undeclared (first use in this function)
p2p_winny.c:111: error: 'RULE_NOMATCH' undeclared (first use in this function)
p2p_winny.c:119: error: 't' undeclared (first use in this function)
p2p_winny.c:120: error: 'i' undeclared (first use in this function)
p2p_winny.c:121: error: 's' undeclared (first use in this function)
p2p_winny.c:122: error: 'tmp' undeclared (first use in this function)
p2p_winny.c:131: error: 'RULE_MATCH' undeclared (first use in this function)
make: *** [p2p_winny] Error 1

Running make from the parent directory results in errors as well.

dentonj@darkstar:~/src/snort-2.8.1.rc/so_rules$ make -f src/Makefile
ls: cannot access p2p_*.c: No such file or directory
ls: cannot access dos_*.c: No such file or directory
ls: cannot access exploit_*.c: No such file or directory
ls: cannot access bad-traffic_*.c: No such file or directory
ls: cannot access web-client_*.c: No such file or directory
ls: cannot access netbios_*.c: No such file or directory
ls: cannot access misc_*.c: No such file or directory
ls: cannot access nntp_*.c: No such file or directory
ls: cannot access smtp_*.c: No such file or directory
ls: cannot access web-misc_*.c: No such file or directory
building p2p ... Can't open perl script "category-build.pl": No such
file or directory
make: *** [p2p] Error 2

Changing BASEDIR from "../" to "../../" fixes this problem.

dentonj@darkstar:~/src/snort-2.8.1.rc/so_rules/src$ make
ls: cannot access web-misc_*.c: No such file or directory
building p2p ... done
building dos ... done
building exploit ... done
building bad-traffic ... done
building web-client ... done
building netbios ... done
building misc ... done
building nntp ... done
building smtp ... done
building web-misc ... ld: web-misc_*.o: No such file: No such file or directory
make: *** [web-misc] Error 1

The file web-misc.c does not have an associated web-misc_<some
exploit>.c file.  So the error can be ignored.  Removing "web-misc"
from the "libs" entry in the Makefile will remove the error.

Jeff

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Snort-devel mailing list
Snort-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/snort-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic