[OpenAFS-devel] OpenAFS on Yellow Dog 5.0.2

Atro Tossavainen Atro.Tossavainen@helsinki.fi
Thu, 11 Oct 2007 08:59:05 +0300 (EEST)


Hello all,

I'm unable to compile OpenAFS on YDL 5.  (It's based on kernel 2.6.22
and other fairly recent things.)

If I try to rpmbuild --rebuild the FC7 src.rpm, I get

error: parse error in expression
error: /usr/src/yellowdog/SPECS/openafs.spec:199: parseExpressionBoolean returns -1
error: Package has no %description: openafs

(It's got rpm 4.4.2 for whatever that might be worth.  I see the %description
in the .spec, but am unfamiliar enough with rpm spec syntax to figure out
why this is happening.)

Unpacking the sources and applying the patches in the src.rpm manually
to the 1.4.3-src.tar.bz2 in there, it goes fine up until the kernel
module is being built.  At that stage, I get

  CC [M]  /usr/src/openafs-1.4.3/src/libafs/MODLOAD-2.6.22-0.ydl.rc4-MP/osi_vnodeops.o
/usr/src/openafs-1.4.3/src/libafs/MODLOAD-2.6.22-0.ydl.rc4-MP/osi_vnodeops.c: In function 'afs_linux_lock':
/usr/src/openafs-1.4.3/src/libafs/MODLOAD-2.6.22-0.ydl.rc4-MP/osi_vnodeops.c:478: error: too few arguments to function 'posix_lock_file'
/usr/src/openafs-1.4.3/src/libafs/MODLOAD-2.6.22-0.ydl.rc4-MP/osi_vnodeops.c: At top level:
/usr/src/openafs-1.4.3/src/libafs/MODLOAD-2.6.22-0.ydl.rc4-MP/osi_vnodeops.c:638: warning: initialization from incompatible pointer type
make[6]: *** [/usr/src/openafs-1.4.3/src/libafs/MODLOAD-2.6.22-0.ydl.rc4-MP/osi_vnodeops.o] Error 1

I also tried applying the patches in the FC7 src.rpm one by one to
vanilla 1.4.4 sources, and as far I can see, I get the same error.

Is there a release of OpenAFS that is supposed to work out of the
box on kernels this recent?  I tried building 1.5.25 too, but it
bombs in a different way:

  CC [M]  /usr/src/openafs-1.5.25/src/libafs/MODLOAD-2.6.22-0.ydl.rc4-MP/osi_nfssrv.o
/usr/src/openafs-1.5.25/src/libafs/MODLOAD-2.6.22-0.ydl.rc4-MP/osi_nfssrv.c: In function 'svcauth_afs_accept':
/usr/src/openafs-1.5.25/src/libafs/MODLOAD-2.6.22-0.ydl.rc4-MP/osi_nfssrv.c:116: error: incompatible types in assignment
/usr/src/openafs-1.5.25/src/libafs/MODLOAD-2.6.22-0.ydl.rc4-MP/osi_nfssrv.c:130: error: 'struct __kernel_sockaddr_storage' has no member named 'sin_family'
/usr/src/openafs-1.5.25/src/libafs/MODLOAD-2.6.22-0.ydl.rc4-MP/osi_nfssrv.c:132: error: 'struct __kernel_sockaddr_storage' has no member named 'sin_family'
/usr/src/openafs-1.5.25/src/libafs/MODLOAD-2.6.22-0.ydl.rc4-MP/osi_nfssrv.c:146: error: 'struct __kernel_sockaddr_storage' has no member named 'sin_addr'
make[6]: *** [/usr/src/openafs-1.5.25/src/libafs/MODLOAD-2.6.22-0.ydl.rc4-MP/osi_nfssrv.o] Error 1

All help is welcome.  I'm not a member of this list, but will be scanning
the web archives for responses, so there should be no need to cc manually.

Regards,
-- 
Atro Tossavainen (Mr.)               / The Institute of Biotechnology at
Systems Analyst, Techno-Amish &     / the University of Helsinki, Finland,
+358-9-19158939  UNIX Dinosaur     / employs me, but my opinions are my own.
< URL : http : / / www . helsinki . fi / %7E atossava / > NO FILE ATTACHMENTS