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

User BALGAA System Engineer balgaa at ...1049...
Tue Jan 15 19:32:04 EST 2002


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'
log.o: In function `AlertFast':
/home/balgaa/snort/snort-1.8.3/log.c:891: undefined reference to
`INET_NTOA'
/home/balgaa/snort/snort-1.8.3/log.c:902: undefined reference to
`INET_NTOA'
/home/balgaa/snort/snort-1.8.3/log.c:904: undefined reference to
`INET_NTOA'
/home/balgaa/snort/snort-1.8.3/log.c:910: undefined reference to
`INET_NTOA'
log.o:/home/balgaa/snort/snort-1.8.3/log.c:912: more undefined references
to `IN
ET_NTOA' follow
collect2: ld returned 1 exit status
make[2]: *** [snort] Error 1
make[2]: Leaving directory `/home/balgaa/snort/snort-1.8.3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/balgaa/snort/snort-1.8.3'
make: *** [all-recursive-am] Error 2

Thanks,
Balgaa

On Wed, 16 Jan 2002, Fyodor wrote:

> On Tue, Jan 15, 2002 at 01:12:45PM -0800, Roelof JT Jonkman wrote:
> > You might want to try gcc 3.0.3 (compile flags -mcpu=v9 -m32)
> >
> > I've had reasonable luck with that on solaris. I'm not sure
> > how well adapted linux is to ultrasparcs....
> >
> >I quickly glanced at the code, and I can't see an
> > obvious alignment problem. So a far out guess
>
> Inet_ntoa, declared as:
>      char *inet_ntoa(struct in_addr in);
>
> could use opcodes which operate on 4byte aligned values, as the in_addr
> struct has s_addr structure member which is of the in_addr_t type,
> which, itself is defined as typedef uint32_t in_addr_t; i.g. unsigned
> long. I can not think of a better way to patch the problem right now
> except of shifting the data to an aligned boundary first. There must be
> a more elegant to fix it though.. anyway mind to try attached patch to
> see if it fixes the problem?
>
>
>





More information about the Snort-devel mailing list