[OpenAFS] getting recent openafs on suse desktop 10.2

Marcel Steinke m.steinke@kubus-ng.net
Tue, 24 Apr 2007 10:07:54 +0200


Am Montag, 23. April 2007 11:15 schrieb Martin Lutken:
> In order for OpenAFS to compile (latest versions at least) you should fir=
st
> navigate to /usr/src/linux (symlink to our current kernel source, You mig=
ht
> need to install it with Yast first).
>
> *** In the linux kernel directory ***
> /usr/src/linux # make cloneconfig
> /usr/src/linux # make prepare

I have prepared my kernel sources...

> Perhaps you even need to build the whole kernel.
> (But I don't believe it's necessary)
>
> *** Then compile OpenAFS ***
> afs:openafs-1.5.17
> # ./configure --enable-transarc-paths --enable-supergroups
> --enable-namei-fileserver --enable-largefile-fileserver
> --with-krb5-conf=3D/usr/lib/mit/bin/krb5-config
> --with-linux-kernel-headers=3D/usr/src/linux --enable-fast-restart
> --enable-bitmap-later # make
> # make install
>
> *** Client kernel module 'sunrpc' ***
> Before using modprobe/insmod on the libafs kernel module you
> need to install the 'sunrpc' module into the kernel. If not
> you will get an undefined symbol error message.
> # modprobe sunrpc
> # insmod /usr/local/lib/openafs/libafs-2.6.18.2-34-default.mp.ko
>
> Note that your actual kernel version number might be different.
>
> Hope it works!

=2E/configure --with-afs-sysname=3Dppc64-linux26 && make

make[1]: Entering directory `/usr/local/src/openafs-1.5.19'
make finale DEST=3D/usr/local/src/openafs-1.5.19/ppc64-linux26/dest=20
COMPILE_PART2B=3Dall DESTDIR=3D
make[2]: Entering directory `/usr/local/src/openafs-1.5.19'
cd src && cd config && make all
make[3]: Entering directory `/usr/local/src/openafs-1.5.19/src/config'
rm -f Makefile.version
if      [ -r SRC/../CML/state ] ; \
        then    cp ./Makefile.version-CML Makefile.version ; \
        else    cp Makefile.version-NOCML Makefile.version ; \
        fi
make -f Makefile.version AFS_component_version_number.c
make[4]: Entering directory `/usr/local/src/openafs-1.5.19/src/config'
echo 'char cml_version_number[]=3D"@(#) OpenAFS 1.5.19 built ' `date=20
+"%Y-%m-%d"` '";' >AFS_component_version_number.c
echo 'char* AFSVersion =3D "openafs 1.5.19"; ' >>AFS_component_version_numb=
er.c
make[4]: Leaving directory `/usr/local/src/openafs-1.5.19/src/config'
cc  -O -I/usr/local/src/openafs-1.5.19/include -I.  -O  -I. -c ./config.c
=2E/config.c: In function =E2=80=98main=E2=80=99:
=2E/config.c:35: warning: incompatible implicit declaration of built-in=20
function =E2=80=98exit=E2=80=99
=2E/config.c:40: warning: incompatible implicit declaration of built-in=20
function =E2=80=98exit=E2=80=99
=2E/config.c:45: warning: incompatible implicit declaration of built-in=20
function =E2=80=98exit=E2=80=99
=2E/config.c:65: warning: incompatible implicit declaration of built-in=20
function =E2=80=98exit=E2=80=99
=2E/config.c:68: warning: incompatible implicit declaration of built-in=20
function =E2=80=98exit=E2=80=99
cc  -O -I/usr/local/src/openafs-1.5.19/include -I.  -O  -c ./mc.c
cc  -O -I/usr/local/src/openafs-1.5.19/include -I.  -O  -o config config.o=
=20
mc.o
cc  -O -I/usr/local/src/openafs-1.5.19/include -I.  -O  -o mkvers ./mkvers.c
make[3]: *** Keine Regel vorhanden, um das Target =C2=BBparam.ppc64-linux26=
=2Eh=C2=AB,
  ben=C3=B6tigt von =C2=BB/usr/local/src/openafs-1.5.19/include/afs/param.h=
=C2=AB, zu=20
erstellen.  Schluss.
make[3]: Leaving directory `/usr/local/src/openafs-1.5.19/src/config'
make[2]: *** [config] Fehler 2
make[2]: Leaving directory `/usr/local/src/openafs-1.5.19'
make[1]: *** [build] Fehler 2
make[1]: Leaving directory `/usr/local/src/openafs-1.5.19'
make: *** [all] Fehler 2

With this options:
=2E/.configure --enable-supergroups --enable-namei-fileserver --enable-larg=
efile-fileserver
=2D-with-krb5-conf=3D/usr/lib/mit/bin/krb5-config  --with-linux-kernel-head=
ers=3D/usr/src/linux=20
=2D-enable-fast-restart  --enable-bitmap-later --with-afs-sysname=3Dppc64-l=
inux26

/usr/local/src/openafs-1.5.19/src/libafs/MODLOAD-2.6.18.8-0.1-ppc64-MP/osi_=
syscall.c:108:=20
warning: function declaration isn=E2=80=99t a prototype
/usr/local/src/openafs-1.5.19/src/libafs/MODLOAD-2.6.18.8-0.1-ppc64-MP/osi_=
syscall.c:112:=20
warning: function declaration isn=E2=80=99t a prototype
/usr/local/src/openafs-1.5.19/src/libafs/MODLOAD-2.6.18.8-0.1-ppc64-MP/osi_=
syscall.c:143:=20
warning: function declaration isn=E2=80=99t a prototype
/usr/local/src/openafs-1.5.19/src/libafs/MODLOAD-2.6.18.8-0.1-ppc64-MP/osi_=
syscall.c:148:=20
warning: function declaration isn=E2=80=99t a prototype
/usr/local/src/openafs-1.5.19/src/libafs/MODLOAD-2.6.18.8-0.1-ppc64-MP/osi_=
syscall.c:150:=20
warning: function declaration isn=E2=80=99t a prototype
/usr/local/src/openafs-1.5.19/src/libafs/MODLOAD-2.6.18.8-0.1-ppc64-MP/osi_=
syscall.c:155:=20
warning: function declaration isn=E2=80=99t a prototype
/usr/local/src/openafs-1.5.19/src/libafs/MODLOAD-2.6.18.8-0.1-ppc64-MP/osi_=
syscall.c:157:=20
warning: function declaration isn=E2=80=99t a prototype
/usr/local/src/openafs-1.5.19/src/libafs/MODLOAD-2.6.18.8-0.1-ppc64-MP/osi_=
syscall.c:=20
In function =E2=80=98osi_syscall_init=E2=80=99:
/usr/local/src/openafs-1.5.19/src/libafs/MODLOAD-2.6.18.8-0.1-ppc64-MP/osi_=
syscall.c:467:=20
warning: assignment makes pointer from integer without a cast
/usr/local/src/openafs-1.5.19/src/libafs/MODLOAD-2.6.18.8-0.1-ppc64-MP/osi_=
syscall.c:485:=20
warning: assignment makes integer from pointer without a cast
/usr/local/src/openafs-1.5.19/src/libafs/MODLOAD-2.6.18.8-0.1-ppc64-MP/osi_=
syscall.c:494:=20
warning: assignment makes integer from pointer without a cast
/usr/local/src/openafs-1.5.19/src/libafs/MODLOAD-2.6.18.8-0.1-ppc64-MP/osi_=
syscall.c:499:=20
warning: assignment from incompatible pointer type
/usr/local/src/openafs-1.5.19/src/libafs/MODLOAD-2.6.18.8-0.1-ppc64-MP/osi_=
syscall.c:500:=20
warning: assignment from incompatible pointer type
/usr/local/src/openafs-1.5.19/src/libafs/MODLOAD-2.6.18.8-0.1-ppc64-MP/osi_=
syscall.c:=20
At top level:
/usr/local/src/openafs-1.5.19/src/libafs/MODLOAD-2.6.18.8-0.1-ppc64-MP/osi_=
syscall.c:139:=20
warning: =E2=80=98afs_ni_syscall32=E2=80=99 defined but not used
make[6]: *** Keine Regel vorhanden, um das=20
Target =C2=BB/usr/local/src/openafs-1.5.19/src/libafs/MODLOAD-2.6.18.8-0.1-=
ppc64-MP/osi_flush.o=C2=AB,
  ben=C3=B6tigt=20
von =C2=BB/usr/local/src/openafs-1.5.19/src/libafs/MODLOAD-2.6.18.8-0.1-ppc=
64-MP/libafs.o=C2=AB,=20
zu erstellen.  Schluss.
make[5]: ***=20
[_module_/usr/local/src/openafs-1.5.19/src/libafs/MODLOAD-2.6.18.8-0.1-ppc6=
4-MP]=20
=46ehler 2
make[5]: Leaving directory `/usr/src/linux-2.6.18.8-0.1'
make[4]: *** [libafs.ko] Fehler 2
make[4]: Leaving directory=20
`/usr/local/src/openafs-1.5.19/src/libafs/MODLOAD-2.6.18.8-0.1-ppc64-MP'
make[3]: *** [linux_compdirs] Fehler 2
make[3]: Leaving directory `/usr/local/src/openafs-1.5.19/src/libafs'
make[2]: *** [libafs] Fehler 2
make[2]: Leaving directory `/usr/local/src/openafs-1.5.19'
make[1]: *** [build] Fehler 2
make[1]: Leaving directory `/usr/local/src/openafs-1.5.19'
make: *** [all] Fehler 2

It works on i386, but not on ppc64.

A generic srpm for Redhat and SUSE form openafs.org would be cool :-)

=2D-=20
MfG,
Marcel Steinke

http://www.kubus-ng.net
Yes, we're open!