[OpenAFS-port-freebsd] Can't figure out kldload

Brandon S. Allbery KF8NH allbery@ece.cmu.edu
Wed, 21 Nov 2001 14:16:45 -0500


On Wednesday, November 21, 2001 13:55:31 -0500, Chaskiel M Grundman 
<cg2v+@andrew.cmu.edu> wrote:
+-----
| So, I've been working a bit on the kernel part of afs (on a 4.4 machine).
| I've gotten to the point where stuff compiles, and I think that there are
| no undefined symbols, and I want to start panicing my kernel :)
|
| Unfortunately, I can't make a kernel module that loads:
|
| > pwd
| /usr/home/cg2v/openafs/src/libafs/STATIC
| > rm -f *.o setdef*
| > make libafs.nonfs.o
| [...]
| > rm libafs.nonfs.o
| > ld -r -o afs.kld *.o
| > gensetdefs afs.kld
| > gcc -c setdef0.c setdef1.c
| > ld -Bshareable -o afs.ko setdef0.o afs.kld setdef1.o
| > su
| Password:
| gtok-vm# kldload ./afs.ko
| kldload: can't load ./afs.ko: Exec format error
|
|
| Anyone have a clue as to what I'm doing wrong?
| _______________________________________________
| port-freebsd mailing list
| port-freebsd@openafs.org
| https://lists.openafs.org/mailman/listinfo/port-freebsd

+--->8

Check the syslog; "Exec format error" could mean just about anything, 
including missing symbols.

-- 
brandon s. allbery  [os/2][linux][solaris][freebsd]   allbery@kf8nh.apk.net
system administrator   [JAPH][WAY too many hats]        allbery@ece.cmu.edu
electrical and computer engineering                                   KF8NH
carnegie mellon university     [linux: proof of the million monkeys theory]