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

Jason Zhao Jason.Zhao at ...2994...
Tue Mar 3 03:22:44 EST 2009


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





More information about the Snort-devel mailing list