[Snort-devel] linux/sparc BUS ERROR [more info]

Ricardo A. Gorosito rgorosito at ...1077...
Wed Jan 16 10:53:18 EST 2002


Fyodor:

If I put the last patch, I can't compile snort:

gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap    -g -O2 -Wall -DDEBUG
-ggdb -c log.c
log.c: In function `OpenLogFile':
log.c:99: incompatible type for argument 1 of `inet_ntoa'
log.c:107: incompatible type for argument 1 of `inet_ntoa'
log.c:113: incompatible type for argument 1 of `inet_ntoa'
log.c:123: incompatible type for argument 1 of `inet_ntoa'
log.c:131: incompatible type for argument 1 of `inet_ntoa'
log.c:137: incompatible type for argument 1 of `inet_ntoa'
log.c: In function `AlertFast':
log.c:891: incompatible type for argument 1 of `inet_ntoa'
log.c:893: incompatible type for argument 1 of `inet_ntoa'
log.c:902: incompatible type for argument 1 of `inet_ntoa'
log.c:904: incompatible type for argument 1 of `inet_ntoa'
log.c:910: incompatible type for argument 1 of `inet_ntoa'
log.c:912: incompatible type for argument 1 of `inet_ntoa'
log.c: In function `SyslogAlert':
log.c:956: incompatible type for argument 1 of `inet_ntoa'
log.c:957: incompatible type for argument 1 of `inet_ntoa'
log.c: In function `PrintArpHeader':
log.c:1484: incompatible type for argument 1 of `inet_ntoa'
log.c:1494: incompatible type for argument 1 of `inet_ntoa'
log.c:1507: incompatible type for argument 1 of `inet_ntoa'
log.c:1542: incompatible type for argument 1 of `inet_ntoa'
log.c: In function `PrintIPHeader':
log.c:1576: incompatible type for argument 1 of `inet_ntoa'
log.c:1578: incompatible type for argument 1 of `inet_ntoa'
log.c:1585: incompatible type for argument 1 of `inet_ntoa'
log.c:1587: incompatible type for argument 1 of `inet_ntoa'
log.c:1594: incompatible type for argument 1 of `inet_ntoa'
log.c:1596: incompatible type for argument 1 of `inet_ntoa'
make[2]: *** [log.o] Error 1
make[2]: Leaving directory `/home/soft/snort/snort-1.8.3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/soft/snort/snort-1.8.3'
make: *** [all-recursive-am] Error 2


Ricardo.

Fyodor escribió:

> On Wed, Jan 16, 2002 at 12:20:19PM +0800, User BALGAA System Engineer wrote:
> > Fyodor,
> >
> > I got following error when to compile snort-1.8.3 on Linux on Ultra Sparc:
> > log.o: In function `OpenLogFile':
> > /home/balgaa/snort/snort-1.8.3/log.c:137: undefined reference to
> > `INET_NTOA'
>
> *ack*.. I shouldn't be sending patches at 5am in the morning. See
> attach, hope it would do the job for you :-)
>
> (the patch is for cvs SNORT_1_8, but I guess you should be able to patch
> 1.8.3 with it as well). BTW, if you don't want to rm -rf snort-1.8.3 and
> patch again, just edit decode, find the line:
>
> #define INET_NTOA(arg)      INET_NTOA(ALIGN_INADDR(arg)) (line 384)
>
> and make it:
> #define INET_NTOA(arg)      inet_ntoa(ALIGN_INADDR(arg))
>
> just a silly typo of mine. :-)
>
>   ------------------------------------------------------------------------
>
>    inet_ntoa.patchName: inet_ntoa.patch
>                   Type: Plain Text (text/plain)

--
Ricardo Ariel Gorosito - rgorosito at ...1077...
 Administración Federal de Ingresos Públicos
      Departamento Seguridad Informática


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20020116/0e73197b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rgorosito.vcf
Type: text/x-vcard
Size: 359 bytes
Desc: Tarjeta de Ricardo A. Gorosito
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20020116/0e73197b/attachment.vcf>


More information about the Snort-devel mailing list