Subject: need help on loading LKMs
To: None <netbsd-users@NetBSD.ORG>
From: VaX#n8 <firstname.lastname@example.org>
Date: 05/03/2004 17:08:19
I'm very very close to having TCFS (Transparent Crypting File System) be
a package. It has been a lot of work, since it was ported a long time ago
and not designed to be an LKM. But I've got everything compiled!
I'm on NetBSD-1.6.2 and I've compiled with "options LKM".
However, I must be doing something silly as I can't seem to use any LKMs:
# modload /usr/lkm/msdosfs.o
ld: Warning: size of symbol `msdosfs_sync' changed from 386 to 270 in /usr/lkm/msdosfs.o
ld: Warning: size of symbol `msdosfs_mountfs' changed from 2448 to 2310 in /usr/lkm/msdosfs.o
ld: Warning: size of symbol `msdosfs_lookup' changed from 2198 to 1941 in /usr/lkm/msdosfs.o
/usr/lkm/msdosfs.o: In function `msdosfs_lkmentry':
/usr/lkm/msdosfs.o(.text+0x42): undefined reference to `lkm_nofunc'
/usr/lkm/msdosfs.o(.text+0x57): undefined reference to `lkm_nofunc'
/usr/lkm/msdosfs.o(.text+0x6b): undefined reference to `lkm_nofunc'
/usr/lkm/msdosfs.o(.text+0x7c): undefined reference to `lkmdispatch'
/usr/lkm/msdosfs.o: In function `deupdat':
/usr/lkm/msdosfs.o(.text+0x1090): undefined reference to `VOP_UPDATE'
/usr/lkm/msdosfs.o: In function `msdosfs_inactive':
/usr/lkm/msdosfs.o(.text+0x64e2): more undefined references to `VOP_UNLOCK' follow
/usr/lkm/msdosfs.o: In function `msdosfs_symlink':
/usr/lkm/msdosfs.o(.text+0x6b08): undefined reference to `VOP_ABORTOP'
modload: can't prelink `/usr/lkm/msdosfs.o' creating `/usr/lkm/msdosfs'
Similar problems happen with tcfs.o.
So, can anyone tell me what I'm doing wrong?
It must be simple, but I'm temporarily stumped.
These undefined symbols are clearly defined in my kernel, which I thought is
what it was linking it to.