[klibc] Compilation errors
maximilian attems
maks at stro.at
Mon Nov 12 05:40:32 PST 2012
On Mon, Nov 12, 2012 at 08:48:59AM +0000, Peter Christy wrote:
> 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.
You are trying to compile against the wrong headers, let me show an easy way:
get a linux source:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
cd linux
make defconfig
make headers_install
cd ../klibc/
make KLIBCKERNELSRC=`pwd`/../linux/usr/
> 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'
this is fixed in 2.0.1 for recent linux headers.
--
maks
More information about the klibc
mailing list