Subject: kern/28340: modload lfs.o error
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <fun@naobsd.org>
List: netbsd-bugs
Date: 11/17/2004 14:15:00
>Number:         28340
>Category:       kern
>Synopsis:       modload lfs.o error
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 17 14:15:00 +0000 2004
>Originator:     FUKAUMI Naoki
>Release:        NetBSD 2.99.10 built from today's source
>Organization:
	FUKAUMI Naoki
>Environment:
System: NetBSD tr1.naobsd.org 2.99.10 NetBSD 2.99.10 (TR1) #0: Wed Nov 17 16:46:34 JST 2004 root@tr1.naobsd.org:/usr/src/sys/arch/i386/compile/TR1 i386
Architecture: i386
Machine: i386
>Description:
	I can't use LFS LKM module.

# modstat
Type    Id   Offset Loadaddr Size Info     Rev Module Name
VFS       0       - c7280000 000c c7282be0   2 adosfs
MISC      1       - c7285000 0008 c7286f00   2 bsdcomp
VFS       2       - c7288000 0018 c728ce60   2 cd9660
VFS       3       - c72c0000 0028 c72c8ec0   2 coda
MISC      4       - c72e0000 0024 c72e7ce0   2 deflate
VFS       5       - c7300000 0028 c73092c0   2 ext2fs
VFS       6       - c72cb000 0008 c72cc840   2 fdesc
VFS       7       - c72e9000 000c c72eb660   2 filecorefs
DEV       8  -1/44  c7340000 0070 c7358580   2 IP Filter: v4.1.3
VFS       9       - c72ec000 000c c72ee560   2 kernfs
VFS      10       - c72cf000 0004 c72cfea0   2 mfs
VFS      11       - c7390000 0024 c7398940   2 msdosfs
VFS      12       - c7399000 001c c739f3e0   2 ntfs
VFS      13       - c72ef000 0004 c72ef540   2 nullfs
VFS      14       - c730a000 0004 c730a4e0   2 overlay
DEV      15  -1/161 c73e0000 0098 c7401580   2 pf
VFS      16       - c730c000 0008 c730d000   2 portal
VFS      17       - c7406000 0014 c740abc0   2 procfs
VFS      18       - c735c000 0008 c735dc60   2 ptyfs
VFS      19       - c7450000 001c c74568a0   2 smbfs
VFS      20       - c735e000 0008 c735f4e0   2 umapfs
VFS      21       - c740b000 0014 c740f440   2 union
# modload /usr/lkm/lfs.o
/usr/lkm/lfs.o(.text+0x164cc): In function `ufsspec_write':
: multiple definition of `ufsspec_write'
/usr/lkm/lfs.o(.text+0x15dac): In function `ufs_symlink':
: multiple definition of `ufs_symlink'
/usr/lkm/lfs.o(.text+0x16768): In function `ufsfifo_write':
: multiple definition of `ufsfifo_write'
/usr/lkm/lfs.o(.text+0x13a08): In function `ufs_create':
: multiple definition of `ufs_create'
/usr/lkm/lfs.o(.text+0x13b80): In function `ufs_close':
: multiple definition of `ufs_close'
/usr/lkm/lfs.o(.text+0x16794): In function `ufsfifo_close':
: multiple definition of `ufsfifo_close'
/usr/lkm/lfs.o(.text+0x16224): In function `ufs_readlink':
: multiple definition of `ufs_readlink'
/usr/lkm/lfs.o(.text+0x169c8): In function `ufs_pathconf':
: multiple definition of `ufs_pathconf'
/usr/lkm/lfs.o(.text+0x16e98): In function `ufs_gop_alloc':
: multiple definition of `ufs_gop_alloc'
/usr/lkm/lfs.o(.text+0x16490): In function `ufsspec_read':
: multiple definition of `ufsspec_read'
/usr/lkm/lfs.o(.text+0x1650c): In function `ufsspec_close':
: multiple definition of `ufsspec_close'
/usr/lkm/lfs.o(.text+0x13e20): In function `ufs_getattr':
: multiple definition of `ufs_getattr'
ld: Warning: size of symbol `ufs_getattr' changed from 1057 in <unknown> to 1013 in /usr/lkm/lfs.o
/usr/lkm/lfs.o(.text+0x13b4c): In function `ufs_open':
: multiple definition of `ufs_open'
/usr/lkm/lfs.o(.text+0x16740): In function `ufsfifo_read':
: multiple definition of `ufsfifo_read'
/usr/lkm/lfs.o(.text+0x15b64): In function `ufs_rmdir':
: multiple definition of `ufs_rmdir'
/usr/lkm/lfs.o(.text+0x14758): In function `ufs_remove':
: multiple definition of `ufs_remove'
/usr/lkm/lfs.o(.text+0x15f04): In function `ufs_readdir':
: multiple definition of `ufs_readdir'
ld: Warning: size of symbol `ufs_readdir' changed from 1439 in <unknown> to 800 in /usr/lkm/lfs.o
/usr/lkm/lfs.o(.text+0x14218): In function `ufs_setattr':
: multiple definition of `ufs_setattr'
/usr/lkm/lfs.o(.text+0x16a34): In function `ufs_advlock':
: multiple definition of `ufs_advlock'
/usr/lkm/lfs.o(.text+0x163cc): In function `ufs_print':
: multiple definition of `ufs_print'
/usr/lkm/lfs.o(.text+0x13d98): In function `ufs_access':
: multiple definition of `ufs_access'
ld: Warning: size of symbol `ufs_access' changed from 156 in <unknown> to 133 in /usr/lkm/lfs.o
/usr/lkm/lfs.o(.text+0x16a60): In function `ufs_vinit':
: multiple definition of `ufs_vinit'
ld: Warning: size of symbol `ufs_vinit' changed from 355 in <unknown> to 304 in /usr/lkm/lfs.o
/usr/lkm/lfs.o(.text+0x13a64): In function `ufs_mknod':
: multiple definition of `ufs_mknod'
ld: Warning: size of symbol `ufs_mknod' changed from 268 in <unknown> to 232 in /usr/lkm/lfs.o
modload: can't prelink `/usr/lkm/lfs.o' creating `/usr/lkm/lfs'
>How-To-Repeat:
	See above.
>Fix:
	Yes, please.