[OpenAFS-devel] Tiger/HEAD patches progress (problems...)

Sensei senseiwa@tin.it
Thu, 14 Jul 2005 14:59:45 -0500


Hi. I hopefully produced some patches to be applided to tiger branch,  
as suggested. It's a little difficult, since some auto* macros are  
deprecated. This is the sequence I followed, I just tell you because I

$ cvsafs co -r HEAD openafs
$ cd openafs
$ cvs diff -r openafs-1_3_82-macos-10_4 -u > ../patch-tiger.diff
$ cd .. ; mv openafs vanilla
$ cvs co -r openafs-1_3_82-macos-10_4 openafs
$ cd openafs  ====> that's tiger one)
$ patch -p0 < ../patch-tiger.diff

To make it work i had to:
- remove from configure.in reference to aklog/Makefile.in
- remove from aclocal.m4, acinclude.m4 reference to OPENAFS_KRB5CONF

Then generarte:

$ ./regen.sh:
autoheader: WARNING: Using auxiliary files such as `acconfig.h',  
`config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for  
`config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template  
without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader:             [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be  
produced, see the
autoheader: WARNING: documentation.

Ugly warnings. We shouldn't use acconfig. Maybe move the content of  
acconfig.h into configure.in with AH_BOTTOM(...)?

Anyway, now make complains:
make[3]: *** No rule to make target `rxkstats.c', needed by  
`rxkstats.o'.  Stop.

I copied it to src/util/ from the HEAD trunk. Then bad errors:

-c /Users/sensei/Documents/Projects/AFS/openafs/src/afs/afs_analyze.c
In file included from ../sys/kpi_socket.h:35,
                  from ../sys/socket.h:580,
                  from /System/Library/Frameworks/Kernel.Framework/ 
Headers/bsm/audit.h:30,
                  from ../sys/ucred.h:64,
                  from ../h/param.h:112,
                  from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/afs/sysincludes.h:113,
                  from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/afs/afs_analyze.c:20:
../sys/kernel_types.h:39: error: parse error before 'struct'
In file included from ../h/systm.h:102,
                  from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/afs/sysincludes.h:127,
                  from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/afs/afs_analyze.c:20:
/System/Library/Frameworks/Kernel.Framework/Headers/libkern/libkern.h: 
139: warning: conflicting types for built-in function 'printf'
In file included from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/afs/afs_analyze.c:20:
/Users/sensei/Documents/Projects/AFS/openafs/src/afs/sysincludes.h: 
221:20: error: h/user.h: No such file or directory
In file included from ../sys/vnode.h:453,
                  from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/afs/sysincludes.h:257,
                  from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/afs/afs_analyze.c:20:
../sys/vnode_if.h:134: error: field 'a_dvp' has incomplete type
../sys/vnode_if.h:151: error: field 'a_dvp' has incomplete type
../sys/vnode_if.h:168: error: field 'a_dvp' has incomplete type
../sys/vnode_if.h:183: error: field 'a_dvp' has incomplete type
../sys/vnode_if.h:198: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:211: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:224: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:238: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:251: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:264: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:280: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:296: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:311: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:326: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:342: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:359: error: field 'a_fvp' has incomplete type
../sys/vnode_if.h:360: error: field 'a_tvp' has incomplete type
../sys/vnode_if.h:374: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:388: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:401: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:414: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:429: error: field 'a_dvp' has incomplete type
../sys/vnode_if.h:430: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:446: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:447: error: field 'a_tdvp' has incomplete type
../sys/vnode_if.h:464: error: field 'a_fdvp' has incomplete type
../sys/vnode_if.h:465: error: field 'a_fvp' has incomplete type
../sys/vnode_if.h:467: error: field 'a_tdvp' has incomplete type
../sys/vnode_if.h:468: error: field 'a_tvp' has incomplete type
../sys/vnode_if.h:483: error: field 'a_dvp' has incomplete type
../sys/vnode_if.h:500: error: field 'a_dvp' has incomplete type
../sys/vnode_if.h:501: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:516: error: field 'a_dvp' has incomplete type
../sys/vnode_if.h:550: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:567: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:587: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:601: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:614: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:627: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:642: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:658: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:674: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:692: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:711: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:737: error: field 'a_fvp' has incomplete type
../sys/vnode_if.h:738: error: field 'a_tdvp' has incomplete type
../sys/vnode_if.h:739: error: field 'a_tvp' has incomplete type
../sys/vnode_if.h:750: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:762: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:773: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:783: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:800: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:814: error: field 'a_vp' has incomplete type
../sys/vnode_if.h:828: error: field 'a_vp' has incomplete type
In file included from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/afs/sysincludes.h:278,
                  from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/afs/afs_analyze.c:20:
/usr/include/ufs/ufs/inode.h:97: error: field 'i_knotes' has  
incomplete type
In file included from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/rx/rx.h:33,
                  from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/rx/xdr_prototypes.h:18,
                  from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/rx/xdr.h:331,
                  from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/afs/sysincludes.h:308,
                  from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/afs/afs_analyze.c:20:
/Users/sensei/Documents/Projects/AFS/openafs/src/rx/DARWIN/ 
rx_kmutex.h:86: error: field 'lock' has incomplete type
In file included from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/rx/rx.h:34,
                  from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/rx/xdr_prototypes.h:18,
                  from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/rx/xdr.h:331,
                  from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/afs/sysincludes.h:308,
                  from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/afs/afs_analyze.c:20:
/Users/sensei/Documents/Projects/AFS/openafs/src/rx/rx_kernel.h:33:1:  
warning: "osi_rxWakeup" redefined
In file included from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/rx/rx.h:33,
                  from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/rx/xdr_prototypes.h:18,
                  from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/rx/xdr.h:331,
                  from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/afs/sysincludes.h:308,
                  from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/afs/afs_analyze.c:20:
/Users/sensei/Documents/Projects/AFS/openafs/src/rx/DARWIN/ 
rx_kmutex.h:91:1: warning: this is the location of the previous  
definition
In file included from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/afs/afsincludes.h:44,
                  from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/afs/afs_analyze.c:36:
/Users/sensei/Documents/Projects/AFS/openafs/src/afs/afs.h:645:  
error: field 'rwlock' has incomplete type
In file included from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/afs/afsincludes.h:53,
                  from /Users/sensei/Documents/Projects/AFS/openafs/ 
src/afs/afs_analyze.c:36:
/Users/sensei/Documents/Projects/AFS/openafs/src/afs/afs_prototypes.h: 
891: warning: 'struct vattr' declared inside parameter list
/Users/sensei/Documents/Projects/AFS/openafs/src/afs/afs_prototypes.h: 
891: warning: its scope is only this definition or declaration, which  
is probably not what you want
/Users/sensei/Documents/Projects/AFS/openafs/src/afs/afs_prototypes.h: 
897: warning: 'struct vattr' declared inside parameter list
/Users/sensei/Documents/Projects/AFS/openafs/src/afs/afs_prototypes.h: 
901: warning: 'struct vattr' declared inside parameter list
/Users/sensei/Documents/Projects/AFS/openafs/src/afs/afs_prototypes.h: 
907: warning: 'struct vattr' declared inside parameter list
/Users/sensei/Documents/Projects/AFS/openafs/src/afs/afs_prototypes.h: 
921: warning: 'struct vattr' declared inside parameter list
/Users/sensei/Documents/Projects/AFS/openafs/src/afs/afs_analyze.c:  
In function 'VLDB_Same':
/Users/sensei/Documents/Projects/AFS/openafs/src/afs/afs_analyze.c: 
339: error: 'LK_RELEASE' undeclared (first use in this function)
/Users/sensei/Documents/Projects/AFS/openafs/src/afs/afs_analyze.c: 
339: error: (Each undeclared identifier is reported only once
/Users/sensei/Documents/Projects/AFS/openafs/src/afs/afs_analyze.c: 
339: error: for each function it appears in.)
/Users/sensei/Documents/Projects/AFS/openafs/src/afs/afs_analyze.c: 
341: error: 'LK_EXCLUSIVE' undeclared (first use in this function)
/Users/sensei/Documents/Projects/AFS/openafs/src/afs/afs_analyze.c: 
388: error: dereferencing pointer to incomplete type
make[4]: *** [afs_analyze.o] Error 1
make[3]: *** [single_compdir] Error 2
make[2]: *** [libafs] Error 2
make[1]: *** [build] Error 2
make: *** [all] Error 2
sensei:openafs$



-- 
Sensei <senseiwa@tin.it>

cd /pub
more beer