[OpenAFS-devel] Re: More FreeBSD 5.0 (long)

Larry Lansing lansil@fuzzynerd.com
Sun, 20 Apr 2003 23:55:23 -0400


Jim Rees wrote:
> I just committed a bunch of FreeBSD 5.0 patches.  I was going to wait until
> it was working but it was getting out of hand.
> 
> Those of you who are running FreeBSD 4.x, please try building from the cvs
> head and let me know the results.

Thank you very much for the work you've been putting into this--I am one 
of the many people anxiously looking forward to using OpenAFS on FreeBSD 
5.0.  I'm no filesystem wizard, but if there is something fairly 
straight-forward I can do to help, please let me know.

Yesterday's HEAD branch compiles fine for me on both FreeBSD 4.7-p10 and 
FreeBSD 5.0-CURRENT (April 1st), assuming you use 
"--disable-kernel-module".  If I leave the kernel module in, 4.x dies 
with something like this (please excuse the poor line wrapping):


cc -I. -I.. -I../nfs -I/usr/home/lansil/openafs/openafs/src 
-I/usr/home/lansil/o
penafs/openafs/src/afs -I/usr/home/lansil/openafs/openafs/src/afs/FBSD 
-I/usr/ho
me/lansil/openafs/openafs/src/config 
-I/usr/home/lansil/openafs/openafs/src/rx/F
BSD -I/usr/home/lansil/openafs/openafs/src/rxkad 
-I/usr/home/lansil/openafs/open
afs/src/rxkad/domestic -I/usr/home/lansil/openafs/openafs/src/util 
-I/usr/home/l
ansil/openafs/openafs/src -I/usr/home/lansil/openafs/openafs/src/afs 
-I/usr/home
/lansil/openafs/openafs/src/afs/FBSD 
-I/usr/home/lansil/openafs/openafs/src/util
  -I/usr/home/lansil/openafs/openafs/src/rxkad 
-I/usr/home/lansil/openafs/openafs
/src/config -I/usr/home/lansil/openafs/openafs/src/fsint 
-I/usr/home/lansil/open
afs/openafs/src/vlserver -I/usr/home/lansil/openafs/openafs/include 
-I/usr/home/
lansil/openafs/openafs/include/afs   -I. -I.. 
-I/usr/home/lansil/openafs/openafs
/src/config  -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA 
-DGETMO
UNT -Wall -fformat-extensions -ansi -nostdinc -I/usr/include -D_KERNEL 
-DKLD_MOD
ULE -elf -mpreferred-stack-boundary=2 -I.. -I../afs  -O2 -c setdef1.c
gmake[5]: Leaving directory 
`/usr/home/lansil/openafs/openafs/src/libafs/STATIC'
ld -Bshareable -o libafs.nonfs.o setdef0.o libafs.nonfs.o.kld setdef1.o
cc   libafs.o libafs.nonfs.o   -o libafs
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x79): undefined reference to `main'
libafs.o: undefined reference to `copyinstr'
libafs.o: undefined reference to `vop_getattr_desc'
libafs.o: undefined reference to `ifnet'
libafs.o: undefined reference to `lockinit'

(lots more of these, 5+ screens worth....)

libafs.o: undefined reference to `splclock'
libafs.o: undefined reference to `vop_lock_desc'
libafs.o: undefined reference to `vop_getvobject_desc'
gmake[4]: *** [libafs] Error 1
gmake[4]: Leaving directory 
`/usr/home/lansil/openafs/openafs/src/libafs/STATIC'
gmake[3]: *** [single_compdir] Error 2
gmake[3]: Leaving directory `/usr/home/lansil/openafs/openafs/src/libafs'
gmake[2]: *** [libafs] Error 2
gmake[2]: Leaving directory `/usr/home/lansil/openafs/openafs'
gmake[1]: *** [build] Error 2
gmake[1]: Leaving directory `/usr/home/lansil/openafs/openafs'
gmake: *** [all] Error 2


5.0-CURRENT dies with something like this, instead (slightly edited):

cc -I. -I.. -I../nfs -I/home/lansil/openafs/exports/openafs/src 
-I/home/lansil/o
penafs/exports/openafs/src/afs 
-I/home/lansil/openafs/exports/openafs/src/afs/FB
SD -I/home/lansil/openafs/exports/openafs/src/config 
-I/home/lansil/openafs/expo
rts/openafs/src/rx/FBSD -I/home/lansil/openafs/exports/openafs/src/rxkad 
-I/home
/lansil/openafs/exports/openafs/src/rxkad/domestic 
-I/home/lansil/openafs/export
s/openafs/src/util -I/home/lansil/openafs/exports/openafs/src 
-I/home/lansil/ope
nafs/exports/openafs/src/afs 
-I/home/lansil/openafs/exports/openafs/src/afs/FBSD
  -I/home/lansil/openafs/exports/openafs/src/util 
-I/home/lansil/openafs/exports/
openafs/src/rxkad -I/home/lansil/openafs/exports/openafs/src/config 
-I/home/lans
il/openafs/exports/openafs/src/fsint 
-I/home/lansil/openafs/exports/openafs/src/
vlserver -I/home/lansil/openafs/exports/openafs/include 
-I/home/lansil/openafs/e
xports/openafs/include/afs   -I. -I.. 
-I/home/lansil/openafs/exports/openafs/src
/config  -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA 
-DGETMOUNT
-Wall -fformat-extensions -ansi -nostdinc -I/usr/include -D_KERNEL 
-DKLD_MODULE
-elf -mpreferred-stack-boundary=2 -I.. -I../afs  -O2 -c 
/home/lansil/openafs/exp
orts/openafs/src/afs/FBSD/osi_vnodeops.c
/home/lansil/openafs/exports/openafs/src/afs/FBSD/osi_vnodeops.c: In 
function `a
fs_vop_lookup':
/home/lansil/openafs/exports/openafs/src/afs/FBSD/osi_vnodeops.c:149: 
warning: p
assing arg 3 of `VOP_UNLOCK' from incompatible pointer type
/home/lansil/openafs/exports/openafs/src/afs/FBSD/osi_vnodeops.c:155: 
warning: p
assing arg 3 of `VOP_LOCK' from incompatible pointer type
/home/lansil/openafs/exports/openafs/src/afs/FBSD/osi_vnodeops.c:185: 
warning: p
assing arg 3 of `VOP_UNLOCK' from incompatible pointer type
/home/lansil/openafs/exports/openafs/src/afs/FBSD/osi_vnodeops.c: In 
function `a
fs_vop_create':
/home/lansil/openafs/exports/openafs/src/afs/FBSD/osi_vnodeops.c:213: 
structure
has no member named `cn_proc'

(lots more, 5+ screens worth)
/home/lansil/openafs/exports/openafs/src/afs/FBSD/osi_vnodeops.c: In 
function `a
fs_vop_islocked':
/home/lansil/openafs/exports/openafs/src/afs/FBSD/osi_vnodeops.c:1130: 
warning:
passing arg 2 of `lockstatus' from incompatible pointer type
/home/lansil/openafs/exports/openafs/src/afs/FBSD/osi_vnodeops.c: In 
function `a
fs_vop_advlock':
/home/lansil/openafs/exports/openafs/src/afs/FBSD/osi_vnodeops.c:1149: 
structure
  has no member named `p_cred'
/home/lansil/openafs/exports/openafs/src/afs/FBSD/osi_vnodeops.c:1151: 
warning:
implicit declaration of function `afs_lockctl'
gmake[4]: *** [osi_vnodeops.o] Error 1
gmake[4]: Leaving directory 
`/home/lansil/openafs/exports/openafs/src/libafs/STA
TIC'
gmake[3]: *** [single_compdir] Error 2
gmake[3]: Leaving directory 
`/home/lansil/openafs/exports/openafs/src/libafs'
gmake[2]: *** [libafs] Error 2
gmake[2]: Leaving directory `/home/lansil/openafs/exports/openafs'
gmake[1]: *** [build] Error 2
gmake[1]: Leaving directory `/home/lansil/openafs/exports/openafs'
gmake: *** [all] Error 2