[Snort-users] Snortsam with snort

quocviet nguyen nguyenquocviet.2010 at ...11827...
Sun Nov 3 12:43:02 EST 2013


hi all,

I have installed Snort Version 2.9.4.6 GRE (Build 73) on Centos 5.5,
everything works ok.

I try to install snortsam, I follow this tutorial :
http://doc.emergingthreats.net/bin/view/Main/SnortSamINSTALL


I have installed snortsam and then snortsam-pluin for firewall iptables, I
download snortsam-patch-2.8.tar.gz<http://www.snortsam.net/files/snort-plugin/snortsam-patch-2.8.tar.gz>
to
patch [source install snort ] but unsuccess , finally i decide patch
version snortsam-2.9.5.3-2.diff.gz<http://www.snortsam.net/files/snort-plugin/snortsam-2.9.5.3-2.diff.gz>
,
but still unsuccess.

I try to recompile source snort
#  ./configure --enable-dynamicplugin --enable-react --enable-flexresp3
--with-libpcap-includes=/usr/local/lib

and

# make

I receive this error :

spo_alert_fwsam.c:115: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âpvâ
spo_alert_fwsam.c: In function âAlertFWsamSetupâ:
spo_alert_fwsam.c:143: error: âNT_OUTPUT_ALERTâ undeclared (first use in
this function)
spo_alert_fwsam.c:143: error: (Each undeclared identifier is reported only
once
spo_alert_fwsam.c:143: error: for each function it appears in.)
spo_alert_fwsam.c:143: warning: passing argument 3 of
âRegisterOutputPluginâ from incompatible pointer type
spo_alert_fwsam.c:144: warning: implicit declaration of function
âRegisterPluginâ
spo_alert_fwsam.c: In function âAlertFWsamInitâ:
spo_alert_fwsam.c:197: error: âpvâ undeclared (first use in this function)
spo_alert_fwsam.c:253: warning: pointer targets in assignment differ in
signedness
spo_alert_fwsam.c:393: error: âNT_OUTPUT_ALERTâ undeclared (first use in
this function)
spo_alert_fwsam.c:395: warning: implicit declaration of function
âAddFuncToRestartListâ
spo_alert_fwsam.c: In function âFWsamNewStationKeyâ:
spo_alert_fwsam.c:663: warning: pointer targets in passing argument 1 of
â__builtin_strncpyâ differ in signedness
spo_alert_fwsam.c:679: warning: pointer targets in passing argument 2 of
âstrcpyâ differ in signedness
spo_alert_fwsam.c:681: warning: pointer targets in passing argument 1 of
âTwoFishInitâ differ in signedness
spo_alert_fwsam.c: In function âAlertFWsamâ:
spo_alert_fwsam.c:836: error: incompatible type for argument 1 of
âsfip_to_strâ
spo_alert_fwsam.c:905: warning: passing argument 2 of âTwoFishEncryptâ from
incompatible pointer type
spo_alert_fwsam.c:908: error: incompatible type for argument 1 of
âsfip_to_strâ
spo_alert_fwsam.c:930: error: incompatible type for argument 1 of
âsfip_to_strâ
spo_alert_fwsam.c:939: warning: pointer targets in assignment differ in
signedness
spo_alert_fwsam.c:940: warning: pointer targets in passing argument 1 of
âTwoFishDecryptâ differ in signedness
spo_alert_fwsam.c:940: warning: passing argument 2 of âTwoFishDecryptâ from
incompatible pointer type
spo_alert_fwsam.c:946: warning: pointer targets in passing argument 1 of
âTwoFishDecryptâ differ in signedness
spo_alert_fwsam.c:946: warning: passing argument 2 of âTwoFishDecryptâ from
incompatible pointer type
spo_alert_fwsam.c:973: error: incompatible type for argument 1 of
âsfip_to_strâ
spo_alert_fwsam.c:978: warning: pointer targets in assignment differ in
signedness
spo_alert_fwsam.c:979: warning: pointer targets in passing argument 1 of
âTwoFishDecryptâ differ in signedness
spo_alert_fwsam.c:979: warning: passing argument 2 of âTwoFishDecryptâ from
incompatible pointer type
spo_alert_fwsam.c:985: warning: pointer targets in passing argument 1 of
âTwoFishDecryptâ differ in signedness
spo_alert_fwsam.c:985: warning: passing argument 2 of âTwoFishDecryptâ from
incompatible pointer type
spo_alert_fwsam.c:999: error: incompatible type for argument 1 of
âsfip_to_strâ
spo_alert_fwsam.c:1004: error: incompatible type for argument 1 of
âsfip_to_strâ
spo_alert_fwsam.c:1009: error: incompatible type for argument 1 of
âsfip_to_strâ
spo_alert_fwsam.c:1042: error: incompatible type for argument 1 of
âsfip_to_strâ
spo_alert_fwsam.c:1047: error: incompatible type for argument 1 of
âsfip_to_strâ
spo_alert_fwsam.c:1052: error: incompatible type for argument 1 of
âsfip_to_strâ
spo_alert_fwsam.c:1062: error: incompatible type for argument 1 of
âsfip_to_strâ
spo_alert_fwsam.c:1072: error: incompatible type for argument 1 of
âsfip_to_strâ
spo_alert_fwsam.c: In function âFWsamCheckOutâ:
spo_alert_fwsam.c:1121: error: incompatible type for argument 1 of
âsfip_to_strâ
spo_alert_fwsam.c:1141: warning: passing argument 2 of âTwoFishEncryptâ
from incompatible pointer type
spo_alert_fwsam.c:1156: warning: pointer targets in assignment differ in
signedness
spo_alert_fwsam.c:1157: warning: pointer targets in passing argument 1 of
âTwoFishDecryptâ differ in signedness
spo_alert_fwsam.c:1157: warning: passing argument 2 of âTwoFishDecryptâ
from incompatible pointer type
spo_alert_fwsam.c:1163: warning: pointer targets in passing argument 1 of
âTwoFishDecryptâ differ in signedness
spo_alert_fwsam.c:1163: warning: passing argument 2 of âTwoFishDecryptâ
from incompatible pointer type
spo_alert_fwsam.c:1177: error: incompatible type for argument 1 of
âsfip_to_strâ
spo_alert_fwsam.c: In function âFWsamCheckInâ:
spo_alert_fwsam.c:1256: error: incompatible type for argument 1 of
âsfip_to_strâ
spo_alert_fwsam.c:1258: error: incompatible type for argument 1 of
âsfip_to_strâ
spo_alert_fwsam.c:1274: warning: passing argument 2 of âTwoFishEncryptâ
from incompatible pointer type
spo_alert_fwsam.c:1276: error: incompatible type for argument 1 of
âsfip_to_strâ
spo_alert_fwsam.c:1290: error: incompatible type for argument 1 of
âsfip_to_strâ
spo_alert_fwsam.c:1292: warning: pointer targets in assignment differ in
signedness
spo_alert_fwsam.c:1293: warning: pointer targets in passing argument 1 of
âTwoFishDecryptâ differ in signedness
spo_alert_fwsam.c:1293: warning: passing argument 2 of âTwoFishDecryptâ
from incompatible pointer type
spo_alert_fwsam.c:1320: error: incompatible type for argument 1 of
âsfip_to_strâ
spo_alert_fwsam.c:1325: error: incompatible type for argument 1 of
âsfip_to_strâ
spo_alert_fwsam.c:1330: error: incompatible type for argument 1 of
âsfip_to_strâ
make[3]: *** [spo_alert_fwsam.o] Error 1
make[3]: Leaving directory
`/usr/nqviet/snort/snort-2.9.4.6/src/output-plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/nqviet/snort/snort-2.9.4.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/nqviet/snort/snort-2.9.4.6'
make: *** [all] Error 2


Can you help me?

thanks.

-- 
viet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-users/attachments/20131104/67ee9c43/attachment.html>


More information about the Snort-users mailing list