[OpenAFS] Re: Rép. : Re: [OpenAFS] OpenAFS on Suse

Karsten Künne kuenne@rentec.com
Tue, 12 Sep 2006 10:50:45 -0400


On Tuesday 12 September 2006 01:20, Francois Pernet wrote:
> Hi Karsten,
>
> You're right..i didn't give too much details:
>
> Package OpenAFS 1.4.2.rc1 on SLES10 (kernel : 2.6.16.21-0.8.default).
> ./configure   (ok)
> make
>
> then the following error
> make -C ../../../linux-2.6.16.21-0.8
> O=../linux-2.6.16.21-0.8-obj/i386/default modules
>   CC [M]
> /opt/openafs-1.4.2rc1/src/libafs/MODLOAD-2.6.16.21-0.8-default-MP/afs_a=
toml
>ist.o CC [M]
> /opt/openafs-1.4.2rc1/src/libafs/MODLOAD-2.6.16.21-0.8-default-MP/afs_l=
hash
>.o CC [M]
> /opt/openafs-1.4.2rc1/src/libafs/MODLOAD-2.6.16.21-0.8-default-MP/afs_a=
naly
>ze.o In file included from /opt/openafs-1.4.2rc1/src/afs/afs_osi.h:443, =
from
> /opt/openafs-1.4.2rc1/src/rx/rx_clock.h:88,
>                  from /opt/openafs-1.4.2rc1/src/rx/rx.h:35,
>                  from /opt/openafs-1.4.2rc1/src/afs/afsincludes.h:26,
>                  from
> /opt/openafs-1.4.2rc1/src/libafs/MODLOAD-2.6.16.21-0.8-default-MP/afs_a=
naly
>ze.c:36: /opt/openafs-1.4.2rc1/src/afs/LINUX/osi_machdep.h:57:2: error:
> #error Not sure what to do about rlim (should be in the Linux task stru=
ct
> somewhere....)
> In file included from /opt/openafs-1.4.2rc1/src/afs/afsincludes.h:43,
>                  from
> /opt/openafs-1.4.2rc1/src/libafs/MODLOAD-2.6.16.21-0.8-default-MP/afs_a=
naly
>ze.c:36: /opt/openafs-1.4.2rc1/src/vlserver/vldbint.h:304: warning:
> â€*struct ubik_clientâ€* declared inside parameter list
> /opt/openafs-1.4.2rc1/src/vlserver/vldbint.h:304: warning: its scope is
> only this definition or declaration, which is probably not what you
> want
> /opt/openafs-1.4.2rc1/src/vlserver/vldbint.h:317: warning: â€*struc=
t
> ubik_clientâ€* declared inside parameter list
> /opt/openafs-1.4.2rc1/src/vlserver/vldbint.h:332: warning: â€*struc=
t
> ubik_clientâ€* declared inside parameter list
> /opt/openafs-1.4.2rc1/src/vlserver/vldbint.h:347: warning: â€*struc=
t
> ubik_clientâ€* declared inside parameter list
> /opt/openafs-1.4.2rc1/src/vlserver/vldbint.h:368: warning: â€*struc=
t
> ubik_clientâ€* declared inside parameter list
> make[8]: ***
> [/opt/openafs-1.4.2rc1/src/libafs/MODLOAD-2.6.16.21-0.8-default-MP/afs_=
anal
>yze.o] Error 1
> make[7]: ***
> [_module_/opt/openafs-1.4.2rc1/src/libafs/MODLOAD-2.6.16.21-0.8-default=
-MP]
> Error 2
> make[6]: *** [modules] Error 2
> make[5]: *** [modules] Error 2
> make[5]: Leaving directory
> `/usr/src/linux-2.6.16.21-0.8-obj/i386/default'
> make[4]: *** [libafs.ko] Error 2
> make[4]: Leaving directory
> `/opt/openafs-1.4.2rc1/src/libafs/MODLOAD-2.6.16.21-0.8-default-MP'
> make[3]: *** [linux_compdirs] Error 2
> make[3]: Leaving directory `/opt/openafs-1.4.2rc1/src/libafs'
> make[2]: *** [libafs] Error 2
> make[2]: Leaving directory `/opt/openafs-1.4.2rc1'
> make[1]: *** [build] Error 2
> make[1]: Leaving directory `/opt/openafs-1.4.2rc1'
> make: *** [all] Error 2
>
> do you have an idea ?
>

I had to change the link "build" in /lib/modules/`uname -r` . These are the 
steps I took in order to compile the kernel module:

        cd /usr/src/linux
        make cloneconfig
        make prepare
        make modules_prepare
        cd /lib/modules/`uname -r`
        rm build
        ln -s source build
        mkdir extra
        export KERNEL_SOURCE=/usr/src/linux

That's for OpenAFS 1.4.1 but I guess 1.4.2 is similar.


Karsten.
-- 
Genetics explains why you look like your father, and if you don't, why
you should.