[OpenAFS] OpenAFS on OpenBSD

mcmer mcmer@gmx.net
Thu, 03 Apr 2003 23:25:56 +0200


First of all - thanks for the rapid answers...

---------------------------------
Jim Rees <rees@umich.edu>:
You need a snapshot.  None of the releases contains OpenBSD support,
it's too new.

Derrick J Brashear <shadow@dementia.org>
OpenBSD support wasn't done in 1.2.8

mcmer:
What's this then?
[from last posting]
$ ls openafs-1.2.8/src/config/ | grep obsd
Makefile.i386_obsd29
Makefile.i386_obsd29.in
param.i386_obsd29.h
param.i386_obsd29_usr.h
$ ls openafs-1.3.2/src/config/ | grep obsd
param.i386_obsd29.h
param.i386_obsd29_usr.h
---------------------------------
Jim Rees <rees@umich.edu>:
If you follow the instructions in README you should be ok.  In
particular you need to specify the sysname:
./configure  --with-afs-sysname=i386_obsd32 --enable-transarc-paths

mcmer:
Well, I did... but only with the 'releases', not the snapshot, since I
thought the autodetection was going to work...

Apart from that:
is
--enable-transarc-paths
obligatory? I wouldn't want to use these paths when installing from
scratch on openbsd!
---------------------------------
Jim Rees <rees@umich.edu>:
As you discovered, the snapshots do not contain configure.  You should
use regen.sh to generate it.  Maybe this should be added to the README?

Derrick J Brashear <shadow@dementia.org>
try
./regen.sh
since you didn't bother to run any of the other auto* commands here

Should this comment be in something other than README.CVS? (I guess you
used a snapshot and not CVS)

mcmer:
I should have read README.CVS more thoroughly... apart from the fact
that I used the current snapshot. At least it's now stated in the
mailing list archive... but putting it into README might help people
out, who don't know much about auto* stuff - like me...
---------------------------------
Stated below are - once more - the results of my efforts... not too
successful, unfortunately.
I'm going to try tomorrow's snapshot and cvs, if you don't veto...
(Oops, gotta quit using that word for political reasons.)

This time I marked each new command with dashes.

Good fight, good night.
Thanks once more.

Max
---------------------------------

$ basename `pwd`
openafs-snap-2003-04-03
-------------
$ ./regen.sh
Updating configuration...
Running aclocal
Running autoconf
configure.in:6: warning: AC_TRY_RUN called without default to allow
cross compiling

Running autoconf for configure-libafs
configure-libafs.in:7: warning: AC_TRY_RUN called without default to
allow cross compiling

Running autoheader
-------------
$ configure --with-afs-sysname=i386_obsd32 --enable-transarc-paths >
configure_log
sed: ./src/libuafs/MakefileProto.OBSD.in: No such file or directory
-------------
$ tail -n 10 configure_log
creating src/venus/Makefile
creating src/vfsck/Makefile
creating src/viced/Makefile
creating src/vlserver/Makefile
creating src/vol/Makefile
creating src/vol/test/Makefile
creating src/volser/Makefile
creating src/wsadmin.src/Makefile
creating src/xstat/Makefile
creating src/config/afsconfig.h
-------------
$ make > make_log
[ the error output was more then my screen buffer... last lines: ]
client.c: In function `update_ReceiveFile':
client.c:468: warning: passing arg 2 of `rx_ReadProc' from incompatible
pointer type
xstat_fs.c: In function `xstat_fs_Init':
xstat_fs.c:695: warning: passing arg 1 of `LWP_CreateProcess' from
incompatible pointer type
xstat_fs_callback.c: In function `init_afs_cb':
xstat_fs_callback.c:55: warning: passing arg 1 of `rx_getAllAddr' from
incompatible pointer type
xstat_cm.c: In function `xstat_cm_Init':
xstat_cm.c:600: warning: passing arg 1 of `LWP_CreateProcess' from
incompatible pointer type
xstat_fs_test.c: In function `main':
xstat_fs_test.c:810: warning: passing arg 2 of `cmd_CreateSyntax' from
incompatible pointer type
cc: Internal compiler error: program cc1 got fatal signal 11
-------------
$ tail -n 15 make_log
echo 'char cml_version_number[]="@(#) OpenAFS devel built ' `date
+"%Y-%m-%d"` '";' >AFS_component_version_number.c
echo 'char* AFSVersion = "openafs devel"; ' >>AFS_component_version_number.c
cc  -O -I/home/asfer/usr/src/openafs/openafs-snap-2003-04-03/src/config
-I. -I. -I/home/asfer/usr/src/openafs/openafs-snap-2003-04-03/include
-I/home/asfer/usr/src/openafs/openafs-snap-2003-04-03/include/afs
-I/home/asfer/usr/src/openafs/openafs-snap-2003-04-03/include/rx
-I/home/asfer/usr/src/openafs/openafs-snap-2003-04-03
-I/home/asfer/usr/src/openafs/openafs-snap-2003-04-03/src
-I/home/asfer/usr/src/openafs/openafs-snap-2003-04-03/src -O2  -c
afsmonitor.c
*** Error code 1

Stop in /home/asfer/usr/src/openafs/openafs-snap-2003-04-03/src/afsmonitor.
*** Error code 1

Stop in /home/asfer/usr/src/openafs/openafs-snap-2003-04-03 (line 408 of
Makefile).
*** Error code 1

Stop in /home/asfer/usr/src/openafs/openafs-snap-2003-04-03 (line 498 of
Makefile).
*** Error code 1

Stop in /home/asfer/usr/src/openafs/openafs-snap-2003-04-03 (line 34 of
Makefile).
-------------
$ make clean
-------------
$ make distclean
-------------
$ configure --with-afs-sysname=i386_obsd32 --enable-transarc-paths >
configure_log
sed: ./src/libuafs/MakefileProto.OBSD.in: No such file or directory
-------------
$ gmake > gmake_log
[ the error output was more then my screen buffer... last lines: ]
../../rx/xdr_int32.c:77: warning: passing arg 2 of pointer to function
from incompatible pointer type
../../rx/rx.c: In function `rx_StartServer':
../../rx/rx.c:650: warning: statement with no effect
../../rx/rx.c:639: warning: unused variable `nProcs'
../../rx/rx.c: In function `rx_GetCall':
../../rx/rx.c:1401: warning: unused variable `splvar'
../../rx/rx.c: In function `rxi_ReceiveDataPacket':
../../rx/rx.c:3066: warning: passing arg 2 of pointer to function from
incompatible pointer type
../../rx/rx.c: In function `rxi_ResetCall':
../../rx/rx.c:4208: warning: passing arg 2 of pointer to function from
incompatible pointer type
cc: Internal compiler error: program cc1 got fatal signal 11
gmake[4]: *** [rx.o] Error 1
gmake[3]: *** [single_compdir] Error 2
gmake[2]: *** [libafs] Error 2
gmake[1]: *** [build] Error 2
gmake: *** [all] Error 2
-------------
$ tail -n 7 gmake_log
cc -I.. -I../nfs -I../.. -I../../afs -I../../afs/OBSD -I../../config
-I../../rx -I../../rx/OBSD -I../../rxkad -I../../domestic -I../../util
-I../../../include -I../../../include/afs   -DAFSDEBUG -DKERNEL -DAFS
-DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT -Wall -nostdinc
-I/usr/include -I/usr/src/sys/sys -DLKM -DDIAGNOSTIC -DFIFO -DNFSCLIENT
-DMFS -DFFS -D_KERNEL -DI586_CPU -DI686_CPU  -O2 -c
/home/asfer/usr/src/openafs/openafs-snap-2003-04-03/src/fsint/Kvice.cs.c
cc -I.. -I../nfs -I../.. -I../../afs -I../../afs/OBSD -I../../config
-I../../rx -I../../rx/OBSD -I../../rxkad -I../../domestic -I../../util
-I../../../include -I../../../include/afs   -DAFSDEBUG -DKERNEL -DAFS
-DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT -Wall -nostdinc
-I/usr/include -I/usr/src/sys/sys -DLKM -DDIAGNOSTIC -DFIFO -DNFSCLIENT
-DMFS -DFFS -D_KERNEL -DI586_CPU -DI686_CPU  -O2 -c
../../rxkad/domestic/fcrypt.c
cc -I.. -I../nfs -I../.. -I../../afs -I../../afs/OBSD -I../../config
-I../../rx -I../../rx/OBSD -I../../rxkad -I../../domestic -I../../util
-I../../../include -I../../../include/afs   -DAFSDEBUG -DKERNEL -DAFS
-DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT -Wall -nostdinc
-I/usr/include -I/usr/src/sys/sys -DLKM -DDIAGNOSTIC -DFIFO -DNFSCLIENT
-DMFS -DFFS -D_KERNEL -DI586_CPU -DI686_CPU  -O2 -c ../../rx/rx.c
gmake[4]: Leaving directory
`/home/asfer/usr/src/openafs/openafs-snap-2003-04-03/src/libafs/MODLOAD'
gmake[3]: Leaving directory
`/home/asfer/usr/src/openafs/openafs-snap-2003-04-03/src/libafs'
gmake[2]: Leaving directory
`/home/asfer/usr/src/openafs/openafs-snap-2003-04-03'
gmake[1]: Leaving directory
`/home/asfer/usr/src/openafs/openafs-snap-2003-04-03'