ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey I.Froloff <raorn@immo.ru>
To: "ALT Devel discussion list" <devel@altlinux.ru>
Subject: [devel] Q: klibc
Date: Wed, 7 Sep 2005 09:37:15 +0400
Message-ID: <20050907053715.GD7550@immo.ru> (raw)

[-- 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 --]

             reply	other threads:[~2005-09-07  5:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-07  5:37 Alexey I.Froloff [this message]
2005-09-07  9:30 ` [devel] " Anton Farygin
2005-09-07  9:40   ` Alexey I.Froloff
2005-09-07 10:16     ` [devel] " Anton Farygin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050907053715.GD7550@immo.ru \
    --to=raorn@immo.ru \
    --cc=devel@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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