[Snort-devel] 2 little errors in log.c?

Roeland Weve roeland at ...481...
Fri Jun 22 05:49:57 EDT 2001


Hi,

I'am making a new RPM to install the latest CVS version, but every time
I do this, I bounce against 2 errors in log.c:

log.c: In function `SmbAlert':
log.c:1048: redeclaration of `output'
log.c:1046: `output' previously declared here
make: *** [log.o] Error 1

Solution is simple, I just delete the first FILE *output

rows: 1045-1048:
#ifndef WIN32
    FILE *output;
#endif
    FILE *output;


The other one:

log.c: In function `SmbAlert':
log.c:1144: parse error before string constant
make: *** [log.o] Error 1

Solution to this one is also simple:
line 1144, comma missing:
        snprintf(command_line, 2047
        	"echo \"%s\" | smbclient -U Snort -M %s",
        	tempmsg, tempwork);
must be
        snprintf(command_line, 2047,
        	"echo \"%s\" | smbclient -U Snort -M %s",
        	tempmsg, tempwork);


Roeland




More information about the Snort-devel mailing list