Snort mailing list archives

Why does the sun studio compile fail to build snort?


From: Jason Zhao <Jason.Zhao () Sun COM>
Date: Tue, 03 Mar 2009 16:22:44 +0800

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-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.php3?list=snort-users


Current thread: