Summary: | lgeneral-1.2_beta9 duplicate case value slot.c line 208 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mike Bonar <mike.bonar> |
Component: | [OLD] Games | Assignee: | Gentoo Games <games> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Mike Bonar
2005-11-07 16:42:07 UTC
latest ebuild gives the following errors now: slot.c: In function `save_unit_lib_entry': slot.c:208: error: duplicate case value slot.c:208: error: previously used here slot.c: In function `save_unit': slot.c:288: error: duplicate case value slot.c:288: error: previously used here This seems like an amd64-specific issue. builds fine on x86 it isnt an amd64 bug but rather a 64bit bug if we force the Unit_Lib_Entry structure to be packed, the compile time test passes gcc probably pads out the structure on 64bit systems so that the members are aligned on word boundaries thus increasing the size of the Unit_Lib_Entry struct proposed patch: --- src/unit_lib.h +++ src/unit_lib.h @@ -145,1 +145,1 @@ -} Unit_Lib_Entry; +} __attribute__((__packed__)) Unit_Lib_Entry; amd64 build fixed. Thanks for report. And thank to Spanky for the patch. It works great! |