[devel] Re: Q: klibc
Anton Farygin
=?iso-8859-1?q?rider_=CE=C1_altlinux=2Ecom?=
Ср Сен 7 13:30:47 MSD 2005
On Wed, 07 Sep 2005 09:37:15 +0400, Alexey I. Froloff wrote:
> Собираю klibc с glibc-kernelheaders, имею проблемы...
>
>
> ipconfig:
>
> gcc -Wp,-MD,./.main.o.d -pipe -Wall -march=pentium4 -Os
> -fomit-frame-pointer -falign-functions=0 -falign-jumps=0 -falign-loops=0
> -ffreestanding -m32 -D__KLIBC__=1 -D__KLIBC_MINOR__=1 -nostdlib -nostdinc
> -iwithprefix include -I../include/arch/i386 -I../include/bits32
> -I../include -I../linux/include -I../linux/include2 -I../linux/include
> -mregparm=3 -D_REGPARM=3 -Wstrict-prototypes -Wall -I. -c -o main.o main.c
> In file included from ../linux/include/linux/config.h:4,
> from ../linux/include/asm/atomic.h:4, from
> ../linux/include/linux/netdevice.h:32, from
> ../linux/include/linux/if_arp.h:26, from
> ../include/net/if_arp.h:1,
> from main.c:18:
> ../linux/include/linux/autoconf.h:1:2: #error Invalid kernel header
> included in userspace make: *** [main.o] Error 1
>
>
> nfsmount:
>
> gcc -Wp,-MD,./.main.o.d -pipe -Wall -march=pentium4 -Os
> -fomit-frame-pointer -falign-functions=0 -falign-jumps=0 -falign-loops=0
> -ffreestanding -m32 -D__KLIBC__=1 -D__KLIBC_MINOR__=1 -nostdlib -nostdinc
> -iwithprefix include -I../include/arch/i386 -I../include/bits32
> -I../include -I../linux/include -I../linux/include2 -I../linux/include
> -mregparm=3 -D_REGPARM=3 -Wstrict-prototypes -Wall -I. -c -o main.o main.c
> In file included from main.c:17:
> ../linux/include/linux/nfs_mount.h:26: error: field `old_root' has
> incomplete type ../linux/include/linux/nfs_mount.h:40: error: field `root'
> has incomplete type make: *** [main.o] Error 1
>
> Эти консттанты определены в linux/nfs_fs.h
> внутри #ifdef __KERNEL__
>
> Также ругается на символы MNTPROC_MNT, MNTPROC_UMNT,
> NFS2_FHSIZE, NFS2_VERSION, NFS3_VERSION, NFS_MNT3_VERSION и
> NFS_MNT_VERSION...
>
>
> gcc -Wp,-MD,.nfsroot.d -pipe -Wall -march=pentium4 -Os
> -fomit-frame-pointer -falign-functions=0 -falign-jumps=0 -falign-loops=0
> -ffreestanding -m32 -D__KLIBC__=1 -D__KLIBC_MINOR__=1 -nostdlib -nostdinc
> -iwithprefix include -I../include/arch/i386 -I../include/bits32
> -I../include -I../linux/include -I../linux/include2 -I../linux/include
> -mregparm=3 -D_REGPARM=3 -W -Wall -I../ipconfig -I../nfsmount -c -o
> nfsroot.o nfsroot.c [..skip..]
> In file included from ../nfsmount/nfsmount.h:5,
> from nfsroot.c:12:
> ../linux/include/linux/nfs_mount.h:26: error: field `old_root' has
> incomplete type ../linux/include/linux/nfs_mount.h:40: error: field `root'
> has incomplete type make: *** [nfsroot.o] Error 1
>
>
> С реальными ядерными заголовками
> вылезают глюки гора-а-аздо более
> прикольные... Что делать?
Собирать linux-libc-headers.
Rgds,
Rider
Подробная информация о списке рассылки Devel