[Snort-devel] Snort 2.0.1 on solaris 7 - Compile bug

Bruno Saverio Delbono bdelbono at ...2087...
Wed Jul 23 17:00:37 EDT 2003


Hi All,

    Bug report (1). I'm debugging a core on Solaris and would send a second
bug sometime soon.

BUG - Compile BUG in decode.c with debug flags turned on
OS  - Solaris 7
CC  - SunPRO CC - Sun Studio 8 C++ Compiler Collection.

If snort 2.0.1 is being compiled on Solaris (in my case Solaris 7) using
SunPRO CC (Sun Studio 8) on SunOS hell.lucifer.at 5.7 Generic_106541-08
sun4m sparc SUNW,SPARCstation-5, with the -DDEBUG flags on, snort fails to
compile:

Making all in parser
cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src
-I../../src/output-plugins -I../../src/detection-plugins
-I../../src/preprocessors   -DBSD_COMP  -g -DDEBUG -c `test -f 'IpAddrSet.c'
|| echo './'`IpAddrSet.c
rm -f libparser.a
ar cru libparser.a IpAddrSet.o
ranlib libparser.a
cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src  -I../src/output-plugins
-I../src/detection-plugins -I../src/preprocessors   -DBSD_COMP  -g -DDEBUG
-c `test -f 'codes.c' || echo './'`codes.c
cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src  -I../src/output-plugins
-I../src/detection-plugins -I../src/preprocessors   -DBSD_COMP  -g -DDEBUG
-c `test -f 'debug.c' || echo './'`debug.c
"debug.c", line 37: warning: initializer does not fit or is out of range:
0xffffffff
cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src  -I../src/output-plugins
-I../src/detection-plugins -I../src/preprocessors   -DBSD_COMP  -g -DDEBUG
-c `test -f 'decode.c' || echo './'`decode.c
"decode.c", line 145: warning: statement not reached
"decode.c", line 366: undefined symbol: pri
"decode.c", line 720: warning: statement not reached
"decode.c", line 878: warning: statement not reached
"decode.c", line 981: warning: statement not reached
"decode.c", line 1057: warning: statement not reached
"decode.c", line 1269: warning: statement not reached
cc: acomp failed for decode.c
*** Error code 2
make: Fatal error: Command failed for target `decode.o'
Current working directory /export/home/bdelbono/snort-2.0.1/src
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /export/home/bdelbono/snort-2.0.1/src
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /export/home/bdelbono/snort-2.0.1
*** Error code 1
make: Fatal error: Command failed for target `all'

This error does not appear if decode.c is built with no -DDEBUG -g flags



-- 
Bruno Saverio Delbono <bdelbono at leviathan dot lucifer dot at>
Systems Engineer - Open-Systems Group Inc.
http://www.open-systems.org/users/bruno/
GPG Fingerprint: 1AAC 0F81 54F6 C7AF 2EC4  8993 0594 88B3 E127 35C5




More information about the Snort-devel mailing list