Hello Chaskiel, guys,
Many thanks. Your help is much appreciated.
LOL, I have to say why I am not using the kernel package from debian proper. When I was running stable, kernel 2.4.17 was the latest possible choice in that distro level. Thinking I needed a newer kernel, I tried the 2.4.27 kernel from kernel.org. When it still didn't work, then I upgraded the distro to get new packages - compiler, openafs, etc. Since the kernel built, and worked, I never reinstalled the 2.4.27 kernel package. I didn't think it would matter.
Concerning your adivice, I used your changes below and tried rebuilding the openafs code. This time it built, but insmod of the modiules failed for the same original reason. ie. sys_call_table32 is not found.
Thinking I was doing something wrong because I wasn't using the proper kernel source, I installed the 2.4.27 kernel package and tried again.
Here is how I did it.
Get new kernel source, build it, boot it.
apt-get install kernel-source-2.4.27
cd /usr/src
tar -xvjf kernel-source-2.4.27.tar.bz
cp my old config to the new dir (cp linux/.config kernel-source-2.4.27/.)
ln -sfn kernel-source-2.4.27 linux
cd linux
make menuconfig (exit and save)
make dep clean vmlinux modules modules_install
cp and reboot with new kernel.
Build openafs modules
cd /usr/src/linux
make-kpkg configure
make-kpkg modules
cd /usr/src
dpkg -i openafs-modules-2.4.27-sparc64_1.2.11-3+10.00.Custom_sparc.deb
However, its the same result again.
insmod openafs
Using /lib/modules/2.4.27/fs/openafs.o
/lib/modules/2.4.27/fs/openafs.o: /lib/modules/2.4.27/fs/openafs.o: unresolved symbol sys_call_table32
Maybe we need to compare kernel .config files.
Please advise,
JD
Chaskiel M Grundman <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED] 10/24/2004 02:22 PM |
|
--On Sunday, October 24, 2004 12:48:31 -0400 John F Davis
<[EMAIL PROTECTED]> wrote:
> ../afs/osi_groups.c:181: parse error before `old_gid_t'
> ../afs/osi_groups.c:182: parse error before `old_gid_t'
I guess I forgot that I patched around this error.
Edit /usr/src/modules/openafs/src/afs/LINUX/osi_groups.c and change
old_gid_t to u16 on line 181 and 182.
>
>
> Notes about this error.
> I am using a 2.4.27 kernel from kernel.org (not a debian package
> version).
Then why are you using the debian openafs module source?
Don't answer that.
> I have installed .deb kernel-headers-2.4.27-1which puts include files in
> /usr/src., but I am not sure if they are being used.
They are not being used, because you set KSRC=/usr/src/linux, but that
appears to be what you want.
Given that you are building a kernel.org kernel anyway, it doesn't relly
make sense to use my alternate method of building a module. I use it
because it means that I can build modules against kernel-headers packages
rather than needing to construct a kernel build tree myself.
> Other notes about gcc. If i deinstall egcs64 and try using the gcc code.
>
> sparc64-linux-gcc is not found and the make-kpkg modules step fails to
> build for afs. I can build the kernel though.
That's something else I did that I forgot about
I created a /usr/bin/sparc64-linux-gcc script containing:
#!/bin/sh
exec sparc-linux-gcc -m64 "[EMAIL PROTECTED]"
But that will only work if you are running sarge or sid.
openafs probably needs some sort of compiler detection logic to deal with
this.
[attachment "C.DTF" deleted by John F Davis/Raleigh/IBM]
<<inline: graycol.gif>>
<<inline: pic10626.gif>>
<<inline: ecblank.gif>>
