[Snort-devel] Why does the sun studio compile fail to build snort?

Steven Sturges steve.sturges at ...402...
Tue Mar 3 08:42:37 EST 2009


Hi Jason--

>From what I can see in the code I'm looking at, those
issues are fixed in Snort 2.8.4 RC, which is available
on snort.org.

Namely the inline functions are now static inline.
You should be able to change the code to make the
function's that call Stream5SeglistDeleteNode,
FlushStream, and DeleteSeglist static inline.

Cheers.
-steve

Jason Zhao wrote:
> Hi, All
> 
> When I tried to build snort under Solaris with sun studio compile cc
> /opt/SUNWspro/bin/cc to build snort-2.8.3.1, I got following errors.
> ##################################
> <snip>
> cc -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -I../../../src
> -I../../../src/sfutil -I../../../src/output-plugins
> -I../../../src/detection-plugins -I../../../src/dynamic-plugins
> -I../../../src/preprocessors -I../../../src/preprocessors/flow
> -I../../../src/preprocessors/portscan
> -I../../../src/preprocessors/flow/int-snort
> -I../../../src/preprocessors/HttpInspect/include
> -I../../../src/preprocessors/Stream5 -I../../../src/target-based
> -DBSD_COMP -D_REENTRANT -I/usr/include/pcre -g -DDYNAMIC_PLUGIN
> -DDETECTION_OPTION_TREE -c snort_stream5_tcp.c
> "../../../src/rules.h", line 53: warning: macro redefined: INADDR_NONE
> "snort_stream5_tcp.c", line 2528: reference to static identifier
> "Stream5SeglistDeleteNode" in extern inline function
> "snort_stream5_tcp.c", line 3068: reference to static identifier
> "FlushStream" in extern inline function
> "snort_stream5_tcp.c", line 3080: reference to static identifier
> "DeleteSeglist" in extern inline function
> cc: acomp failed for snort_stream5_tcp.c
> *** Error code 2
> make: Fatal error: Command failed for target `snort_stream5_tcp.o'
> Current working directory
> /export/home/Jason/work/pkgport/snort-2.8.3.1/src/preprocessors/Stream5
> *** Error code 1
> </snip>
> ##################################
> 
> However "gcc" could work for me. Why does the cc compiler fail?
> 
> Great Thanks
> Jason
> 
> 
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Snort-devel mailing list
> Snort-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/snort-devel
> 




More information about the Snort-devel mailing list