From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Anton Farygin Organization: ALT Linux Ltd. Date: Wed, 07 Sep 2005 13:30:47 +0400 User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Message-Id: References: <20050907053715.GD7550@immo.ru> To: devel@altlinux.ru MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit Subject: [devel] Re: Q: klibc X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2005 09:32:56 -0000 Archived-At: List-Archive: List-Post: 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