[Snort-devel] SNMP traps in devel

Rob Hughes rob at ...825...
Thu May 23 13:05:02 EDT 2002


On Thu, 2002-05-23 at 10:29, Chris Green wrote:
> Rob Hughes <rob at ...825...> writes:
> 
> > All,
> >
> > I realize that there's a lot of code churn in the main snort branch, but
> > since this has been happening for some months now, I wanted to ensure
> > that someone was aware of it.
> 
> Looks like you have a conflict in your config.h.in
> 
> When you do a cvs update, rm all the files that show a status of C and
> try updating again
> -- 
> Chris Green <cmg at ...402...>
> A watched process never cores.

Chris,

I've tried rm'ing the entire tree many times thinking the same thing. I
always get the same failure though. The cvs script I use is the same one
from the sf page.

But wait, there's more.... I tried it once more and now it dies at 

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src 
-I../../src/output-plugins -I../../src/detection-plugins
-I../../src/preprocessors   -I/usr/local/include -DENABLE_SNMP
-DENABLE_SSL -I/usr/include  -g -O2 -Wall -DENABLE_RESPONSE
-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DHAVE_SOCKADDR_SA_LEN
-DLIBNET_LIL_ENDIAN -c `test -f spp_http_decode.c || echo
'./'`spp_http_decode.c
In file included from spp_http_decode.c:30:
/usr/include/sys/socket.h:52: syntax error before `sa_family_t'
/usr/include/sys/socket.h:52: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:163: syntax error before `u_char'
/usr/include/sys/socket.h:174: syntax error before `u_short'
/usr/include/sys/socket.h:188: syntax error before `u_char'
/usr/include/sys/socket.h:190: `int64_t' undeclared here (not in a
function)
/usr/include/sys/socket.h:190: `u_char' undeclared here (not in a
function)
/usr/include/sys/socket.h:190: size of array `__ss_pad1' is too large
/usr/include/sys/socket.h:191: syntax error before `int64_t'
/usr/include/sys/socket.h:192: `u_char' undeclared here (not in a
function)
/usr/include/sys/socket.h:192: `int64_t' undeclared here (not in a
function)
/usr/include/sys/socket.h:192: `u_char' undeclared here (not in a
function)
/usr/include/sys/socket.h:192: `int64_t' undeclared here (not in a
function)
/usr/include/sys/socket.h:359: syntax error before `pid_t'
/usr/include/sys/socket.h:364: syntax error before `gid_t'
/usr/include/sys/socket.h:399: syntax error before `u_short'
/usr/include/sys/socket.h:407: syntax error before `caddr_t'
/usr/include/sys/socket.h:411: syntax error before `caddr_t'
/usr/include/sys/socket.h:444: syntax error before `recv'
/usr/include/sys/socket.h:444: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:445: syntax error before `recvfrom'
/usr/include/sys/socket.h:445: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:446: syntax error before `recvmsg'
/usr/include/sys/socket.h:446: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:447: syntax error before `send'
/usr/include/sys/socket.h:447: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:448: syntax error before `sendto'
/usr/include/sys/socket.h:449: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:450: syntax error before `sendmsg'
/usr/include/sys/socket.h:450: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:451: syntax error before `off_t'
In file included from spp_http_decode.c:31:
/usr/include/netinet/in.h:233: syntax error before `in_addr_t'
/usr/include/netinet/in.h:285: syntax error before `u_char'
In file included from /usr/include/netinet/in.h:467,
                 from spp_http_decode.c:31:
/usr/include/netinet6/in6.h:122: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:144: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:149: syntax error before `u_int32_t'
/usr/include/netinet6/in6.h:612: syntax error before `*'
/usr/include/netinet6/in6.h:614: syntax error before `*'
/usr/include/netinet6/in6.h:614: warning: data definition has no type or
storage class
/usr/include/netinet6/in6.h:615: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:616: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:631: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:636: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:638: syntax error before `u_int8_t'
*** Error code 1

Stop in /root/snort-devel/src/preprocessors.
*** Error code 1

Stop in /root/snort-devel/src.
*** Error code 1

Stop in /root/snort-devel.
*** Error code 1

Stop in /root/snort-devel.

So, progress. But this one looks like either a bug in the FBSD source or
and incompatibility.

Rob





More information about the Snort-devel mailing list