Am Tue, 06 Jan 2009 17:54:08 +0100
schrieb Thomas Bächler <thomas(a)archlinux.org>:
> Aaron Griffin schrieb:
> > On Tue, Jan 6, 2009 at 5:08 AM, Tobias Powalowski <t.powa(a)gmx.de>
> > wrote:
> >> Showstopper:
> >> klibc needs to be fixed. It breaks compilation of tools.
> > Could you be more specific? There was some talk on the klibc ML
> > about recent kernel changes, so I'd like to know what is broken.
> > Perhaps it is fixable (and Debian may have changes already)
> klibc didn't build against 2.6.28 because some asm headers are now in
> arch/x86/include/ instead of include/asm-x86/. I added a quick-fix to
> the Makefile so klibc would build. However, I forgot that these
> headers weren't installed either, so now klcc does not compile
> anything that needs any of those headers (I didn't notice because I
> didn't have to recompile the klibc-* packages). This means: klibc
> works as a runtime library, but klcc is useless.
IMHO is the problem in our kernel26 package. Therein we have a bad
symlink to the architecture asm directory.
[gerhard@tux1 ~]$ ls -ld /usr/src/linux-2.6.28-ARCH/include/asm
lrwxrwxrwx 1 root root 7 26. Dez 11:01 /usr/src/linux-2.6.28-ARCH/include/asm -> asm-x86
[gerhard@tux1 ~]$ ls -l /usr/src/linux-2.6.28-ARCH/include/asm/
-rw-r--r-- 1 root root 5877 26. Dez 10:43 asm-offsets.h
If compiling klibc from testing (i use 1.5.15) with the 2.6.28 patch we have
lrwxrwxrwx 1 root root 8 2009-01-09 11:54 asm-i386 -> asm-i386
-rw-r--r-- 1 root root 5877 2009-01-09 11:53 asm-offsets.h
lrwxrwxrwx 1 root root 7 2009-01-09 11:54 asm-x86 -> asm-x86
two death symlinks (asm-i386, asm-x86). These are the problems that the other
klibc-* tools don't build.
But if i change the kernel asm Symlink to:
/usr/src/linux-2.6.28-ARCH/include/asm -> /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm
(for i686), then i could build
a) klibc 1.5.15 without the 2.6.28-patch
b) the other klibc-* tools from core.