[klibc] Compilation errors

Peter Christy christy at attglobal.net
Mon Nov 12 00:48:59 PST 2012


I've been trying to compile klibc on my system, so that I can have high 
resolution consoles via uvesafb, without conflicting with the NVidia drivers I 
need to use to handle hi-def video.

I have tried versions 1.5.20, 2.0.1 and 2.0.2 all without success.

My system is Slackware64-14.0 running kernel 3.6.3 on an AMD quad core 
motherboard. GCC version is 4.7.1.

My initial problem was that the compilation failed when it failed to find 
unistd_64.h in /usr/src/linux-3.6.3/arch/x86/include/asm/

This is because in kernel 3.6.3, it appears to be in 
/usr/src/linux-3.6.3/arch/sh/include/asm/ -  a small but significant difference.

I overcame this by making a symbolic link between 
/usr/src/linux-3.6.3/arch/sh/include/asm/unistd_64.h and 
/usr/src/linux-3.6.3/arch/x86/include/asm/ , which overcame that problem, but 
is not an elegant solution!

But I am still unable to get klibc to build!

2.0.2 fails with the following error:

usr/klibc/sigsuspend.c:8:31: fatal error: klibc/havesyscall.h: No such file or 
directory
compilation terminated.

whereas 1.5.20 and 2.0.1 fail with similar errors:

klibc-2.0.1/usr/klibc/../include/sys/types.h:28:1: error: unknown type name 
'__kernel_nlink_t'

I am not a programmer, but both these errors look like internal errors within 
klibc to my uneducated eyes.

Any suggestions gratefully received!

-- 
Pete Christy
christy at attglobal.net




More information about the klibc mailing list