[Snort-devel] Bug Report: Solaris/Sparc + native compiler will not build

Taso N. Devetzis devetzis at ...1940...
Fri Apr 25 05:57:06 EDT 2003


thank you sir!

Chris Green <cmg at ...402...> writes:

> "Taso N. Devetzis" <devetzis at ...1941...> writes:
>
>> A couple GNU bogosities prevent building with the Sun Forte compiler
>> suite.
>>
>> 1. __FUNCTION__ is a GNU extension (I believe the ISO C99 standard is
>>    __func__).  Added checks to configure.in.
>>
>> 2. Compound statements as expressions is a GNU extension.  This
>>    affects the EXTRACT_32BITS(p) macro in particular.  Added explicit
>>    function and prototype to decode.[ch] (yes, the irony here is that
>>    it appears this macro was added to work around a SIGBUS on
>>    optimised sparc code in the first place).  NOTE: this function
>>    should probably be inlined, but it is not in the patch below.
>>
>> Builds and runs great with this patch on the platform above.
>>
>> Thanks,
>> /taso
>>
>
> Thanks, these patches look good.
>
> Cheers,
> Chris
> -- 
> Chris Green <cmg at ...402...>
> Laugh and the world laughs with you, snore and you sleep alone.




More information about the Snort-devel mailing list