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

Chaskiel M Grundman cg2v+@andrew.cmu.edu
Wed, 21 Nov 2001 13:55:31 -0500 (EST)

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
> 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
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?