[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
snort 2.0.0
env CFLAGS=-fast ./configure --with-snmp --with-openssl \
  --with-libpcap-includes=/usr/local/include \
  --with-libpcap-libraries=/usr/local/lib

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: snort-2.0.0-solaris-cc.patch
Type: text/x-patch
Size: 4658 bytes
Desc: Snort 2.0.0 Solaris Patch
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20030421/1ec02e23/attachment.bin>


More information about the Snort-devel mailing list