[OpenAFS-devel] take 2: openafs 1.3.64 on linux 2.6 -- what am I missing now?

chas williams (contractor) chas@cmf.nrl.navy.mil
Wed, 12 May 2004 22:49:16 -0400


In message <20040512220252.GA20443@jadzia.bu.edu>,Matthew Miller writes:
>First, I needed to make some minor tweaks to get the thing to build at all
>-- in src/rx/LINUX/rx_knet.c, the sock_create call is missing its final
>parameter. I'm just guessing, so I put in a 0. This may be horribly wrong,
>but at this point, I'm still trying to get the thing to _build_, and I can
>worry about _build correctly_ after that. :)

the standard 2.6.5 sources seem to have a 4 argument sock_create().

>Then, src/afs/LINUX/osi_module.c seemed to want a 
>"#if !defined(AFS_LINUX24_ENV)" put around the "sys_settimeofdayp = 0;".

that code is only triggered if you dont have sys_call_table exported.
you will need to patch the 2.6 kernel to get the afs module to load.

>Then, I needed to have a kernel tree to which I had write access -- it wants
>to make some symlinks there. (That doesn't seem so good....)

?

>And perhaps most troubling, the whole thing didn't seem happy at all unless
>I made a change to ./configure -- there's no "i386_linux26" section, so I
>created one by just copying the i386_linux24 part. This is probably not
>sufficient, and is probably what leads to my current state of affairs:

i guess i didnt manage to submit that part.  the 26 stuff is the same
as the 24 stuff (which is really just the same as the 22 basically)

>With the above-mentioned changes, everything builds, but the kernel modules
>generated are 'libafs-2.6.5-1.358custom.o' and
>'libafs-2.6.5-1.358custom.mp.o'. They're not the fancy new .ko format, and
>insmod tells me:
> error inserting 'libafs-2.6.5-1.358custom.o': -1 Invalid module format

it doesnt have to be called .ko  anything in the output of dmesg?