From: Jack D. <ml...@gm...> - 2009-07-02 13:20:32
|
Hi today I tried to install snort-inline on my Debian (Lenny) but I found some errors while compiling spp_clamav.c gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../src -I../../src/sfutil -I/usr/include/pcap -I../../src/output-plugins -I../../src/detection-plugins -I../../src/dynamic-plugins -I../../src/preprocessors -I../../src/preprocessors/flow -I../../src/preprocessors/portscan -I../../src/preprocessors/flow/int-snort -I../../src/preprocessors/HttpInspect/include -I../../src/preprocessors/Stream5 -I../../src/target-based -I/usr/include/mysql -DENABLE_MYSQL -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DSTREAM4_UDP -DSHUTDOWN_MEMORY_CLEANUP -DDYNAMIC_PLUGIN -DDETECTION_OPTION_TREE -DLINUX_SMP -DNFNETLINKQ -DGIDS -DHAVE_NFQ_MAXLEN -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DINLINE_FAILOPEN -DCLAMAV -fno-strict-aliasing -c spp_clamav.c spp_clamav.c: In function ‘ProcessPorts’: spp_clamav.c:191: warning: pointer targets in passing argument 1 of ‘mSplit’ differ in signedness spp_clamav.c: In function ‘ParseClamAVArgs’: spp_clamav.c:306: warning: pointer targets in initialization differ in signedness spp_clamav.c:318: warning: implicit declaration of function ‘strlcpy’ spp_clamav.c:356: warning: pointer targets in passing argument 1 of ‘mSplit’ differ in signedness spp_clamav.c:365: warning: pointer targets in passing argument 1 of ‘ProcessPorts’ differ in signedness spp_clamav.c: In function ‘ClamAVInit’: spp_clamav.c:507: warning: pointer targets in passing argument 1 of ‘ParseClamAVArgs’ differ in signedness spp_clamav.c:520: warning: implicit declaration of function ‘cl_loaddbdir’ spp_clamav.c:530: warning: implicit declaration of function ‘cl_buildtrie’ spp_clamav.c:537: error: invalid application of ‘sizeof’ to incomplete type ‘struct cl_limits’ spp_clamav.c:539: error: invalid use of undefined type ‘struct cl_limits’ spp_clamav.c:541: error: invalid use of undefined type ‘struct cl_limits’ spp_clamav.c:543: error: invalid use of undefined type ‘struct cl_limits’ spp_clamav.c:547: error: invalid use of undefined type ‘struct cl_limits’ spp_clamav.c: In function ‘ClamAVReloadDB’: spp_clamav.c:580: warning: implicit declaration of function ‘cl_freetrie’ spp_clamav.c: In function ‘strip_http_headers_p’: spp_clamav.c:650: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness spp_clamav.c:660: warning: assignment discards qualifiers from pointer target type spp_clamav.c:663: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness spp_clamav.c:663: warning: pointer targets in assignment differ in signedness spp_clamav.c:678: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness spp_clamav.c:678: warning: pointer targets in assignment differ in signedness spp_clamav.c:706: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness spp_clamav.c:706: warning: pointer targets in assignment differ in signedness spp_clamav.c: In function ‘StoreAndScan’: spp_clamav.c:877: warning: passing argument 4 of ‘cl_scandesc’ from incompatible pointer type spp_clamav.c:877: warning: passing argument 5 of ‘cl_scandesc’ makes integer from pointer without a cast spp_clamav.c:877: error: too many arguments to function ‘cl_scandesc’ make[4]: *** [spp_clamav.o] Error 1 make[4]: Leaving directory `/usr/src/snort-inline/src/preprocessors' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/src/snort-inline/src/preprocessors' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/snort-inline/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/snort-inline' make: *** [all] Error 2 These are the steps: # head -1 RELEASE.NOTES 2008-08-12 - Snort 2.8.3 # uname -a Linux ips 2.6.26-2-686 #1 SMP Sun Jun 21 04:57:38 UTC 2009 i686 GNU/Linux # svn co https://snort-inline.svn.sourceforge.net/svnroot/snort-inline/trunk # cd trunk/ # sh autojunk.sh # ./configure --enable-pthread --enable-memory-cleanup --enable-stream4udp --enable-inline-init-failopen --enable-nfnetlink --enable-clamav --enable-linux-smp-stats --with-mysql ( configure ends successfully) # make Thanks. |