Snort.org home  
Got Source? About Snort About Sourcefire Snort FAQ
Sourcefire Network Security - the creators of Snort

Snort Forums Archive

Archive Home » Snort Development » "invalid lvalue in increment" error when compiling Snort 2.4.3

Please note that the categories listed below represent an archived version of our forums pages. To view the current version and be able to post and reply to threads, please register and login here to go to the full forums pages.

[ Notice: Full Version of This Topic ]

"invalid lvalue in increment" error when compiling Snort 2.4.3


Posted by Nightlynx on October 21, 2005 08:13:46

Hello!

I was trying to take a look at Snort 2.4.3 and was unable to compile it. The installation system is a Debian Sarge with security fixes. Configure options were "--with-postgresql --with-mysql --enable-perfmonitor --enable-inline --enable-timestats --enable-flexresp". The configure script produced no errors, all necessary libraries and headers are present. The make process runs until it hits the macro IXDR_GET_LONG in sp_rpc_check.c. The compiler exits with:

sp_rpc_check.c: In function 'CheckRpc':
sp_rpc_check.c:246: error: invalid lvalue in increment
sp_rpc_check.c:249: error: invalid lvalue in increment
sp_rpc_check.c:259: error: invalid lvalue in increment
sp_rpc_check.c:269: error: invalid lvalue in increment
sp_rpc_check.c:270: error: invalid lvalue in increment
sp_rpc_check.c:271: error: invalid lvalue in increment
make[3]: *** [sp_rpc_check.o] Error 1
make[3]: Leaving directory `/usr/src/build/snort-2.4.3/src/detection-plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/build/snort-2.4.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/build/snort-2.4.3'
make: *** [all] Error 2

I tried using GCC 3.3 and 3.4, both produced the same results. I did not find any hint in the mailings lists or in this forum. Can anyone shed some light on this?

Best,
René.

Posted by Joel_Esler on October 23, 2005 05:10:30

Try removing the --enable-perfstats and --enable-timestats in your configure line. They are on by
default.


Posted by Nightlynx on October 25, 2005 03:02:29

It doesn't make any difference. I dropped the --enable-timestats and the --enable-perfmonitor option. I also used --disable-perfstats and --disable-timestats. The build process always keeps hitting the same error message.

Best,
René.

Posted by Joel_Esler on October 26, 2005 13:36:07

Something isn't right in your OS. I just tested it, and it works for me.

Joel Esler
SOURCEfire