2002-01-15 10:11:19

by Silviu Marin-Caea

[permalink] [raw]
Subject: compile error 2.4.17

I'm trying to compile a minimalistic custom kernel for a bootable
diskette.

Environment:

[root@silviu linux]# uname --all; rpm -q glibc gcc
Linux silviu.delrom.ro 2.4.17 #1 Mon Jan 14 21:17:36 EET 2002 i686
unknown glibc-2.2.4-19.3
gcc-2.96-98

Not subscribed to the list, please CC me. Thanks.

The error:

ld -m elf_i386 -T /usr/src/linux-2.4.17/arch/i386/vmlinux.lds -e stext
arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o
init/version.o \ --start-group \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o
fs/fs.o ipc/ipc.o \ drivers/char/char.o drivers/block/block.o
drivers/misc/misc.o drivers/net/net.o drivers/media/media.o
drivers/ide/idedriver.o drivers/cdrom/driver.o drivers/pci/driver.o
drivers/video/video.o \ net/network.o \
/usr/src/linux-2.4.17/arch/i386/lib/lib.a
/usr/src/linux-2.4.17/lib/lib.a
/usr/src/linux-2.4.17/arch/i386/lib/lib.a \ --end-group \
-o vmlinux
fs/fs.o: In function `nfs_xdr_diropargs':
fs/fs.o(.text+0x2f0bb): undefined reference to `xdr_encode_array'
fs/fs.o: In function `nfs_xdr_readres':
fs/fs.o(.text+0x2f3d0): undefined reference to `xdr_zero_iovec'
fs/fs.o: In function `nfs_xdr_createargs':
fs/fs.o(.text+0x2f52c): undefined reference to `xdr_encode_array'
fs/fs.o: In function `nfs_xdr_renameargs':
fs/fs.o(.text+0x2f63b): undefined reference to `xdr_encode_array'
fs/fs.o(.text+0x2f659): undefined reference to `xdr_encode_array'
fs/fs.o: In function `nfs_xdr_linkargs':
fs/fs.o(.text+0x2f6bd): undefined reference to `xdr_encode_array'
fs/fs.o: In function `nfs_xdr_symlinkargs':
fs/fs.o(.text+0x2f70c): undefined reference to `xdr_encode_array'
fs/fs.o(.text+0x2f71a): more undefined references to `xdr_encode_array'
follow fs/fs.o: In function `nfs3_xdr_readdirres':
fs/fs.o(.text+0x36e3e): undefined reference to `xdr_shift_iovec'
fs/fs.o: In function `nfs3_xdr_readlinkres':
fs/fs.o(.text+0x37ec3): undefined reference to `xdr_shift_iovec'
fs/fs.o: In function `nfs3_xdr_readres':
fs/fs.o(.text+0x38102): undefined reference to `xdr_shift_iovec'
fs/fs.o(.text+0x3814f): undefined reference to `xdr_zero_iovec'
fs/fs.o: In function `xdr_encode_mon':
fs/fs.o(.text+0x3db97): undefined reference to `xdr_encode_string'
fs/fs.o(.text+0x3dbab): undefined reference to `xdr_encode_string'
fs/fs.o: In function `nlm_encode_lock':
fs/fs.o(.text+0x3dcaa): undefined reference to `xdr_encode_string'
fs/fs.o(.text+0x3dcd4): undefined reference to `xdr_encode_netobj'
fs/fs.o: In function `nlm_encode_testres':
fs/fs.o(.text+0x3dea7): undefined reference to `xdr_encode_netobj'
fs/fs.o: In function `nlmsvc_decode_testargs':
fs/fs.o(.text+0x3e030): undefined reference to
`xdr_decode_string_inplace' fs/fs.o(.text+0x3e08e): undefined reference
to `xdr_decode_netobj' fs/fs.o: In function `nlmsvc_decode_lockargs':
fs/fs.o(.text+0x3e25d): undefined reference to
`xdr_decode_string_inplace' fs/fs.o(.text+0x3e2be): undefined reference
to `xdr_decode_netobj' fs/fs.o: In function `nlmsvc_decode_cancargs':
fs/fs.o(.text+0x3e47d): undefined reference to
`xdr_decode_string_inplace' fs/fs.o(.text+0x3e4de): undefined reference
to `xdr_decode_netobj' fs/fs.o: In function `nlmsvc_decode_unlockargs':
fs/fs.o(.text+0x3e658): undefined reference to
`xdr_decode_string_inplace' fs/fs.o(.text+0x3e6b3): undefined reference
to `xdr_decode_netobj' fs/fs.o: In function `nlmsvc_decode_shareargs':
fs/fs.o(.text+0x3e85d): undefined reference to
`xdr_decode_string_inplace' fs/fs.o(.text+0x3e8c4): undefined reference
to `xdr_decode_netobj' fs/fs.o: In function `nlmsvc_decode_notify':
fs/fs.o(.text+0x3ea7c): undefined reference to
`xdr_decode_string_inplace' fs/fs.o: In function `nlmsvc_decode_reboot':
fs/fs.o(.text+0x3ead9): undefined reference to
`xdr_decode_string_inplace' fs/fs.o: In function
`nlmclt_decode_testres': fs/fs.o(.text+0x3eddc): undefined reference to
`xdr_decode_netobj' fs/fs.o: In function `nlm4_decode_lock':
fs/fs.o(.text+0x3f47a): undefined reference to
`xdr_decode_string_inplace' fs/fs.o: In function `nlm4_encode_lock':
fs/fs.o(.text+0x3f579): undefined reference to `xdr_encode_string'
fs/fs.o: In function `nlm4_encode_testres':
fs/fs.o(.text+0x3f785): undefined reference to `xdr_encode_netobj'
fs/fs.o: In function `nlm4svc_decode_shareargs':
fs/fs.o(.text+0x3fba0): undefined reference to
`xdr_decode_string_inplace' fs/fs.o: In function
`nlm4svc_decode_notify': fs/fs.o(.text+0x3fccc): undefined reference to
`xdr_decode_string_inplace' fs/fs.o: In function
`nlm4svc_decode_reboot': fs/fs.o(.text+0x3fd19): undefined reference to
`xdr_decode_string_inplace' fs/fs.o: In function `nlm4_decode_oh':
fs/fs.o(.text+0x3f441): undefined reference to `xdr_decode_netobj'
fs/fs.o: In function `nlm4_encode_oh':
fs/fs.o(.text+0x3f451): undefined reference to `xdr_encode_netobj'
net/network.o: In function `xdr_encode_netobj_R29c6f164':
net/network.o(.text+0x427b4): undefined reference to
`_mmx_memcpy_R15670e2d' net/network.o: In function
`xdr_decode_netobj_fixed': net/network.o(.text+0x42816): undefined
reference to `_mmx_memcpy_R15670e2d' net/network.o: In function
`xdr_encode_array_R716530af': net/network.o(.text+0x428ba): undefined
reference to `_mmx_memcpy_R15670e2d' net/network.o: In function
`xdr_shift_iovec_R20fb9f87': net/network.o(.text+0x429dd): undefined
reference to `printk_R1b7d4074' net/network.o(.text+0x42a0f): undefined
reference to `printk_R1b7d4074' net/network.o(.text+0x42a44): undefined
reference to `_mmx_memcpy_R15670e2d' make: *** [vmlinux] Error 1

--
Silviu Marin-Caea - Network & Systems Administrator - Delta Romania
Phone +4093-267961


Attachments:
config (15.42 kB)

2002-01-15 10:24:31

by Silviu Marin-Caea

[permalink] [raw]
Subject: Re: compile error 2.4.17

On Tue, 15 Jan 2002 12:11:23 +0200
Silviu Marin-Caea <[email protected]> wrote:

> I'm trying to compile a minimalistic custom kernel for a bootable
> diskette.

If I enable the kernel module loader, compilation works. I don't need
it, I'm building that kernel with everything compiled in, no modules.

grep "=m" .config shows nothing

--
Silviu Marin-Caea - Network & Systems Administrator - Delta Romania
Phone +4093-267961

2002-01-16 11:42:17

by Silviu Marin-Caea

[permalink] [raw]
Subject: Re: compile error 2.4.17 is fixed in 2.4.18pre4

On Tue, 15 Jan 2002 12:24:42 +0200
Silviu Marin-Caea <[email protected]> wrote:

> If I enable the kernel module loader, compilation works. I don't need
> it, I'm building that kernel with everything compiled in, no modules.

$subj

--
Silviu Marin-Caea - Network & Systems Administrator - Delta Romania
Phone +4093-267961