Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89770 - app-editors/xemacs-21.4.15-r3 doesn't compile using linux-headers-2.6.8.1
Summary: app-editors/xemacs-21.4.15-r3 doesn't compile using linux-headers-2.6.8.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: High normal (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-20 00:57 UTC by Markus Rothe (RETIRED)
Modified: 2005-05-24 07:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/usr/include/asm/paca.h (paca.h,4.11 KB, text/plain)
2005-04-20 00:58 UTC, Markus Rothe (RETIRED)
Details
patch for sys-kernel/linux-headers/files/linux-headers-2.6.8.1-appCompat.patch (linux-headers-2.6.8.1-appCompat.patch.patch,2.25 KB, patch)
2005-04-20 07:39 UTC, Yuta SATOH (RETIRED)
Details | Diff
result of `emerge --info` (emerge-info-ppc64.txt,2.43 KB, text/plain)
2005-04-20 07:47 UTC, Yuta SATOH (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Rothe (RETIRED) gentoo-dev 2005-04-20 00:57:35 UTC
Hi,

I just tried to compile app-editors/xemacs-21.4.15-r3, but it failed:

[...]
gcc -c -mcpu=G5 -O3 -pipe -fsigned-char -mabi=altivec -g  -Demacs -I. -DHAVE_CONFIG_H -I/usr/X11R6/include gpmevent.c
In file included from /usr/include/asm/spinlock.h:18,
                 from /usr/include/linux/spinlock.h:39,
                 from /usr/include/linux/wait.h:15,
                 from /usr/include/linux/keyboard.h:4,
                 from gpmevent.c:48:
/usr/include/asm/paca.h:25: error: register name given for non-register variable 'local_paca'
make[1]: *** [gpmevent.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/xemacs-21.4.15-r3/work/xemacs-21.4.15/src'
make: *** [src] Error 2

!!! ERROR: app-editors/xemacs-21.4.15-r3 failed.
!!! Function src_compile, Line 171, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

This seems to be linux-headers-2.6.* related.

plasmaroo: If you are the wrong person, please reassign the bug to ppc64@gentoo.org.

Greets,

Markus
Comment 1 Markus Rothe (RETIRED) gentoo-dev 2005-04-20 00:58:36 UTC
Created attachment 56736 [details]
/usr/include/asm/paca.h
Comment 2 Yuta SATOH (RETIRED) gentoo-dev 2005-04-20 07:39:49 UTC
Created attachment 56754 [details, diff]
patch for sys-kernel/linux-headers/files/linux-headers-2.6.8.1-appCompat.patch

My environment also reproduced this problem. 
I attach the patch for succeeding in compile of xemacs.
Comment 3 Yuta SATOH (RETIRED) gentoo-dev 2005-04-20 07:47:38 UTC
Created attachment 56756 [details]
result of `emerge --info`
Comment 4 Markus Rothe (RETIRED) gentoo-dev 2005-04-20 09:07:42 UTC
I got this from plasmaroo on irc:

14:51 <@plasmaroo> corsair: Look at 82690 for that Xemacs thing, do the same workaround for paca.h
14:51 <@plasmaroo> corsair: Basically, upstream decides to screw all ANSI C standards and do #define register which is bad.
14:53 <@plasmaroo> corsair: So actually try putting the workaround in the bottom of types.h instead, that might be better.

I'll try that ASAP.

Comment 5 Markus Rothe (RETIRED) gentoo-dev 2005-04-29 11:28:01 UTC
yes, adding this to the end of types.h solves the problem:

#ifdef register
#undef register
#endif
Comment 6 Andre Kloth 2005-05-20 08:17:33 UTC
Works here.
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2005-05-24 07:03:50 UTC
Fixed in CVS; please sync and remerge linux-headers. Thanks!