Gentoo Archives: gentoo-sparc

From: "Bráulio Oliveira" <brauliobo@×××××.com>
To: gentoo-sparc@l.g.o
Subject: [gentoo-sparc] Re: Bug while compiling xorg-server-1.1.1
Date: Thu, 31 Aug 2006 23:10:45
Message-Id: 1df1788c0608311609la2fe625rea775832fb935320@mail.gmail.com
In Reply to: [gentoo-sparc] Bug while compiling xorg-server-1.1.1 by "Bráulio Oliveira"
1 actually the bugfix is change is change /usr/include/asm/bitopt.h
2
3 from:
4 /* Autogenerated by create_ml_includes() in multilib.eclass */
5
6 #ifndef __arch64__
7 # include <asm-sparc/bitops.h>
8 #endif /* !__arch64__ */
9
10 #ifdef __arch64__
11 # include <asm-sparc64/bitops.h>
12 #endif /* __arch64__ */
13
14 to:
15 * Autogenerated by create_ml_includes() in multilib.eclass */
16
17 #ifndef __arch64__
18 # include <asm-sparc64/bitops.h>
19 #endif /* !__arch64__ */
20
21 #ifndef __arch64__
22 # include <asm-sparc64/bitops.h>
23 #endif /* __arch64__ */
24
25 Note: I'm using gcc 4.1.1
26
27 On 8/31/06, Bráulio Oliveira <brauliobo@×××××.com> wrote:
28 > Bug report:
29 >
30 > While compiling xorg-server-1.1.1 (with emerge) I got the following error:
31 >
32 > sparc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.
33 > -I../../../include -I../../../include -I../../../include
34 > -I../../../include -I../../../include -I../../../include
35 > -I../../../include -I../../../include -I../../../hw/xfree86
36 > -I../../../hw/xfree86/include -I../../../hw/xfree86/common
37 > -I../../../hw/xfree86/os-support -I../../../hw/xfree86/os-support/bus
38 > -I../../../os -I./../ddc -I./../i2c -I./../loader -I./../rac
39 > -I./../parser -I./../scanpci -I./../vbe -I./../int10 -I./../vgahw
40 > -I./../dixmods/extmod -DHAVE_XORG_CONFIG_H -DXF86PM -DXFree86Server
41 > -DXFree86LOADER -Wall -Wpointer-arith -Wstrict-prototypes
42 > -Wmissing-prototypes -Wmissing-declarations -Wnested-externs
43 > -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT
44 > -I../../../include -I../../../include -I../../../Xext
45 > -I../../../composite -I../../../damageext -I../../../xfixes
46 > -I../../../Xi -I../../../mi -I../../../miext/shadow
47 > -I../../../miext/damage -I../../../render -I../../../randr
48 > -I../../../fb -O2 -mcpu=ultrasparc3 -mtune=ultrasparc3 -pipe -mvis -MT
49 > xf86KbdLnx.lo -MD -MP -MF .deps/xf86KbdLnx.Tpo -c xf86KbdLnx.c -fPIC
50 > -DPIC -o .libs/xf86KbdLnx.o
51 > In file included from /usr/include/asm/bitops.h:4,
52 > from /usr/include/linux/bitops.h:77,
53 > from /usr/include/linux/thread_info.h:20,
54 > from /usr/include/asm-sparc/system.h:10,
55 > from /usr/include/asm/system.h:4,
56 > from /usr/include/linux/list.h:6,
57 > from /usr/include/linux/wait.h:21,
58 > from /usr/include/linux/keyboard.h:20,
59 > from xf86KbdLnx.c:169:
60 > /usr/include/asm-sparc/bitops.h:288: error: static declaration of
61 > 'ffs' follows non-static declaration
62 >
63 > I corrected the bug by removing the static declaration on the bitops.h
64 > file. I guess that the problem is with the ebuild
65 > linux-headers-2.6.11-r6 (which I'm using)
66 >
67 > That it. Any questions, just ask.
68 >
69 > Thanks
70 > bráulio
71 >
72
73 --
74 gentoo-sparc@g.o mailing list