[Snort-devel] Re: [Snort-users] --enable-smbalerts won't compile (fwd)
fygrave at ...1...
Thu Oct 5 02:52:00 EDT 2000
BTW, how do you guys normally fix this type of problem? :) I have seen
that Patrick just defined his own type and used it instead which doesn't
look good to me. In snortnet piece I used memcpy() to copy one struct into
another along with typecasting which is ok for this kind of problem
because both types are equal but just use different names. However the
right way would be to let configure detect type used in libpcap and define
TIMESTAMP_TYPE accordinly.. I have a few thoughts how to get it done in
configure, if noone has a better suggestion to handle that, I can commit
it tonight. Thoughts?
---------- Forwarded message ----------
Date: Wed, 04 Oct 2000 12:38:54 -0400
From: Kevin Pietersma <kev at ...52...>
To: Martin Roesch <roesch at ...48...>
Cc: snort-users at lists.sourceforge.net
Subject: Re: [Snort-users] --enable-smbalerts won't compile
-*> Snort! <*-
P.S. This email took over a week to arrive on the list.
At 07:01 PM 10/3/00 -0400, Martin Roesch wrote:
>What version of Snort are you having problems with?
>Kevin Pietersma wrote:
>> Redhat Linux 6.2 kernel 2.2.14smp
>> snort source from CVS, grabbed today
>> prompt # rpm -q -a|grep samba
>> prompt # rpm -q -a|grep libpcap
>> ./configure --enable-smbalerts --enable-flexresp
>> gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap -g -O2 -Wall
>> -DENABLE_SMB_ALERTS -DENABLE_RESPONSE -D_BSD_SOURCE -D__BSD_SOURCE
>> -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -c log.c
>> log.c: In function `PrintIPPkt':
>> log.c:424: warning: passing arg 1 of `ts_print' from incompatible
>> log.c: In function `AlertFull':
>> log.c:607: warning: passing arg 1 of `ts_print' from incompatible
>> log.c: In function `AlertFast':
>> log.c:672: warning: passing arg 1 of `ts_print' from incompatible
>> log.c: At top level:
>> log.c:795: conflicting types for `SmbAlert'
>> log.h:86: previous declaration of `SmbAlert'
>> log.c: In function `SmbAlert':
>> log.c:807: warning: passing arg 1 of `ts_print' from incompatible
>> log.c: In function `PrintArpHeader':
>> log.c:1088: warning: passing arg 1 of `ts_print' from incompatible pointer
>> make: *** [log.o] Error 1
>> ./configure --enable-flexresp compiles fine.
>> Any help is appreciated, I'm not a programmer so I'm at a loss.
>> Snort-users mailing list
>> Snort-users at lists.sourceforge.net
>roesch at ...48...
Snort-users mailing list
Snort-users at lists.sourceforge.net
More information about the Snort-devel