Summary: | x11-misc/xscreensaver-5.29 with sys-devel/gcc-4.5.4 - memscroller.c:353:12: error: #pragma GCC diagnostic not allowed inside functions | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ulrich Fieseler <ulfie_monster> |
Component: | Current packages | Assignee: | Desktop Misc. Team <desktop-misc> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log from emerge -B xscreensaver with gcc 4.5.4 |
Description
Ulrich Fieseler
2014-08-14 00:42:46 UTC
Created attachment 382860 [details]
build.log from emerge -B xscreensaver with gcc 4.5.4
What do you need gcc 4.5.4 for? Please test with this patch: --- a/hacks/memscroller.c +++ b/hacks/memscroller.c @@ -349,7 +349,7 @@ from earlier days before the advent of virtual memory management." -- sbrk(2) man page on MacOS */ -# if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)) /* gcc >= 4.2 */ +# if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) /* gcc >= 4.6 */ # pragma GCC diagnostic ignored "-Wdeprecated-declarations" # endif himem = ((unsigned char *) sbrk(0)) - (2 * sizeof(void *)); Provided patch fixes compilation problem (test of resulting binary is currently impossible due to remote access of affected system, sorry). I tried to apply the patch by means of the user patch facility (/etc/portage/patches/...), but that seems to be missing from the ebuild and required patching it first (or am I missing something?): --- /usr/portage/x11-misc/xscreensaver/xscreensaver-5.29.ebuild 2014-08-20 10:31:19.000000000 +0200 +++ xscreensaver-5.29.ebuild 2014-08-22 00:41:01.929876221 +0200 @@ -75,6 +75,9 @@ "${FILESDIR}"/${PN}-5.20-tests-miscfix.patch \ "${FILESDIR}"/${PN}-5.28-comment-style.patch + # apply user patches + epatch_user + eautoconf eautoheader } I added epatch_user, too. |