VICE home Knowledge Base - Article 20-020


[Bug] VICE 1.18 does not compile with GCC 4.x versions


The information in this article applies to the following versions of VICE:

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

REVISION

Last Reviewed: December 17, 2005