[Snort-devel] Bug Report: Solaris/Sparc + native compiler will not build
Taso N. Devetzis
devetzis at ...1941...
Mon Apr 21 07:22:31 EDT 2003
SunOS tarc 5.9 Generic_112233-04 sun4u sparc SUNW,Ultra-5_10
cc: Sun WorkShop 6 update 2 C 5.3 Patch 111679-10 2003/02/10
env CFLAGS=-fast ./configure --with-snmp --with-openssl \
A couple GNU bogosities prevent building with the Sun Forte compiler
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4658 bytes
Desc: Snort 2.0.0 Solaris Patch
More information about the Snort-devel