Home page logo
/

snort logo Snort mailing list archives

Error in encode.c in Snort 2.9.0 on Ubuntu 10.04.1 LST
From: "c.willie" <c.willie () gmail com>
Date: Mon, 25 Oct 2010 11:09:16 -0400

I'm trying to install Snort 2.9.0 on Ubuntu 10.04.1 LST. Everything
configured fine but when I run make, I get a list of errors with encode.c.
My outputs are below:

root () Ub:/usr/local/src/snort-2.9.0# ./configure
--with-dnet-includes=/usr/src/linux-headers-2.6.32-25-generic/include/config/
--with-mysql
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached)
-std=gnu99
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ranlib... (cached) ranlib
checking whether byte ordering is bigendian... no
checking for bison... bison
checking for flex... flex
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking for inttypes.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for floor in -lm... yes
checking for ceil in -lm... yes
checking for inet_ntoa in -lnsl... yes
checking for socket in -lsocket... no
checking whether printf must be declared... no
checking whether fprintf must be declared... no
checking whether syslog must be declared... no
checking whether puts must be declared... no
checking whether fputs must be declared... no
checking whether fputc must be declared... no
checking whether fopen must be declared... no
checking whether fclose must be declared... no
checking whether fwrite must be declared... no
checking whether fflush must be declared... no
checking whether getopt must be declared... no
checking whether bzero must be declared... no
checking whether bcopy must be declared... no
checking whether memset must be declared... no
checking whether strtol must be declared... no
checking whether strcasecmp must be declared... no
checking whether strncasecmp must be declared... no
checking whether strerror must be declared... no
checking whether perror must be declared... no
checking whether socket must be declared... no
checking whether sendto must be declared... no
checking whether vsnprintf must be declared... no
checking whether snprintf must be declared... no
checking whether strtoul must be declared... no
checking for strlcpy... no
checking for strlcat... no
checking for strerror... yes
checking for vswprintf... yes
checking for wprintf... yes
checking for snprintf... yes
checking size of char... 1
checking size of short... 2
checking size of int... 4
checking size of long int... 8
checking size of long long int... 8
checking size of unsigned int... 4
checking size of unsigned long int... 8
checking size of unsigned long long int... 8
checking for u_int8_t... yes
checking for u_int16_t... yes
checking for u_int32_t... yes
checking for u_int64_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for boolean... no
checking for INADDR_NONE... yes
checking for __FUNCTION__... yes
checking for pcap_datalink in -lpcap... yes
checking for pcap_lex_destroy... no
checking for pcap_lib_version... yes
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking for pcre_compile in -lpcre... yes
checking for libpcre version 6.0 or greater... yes
checking dnet.h usability... yes
checking dnet.h presence... yes
checking for dnet.h... yes
checking for eth_set in -ldnet... yes
checking for dlsym in -ldl... yes
checking for daq_load_modules in -ldaq_static... yes
checking for sparc... no
checking for visibility support... yes
checking for mysql... yes
checking for compress in -lz... yes
checking for mysql default client reconnect... yes
checking for linuxthreads... no
checking for yylex_destroy support... yes
configure: creating ./config.status
config.status: creating snort.pc
config.status: WARNING: 'snort.pc.in' seems to ignore the --datarootdir
setting
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/sfutil/Makefile
config.status: creating src/detection-plugins/Makefile
config.status: creating src/dynamic-examples/Makefile
config.status: creating src/dynamic-examples/dynamic-preprocessor/Makefile
config.status: creating src/dynamic-examples/dynamic-rule/Makefile
config.status: creating src/dynamic-plugins/Makefile
config.status: creating src/dynamic-plugins/sf_engine/Makefile
config.status: creating src/dynamic-plugins/sf_engine/examples/Makefile
config.status: creating src/dynamic-plugins/sf_preproc_example/Makefile
config.status: creating src/dynamic-preprocessors/Makefile
config.status: creating src/dynamic-preprocessors/libs/Makefile
config.status: creating src/dynamic-preprocessors/ftptelnet/Makefile
config.status: creating src/dynamic-preprocessors/smtp/Makefile
config.status: creating src/dynamic-preprocessors/ssh/Makefile
config.status: creating src/dynamic-preprocessors/dcerpc2/Makefile
config.status: creating src/dynamic-preprocessors/sdf/Makefile
config.status: creating src/dynamic-preprocessors/dns/Makefile
config.status: creating src/dynamic-preprocessors/ssl/Makefile
config.status: creating src/output-plugins/Makefile
config.status: creating src/preprocessors/Makefile
config.status: creating src/preprocessors/HttpInspect/Makefile
config.status: creating src/preprocessors/HttpInspect/include/Makefile
config.status: creating src/preprocessors/HttpInspect/utils/Makefile
config.status: creating
src/preprocessors/HttpInspect/anomaly_detection/Makefile
config.status: creating src/preprocessors/HttpInspect/client/Makefile
config.status: creating src/preprocessors/HttpInspect/event_output/Makefile
config.status: creating
src/preprocessors/HttpInspect/mode_inspection/Makefile
config.status: creating src/preprocessors/HttpInspect/normalization/Makefile
config.status: creating src/preprocessors/HttpInspect/server/Makefile
config.status: creating
src/preprocessors/HttpInspect/session_inspection/Makefile
config.status: creating
src/preprocessors/HttpInspect/user_interface/Makefile
config.status: creating src/preprocessors/Stream5/Makefile
config.status: creating src/parser/Makefile
config.status: creating src/target-based/Makefile
config.status: creating doc/Makefile
config.status: creating contrib/Makefile
config.status: creating schemas/Makefile
config.status: creating rpm/Makefile
config.status: creating preproc_rules/Makefile
config.status: creating m4/Makefile
config.status: creating etc/Makefile
config.status: creating templates/Makefile
config.status: creating tools/Makefile
config.status: creating tools/u2boat/Makefile
config.status: creating tools/u2spewfoo/Makefile
config.status: creating src/win32/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
root () Ub:/usr/local/src/snort-2.9.0#

#################################################################
#################################################################
#################################################################

root () Ub:/usr/local/src/snort-2.9.0# make >> mout.txt
sp_tcp_win_check.c: In function ‘ParseTcpWin’:
sp_tcp_win_check.c:183: warning: ‘win_size’ may be used uninitialized in
this function
perf-base.c: In function ‘LogBasePerfStats’:
perf-base.c:1224: warning: unused variable ‘iCtr’
perf-base.c: In function ‘DisplayBasePerfStatsConsole’:
perf-base.c:1410: warning: unused variable ‘iCtr’
libtool: install: warning: remember to run `libtool --finish
/usr/local/lib/snort_dynamicpreprocessor'
libtool: install: warning: remember to run `libtool --finish
/usr/local/lib/snort_dynamicpreprocessor'
libtool: install: warning: remember to run `libtool --finish
/usr/local/lib/snort_dynamicpreprocessor'
libtool: install: warning: remember to run `libtool --finish
/usr/local/lib/snort_dynamicpreprocessor'
libtool: install: warning: remember to run `libtool --finish
/usr/local/lib/snort_dynamicpreprocessor'
libtool: install: warning: remember to run `libtool --finish
/usr/local/lib/snort_dynamicpreprocessor'
sdf_us_ssn.c: In function ‘ParseSSNGroups’:
sdf_us_ssn.c:167: warning: ignoring return value of ‘fread’, declared with
attribute warn_unused_result
libtool: install: warning: remember to run `libtool --finish
/usr/local/lib/snort_dynamicpreprocessor'
encode.c:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘Buffer’
encode.c:81: error: expected declaration specifiers or ‘...’ before ‘Buffer’
encode.c:81: error: expected declaration specifiers or ‘...’ before ‘Buffer’
encode.c:101: error: expected declaration specifiers or ‘...’ before
‘Buffer’
encode.c:101: error: expected declaration specifiers or ‘...’ before
‘Buffer’
encode.c: In function ‘Encode_Packet’:
encode.c:335: error: ‘Buffer’ undeclared (first use in this function)
encode.c:335: error: (Each undeclared identifier is reported only once
encode.c:335: error: for each function it appears in.)
encode.c:335: error: expected ‘;’ before ‘ibuf’
encode.c:339: error: ‘ibuf’ undeclared (first use in this function)
encode.c:343: error: ‘obuf’ undeclared (first use in this function)
encode.c:355: error: too many arguments to function ‘e’
encode.c: At top level:
encode.c:374: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘*’ token
encode.c: In function ‘IpId_Init’:
encode.c:380: error: ‘s_rand’ undeclared (first use in this function)
encode.c:380: warning: implicit declaration of function ‘rand_close’
encode.c:382: warning: implicit declaration of function ‘rand_open’
encode.c:387: warning: implicit declaration of function ‘rand_get’
encode.c: In function ‘IpId_Term’:
encode.c:392: error: ‘s_rand’ undeclared (first use in this function)
encode.c: In function ‘IpId_Next’:
encode.c:406: warning: implicit declaration of function ‘rand_shuffle’
encode.c:406: error: ‘s_rand’ undeclared (first use in this function)
encode.c: At top level:
encode.c:470: error: expected declaration specifiers or ‘...’ before
‘Buffer’
encode.c:470: error: expected declaration specifiers or ‘...’ before
‘Buffer’
encode.c: In function ‘Eth_Encode’:
encode.c:478: error: ‘out’ undeclared (first use in this function)
encode.c:503: error: ‘in’ undeclared (first use in this function)
encode.c:503: error: too many arguments to function ‘encoders[(unsigned
int)next].fencode’
encode.c: At top level:
encode.c:552: error: expected declaration specifiers or ‘...’ before
‘Buffer’
encode.c:552: error: expected declaration specifiers or ‘...’ before
‘Buffer’
encode.c: In function ‘IP4_Encode’:
encode.c:555: error: ‘out’ undeclared (first use in this function)
encode.c:609: error: ‘in’ undeclared (first use in this function)
encode.c:609: error: too many arguments to function ‘encoders[(unsigned
int)next].fencode’
encode.c:619: warning: implicit declaration of function ‘ip_checksum’
encode.c: In function ‘IcmpCode’:
encode.c:678: error: ‘ICMP_UNREACH_NET’ undeclared (first use in this
function)
encode.c:679: error: ‘ICMP_UNREACH_HOST’ undeclared (first use in this
function)
encode.c:680: error: ‘ICMP_UNREACH_PORT’ undeclared (first use in this
function)
encode.c: At top level:
encode.c:693: error: expected declaration specifiers or ‘...’ before
‘Buffer’
encode.c:693: error: expected declaration specifiers or ‘...’ before
‘Buffer’
encode.c: In function ‘UN4_Encode’:
encode.c:698: error: ‘out’ undeclared (first use in this function)
encode.c:708: error: ‘ICMP_UNREACH’ undeclared (first use in this function)
encode.c: At top level:
encode.c:739: error: expected declaration specifiers or ‘...’ before
‘Buffer’
encode.c:739: error: expected declaration specifiers or ‘...’ before
‘Buffer’
encode.c: In function ‘UDP_Encode’:
encode.c:742: error: ‘in’ undeclared (first use in this function)
encode.c:742: error: ‘out’ undeclared (first use in this function)
encode.c:742: error: too many arguments to function ‘UN4_Encode’
encode.c:744: error: too many arguments to function ‘UN6_Encode’
encode.c: At top level:
encode.c:789: error: expected declaration specifiers or ‘...’ before
‘Buffer’
encode.c:789: error: expected declaration specifiers or ‘...’ before
‘Buffer’
encode.c: In function ‘TCP_Encode’:
encode.c:794: error: ‘out’ undeclared (first use in this function)
encode.c:799: error: ‘in’ undeclared (first use in this function)
encode.c:830: error: ‘TCP_HDR_LEN’ undeclared (first use in this function)
encode.c: At top level:
encode.c:1047: error: expected declaration specifiers or ‘...’ before
‘Buffer’
encode.c:1047: error: expected declaration specifiers or ‘...’ before
‘Buffer’
encode.c: In function ‘UN6_Encode’:
encode.c:1051: error: ‘out’ undeclared (first use in this function)
encode.c: At top level:
encode.c:1100: error: expected declaration specifiers or ‘...’ before
‘Buffer’
encode.c:1100: error: expected declaration specifiers or ‘...’ before
‘Buffer’
encode.c: In function ‘XXX_Encode’:
encode.c:1105: error: ‘out’ undeclared (first use in this function)
encode.c:1113: error: ‘in’ undeclared (first use in this function)
encode.c:1113: error: too many arguments to function ‘encoders[(unsigned
int)next].fencode’
make[3]: *** [encode.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
root () Ub:/usr/local/src/snort-2.9.0#

Thanks,
Chris
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Snort-devel mailing list
Snort-devel () lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/snort-devel

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
AlienVault