[Bug] VICE 1.18 does not compile with GCC 4.x versions
The information in this article applies to the following versions of VICE:
- version 1.18 on all plattforms
PROBLEMEXPOSITION
If you try to compile VICE on a machine with a gcc 4.x compiler, you will get some error messages:
network.c: In function 'network_create_event_buffer':
network.c:235: error: invalid lvalue in increment
network.c:236: error: invalid lvalue in increment
network.c:237: error: invalid lvalue in increment
network.c: In function 'network_create_event_list':
network.c:259: error: invalid lvalue in increment
network.c:260: error: invalid lvalue in increment
network.c:261: error: invalid lvalue in increment
network.c: In function 'network_hook':
CAUSE
There is a problem in some experimental code. GCC 4.x is very picky about this code, while other compilers accept it.
SOLUTION
Download and apply the patch before re-compiling VICE.
STATUS
The VICE team has confirmed this to be a problem in the VICE versions listed at the beginning of this article. It has been corrected in all subsequent versions
LINKS
- The patch can be found here.
REVISION
- December 17, 2005: Original release of this document
