Summary: | games-strategy/glest-2.0.1 needs additional includes | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Will Saxon <saxonww> |
Component: | [OLD] Games | Assignee: | Gentoo Games <games> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ansla80, zima |
Priority: | High | Keywords: | REVIEWED |
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 198121 | ||
Attachments: |
Fix includes for gcc-4.3
Ebuild with gcc-4.3 patch |
Description
Will Saxon
2008-06-29 16:02:46 UTC
I am still having trouble submitting attachments to bugzilla, so here is a patch I made which will enable the software to compile successfully: --- /var/tmp/portage/games-strategy/glest-2.0.1/work/source/shared_lib/sources/util/./conversion.cpp 2008-06-29 11:56:39.545360436 -0400 +++ ./conversion.cpp 2008-06-29 11:27:08.542679368 -0400 @@ -13,6 +13,7 @@ #include <stdexcept> #include <cstdio> +#include <cstdlib> #include "leak_dumper.h" --- /var/tmp/portage/games-strategy/glest-2.0.1/work/source/shared_lib/sources/util/./properties.cpp 2008-06-29 11:56:40.209401722 -0400 +++ ./properties.cpp 2008-06-29 11:27:08.550678991 -0400 @@ -13,6 +13,9 @@ #include <fstream> #include <stdexcept> +#include <cstring> +#include <cstdlib> +#include "linux/limits.h" #include "conversion.h" #include "leak_dumper.h" --- /var/tmp/portage/games-strategy/glest-2.0.1/work/source/shared_lib/sources/util/./util.cpp 2008-06-29 11:56:39.589363527 -0400 +++ ./util.cpp 2008-06-29 11:27:08.558680289 -0400 @@ -14,6 +14,7 @@ #include <ctime> #include <cassert> #include <stdexcept> +#include <cstdlib> #include "leak_dumper.h" Confirming this bug and that the patch fixes it on x86 (gcc-4.3.1-r1, glibc-2.8_p20080602, paludis-0.30.0). Attaching new ebuild and patch (with cosmetic modification "linux/limits.h" -> <climits>). Created attachment 165560 [details, diff]
Fix includes for gcc-4.3
Created attachment 165561 [details]
Ebuild with gcc-4.3 patch
This has been fixed by the bump to glest-3.1.2 |