* [devel] Q: klibc
@ 2005-09-07 5:37 Alexey I.Froloff
2005-09-07 9:30 ` [devel] " Anton Farygin
0 siblings, 1 reply; 4+ messages in thread
From: Alexey I.Froloff @ 2005-09-07 5:37 UTC (permalink / raw)
To: ALT Devel discussion list
[-- Attachment #1: Type: text/plain, Size: 2887 bytes --]
Собираю 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
С реальными ядерными заголовками вылезают глюки гора-а-аздо более
прикольные... Что делать?
--
Regards, Sir Raorn.
-------------------
[...] зачем вы хотите затащить код авторизации в ядро, в то время как
все стараются вынести всё что можно из ядра в userspace? Не иначе как
напрашиваетесь на совет прочитать хорошую книжку про unix?
-- ldv in community@
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [devel] Re: Q: klibc
2005-09-07 5:37 [devel] Q: klibc Alexey I.Froloff
@ 2005-09-07 9:30 ` Anton Farygin
2005-09-07 9:40 ` Alexey I.Froloff
0 siblings, 1 reply; 4+ messages in thread
From: Anton Farygin @ 2005-09-07 9:30 UTC (permalink / raw)
To: devel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-09-07 10:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-07 5:37 [devel] Q: klibc Alexey I.Froloff
2005-09-07 9:30 ` [devel] " Anton Farygin
2005-09-07 9:40 ` Alexey I.Froloff
2005-09-07 10:16 ` [devel] " Anton Farygin
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git