[OpenAFS-devel] New branch in CVS: openafs-stable-1_4_0-branch (tiger and byte range locks)

Kyle Moffett mrmacman_g4@mac.com
Thu, 6 Oct 2005 12:52:29 -0400


On Oct 5, 2005, at 09:53:21, Jeffrey Altman wrote:
> If you have been waiting to work on Tiger support, now is your =20
> chance. The merge of the Tiger work with the mainline code more =20
> than likely broke things both in the Tiger support as well as on =20
> other platforms.

Ok, here's my first problem report:  Compiling the "openafs-=20
stable-1_4_x" branch as of now under Tiger (using GCC version 4.0, =20
the default), dies with the following errors:

cc -I. -I.. -I../nfs -I/Users/kyle/cvs/openafs/src -I/Users/kyle/cvs/=20
openafs/src/afs -I/Users/kyle/cvs/openafs/src/afs/DARWIN -I/Users/=20
kyle/cvs/openafs/src/config -I/Users/kyle/cvs/openafs/src/rx/DARWIN -=20
I/Users/kyle/cvs/openafs/src/rxkad -I/Users/kyle/cvs/openafs/src/=20
rxkad/domestic -I/Users/kyle/cvs/openafs/src/util -I/Users/kyle/cvs/=20
openafs/src -I/Users/kyle/cvs/openafs/src/afs -I/Users/kyle/cvs/=20
openafs/src/afs/DARWIN -I/Users/kyle/cvs/openafs/src/util -I/Users/=20
kyle/cvs/openafs/src/rxkad -I/Users/kyle/cvs/openafs/src/config -I/=20
Users/kyle/cvs/openafs/src/fsint -I/Users/kyle/cvs/openafs/src/=20
vlserver -I/Users/kyle/cvs/openafs/include -I/Users/kyle/cvs/openafs/=20
include/afs   -O -I/System/Library/Frameworks/Kernel.Framework/=20
Headers -I. -I.. -I/Users/kyle/cvs/openafs/src/config -D_KERNEL -=20
DKERNEL -DKERNEL_PRIVATE -DDIAGNOSTIC -DUSE_SELECT -DMACH_USER_API -=20
DMACH_KERNEL  -static -g -nostdinc -nostdlib -no-cpp-precomp -fno-=20
builtin -finline -fno-keep-inline-functions -msoft-float -mlong-=20
branch -fsigned-bitfields -arch ppc -Dppc -DPPC -D__PPC__ -=20
DPAGE_SIZE_FIXED -O2 -mcpu=3D750 -mmultiple -fschedule-insns  -O -c /=20
Users/kyle/cvs/openafs/src/util/afs_atomlist.c
In file included from ../sys/types.h:72,
                  from /Users/kyle/cvs/openafs/include/afs/stds.h:14,
                  from /Users/kyle/cvs/openafs/include/afs/=20
afs_sysnames.h:25,
                  from /Users/kyle/cvs/openafs/include/afs/param.h:14,
                  from /Users/kyle/cvs/openafs/src/util/=20
afs_atomlist.c:11:
../machine/types.h:30:23: error: ppc/types.h: No such file or directory
In file included from ../sys/_types.h:27,
                  from ../sys/types.h:73,
                  from /Users/kyle/cvs/openafs/include/afs/stds.h:14,
                  from /Users/kyle/cvs/openafs/include/afs/=20
afs_sysnames.h:25,
                  from /Users/kyle/cvs/openafs/include/afs/param.h:14,
                  from /Users/kyle/cvs/openafs/src/util/=20
afs_atomlist.c:11:
../machine/_types.h:26:24: error: ppc/_types.h: No such file or =20
directory
In file included from ../sys/types.h:73,
                  from /Users/kyle/cvs/openafs/include/afs/stds.h:14,
                  from /Users/kyle/cvs/openafs/include/afs/=20
afs_sysnames.h:25,
                  from /Users/kyle/cvs/openafs/include/afs/param.h:14,
                  from /Users/kyle/cvs/openafs/src/util/=20
afs_atomlist.c:11:
../sys/_types.h:96: error: parse error before =91__darwin_blkcnt_t=92
../sys/_types.h:96: warning: data definition has no type or storage =20
class
../sys/_types.h:97: error: parse error before =91__darwin_blksize_t=92
../sys/_types.h:97: warning: data definition has no type or storage =20
class
../sys/_types.h:98: error: parse error before =91__darwin_dev_t=92
../sys/_types.h:98: warning: data definition has no type or storage =20
class
../sys/_types.h:101: error: parse error before =91__darwin_gid_t=92
../sys/_types.h:101: warning: data definition has no type or storage =20
class
../sys/_types.h:102: error: parse error before =91__darwin_id_t=92
../sys/_types.h:102: warning: data definition has no type or storage =20
class
../sys/_types.h:103: error: parse error before =91__darwin_ino_t=92
../sys/_types.h:103: warning: data definition has no type or storage =20
class
../sys/_types.h:104: error: parse error before =20
=91__darwin_mach_port_name_t=92
../sys/_types.h:104: warning: data definition has no type or storage =20
class
../sys/_types.h:105: error: parse error before =91__darwin_mach_port_t=92
../sys/_types.h:105: warning: data definition has no type or storage =20
class
../sys/_types.h:112: error: parse error before =91__darwin_mode_t=92
../sys/_types.h:112: warning: data definition has no type or storage =20
class
../sys/_types.h:113: error: parse error before =91__darwin_off_t=92
../sys/_types.h:113: warning: data definition has no type or storage =20
class
../sys/_types.h:114: error: parse error before =91__darwin_pid_t=92
../sys/_types.h:114: warning: data definition has no type or storage =20
class
../sys/_types.h:134: error: parse error before =91__darwin_sigset_t=92
../sys/_types.h:134: warning: data definition has no type or storage =20
class
../sys/_types.h:135: error: parse error before =91__darwin_suseconds_t=92
../sys/_types.h:135: warning: data definition has no type or storage =20
class
../sys/_types.h:136: error: parse error before =91__darwin_uid_t=92
../sys/_types.h:136: warning: data definition has no type or storage =20
class
../sys/_types.h:137: error: parse error before =91__darwin_useconds_t=92
../sys/_types.h:137: warning: data definition has no type or storage =20
class
../sys/_types.h:148: error: parse error before =91__darwin_size_t=92
../sys/_types.h:148: warning: no semicolon at end of struct or union
../sys/_types.h:150: error: parse error before =91}=92 token
../sys/_types.h:165: error: parse error before =91__darwin_sigset_t=92
../sys/_types.h:165: warning: no semicolon at end of struct or union
../sys/_types.h:172: error: parse error before =91uc_mcsize=92
../sys/_types.h:172: warning: data definition has no type or storage =20
class
../sys/_types.h:174: error: parse error before =91}=92 token
../sys/_types.h:184: error: parse error before =91__darwin_sigset_t=92
../sys/_types.h:184: warning: no semicolon at end of struct or union
../sys/_types.h:186: error: conflicting types for =91uc_link=92
../sys/_types.h:168: error: previous declaration of =91uc_link=92 was =
here
../sys/_types.h:187: error: parse error before =91uc_mcsize=92
../sys/_types.h:187: warning: data definition has no type or storage =20
class
../sys/_types.h:189: error: parse error before =91}=92 token
In file included from ../sys/types.h:75,
                  from /Users/kyle/cvs/openafs/include/afs/stds.h:14,
                  from /Users/kyle/cvs/openafs/include/afs/=20
afs_sysnames.h:25,
                  from /Users/kyle/cvs/openafs/include/afs/param.h:14,
                  from /Users/kyle/cvs/openafs/src/util/=20
afs_atomlist.c:11:
../machine/endian.h:30:24: error: ppc/endian.h: No such file or =20
directory
In file included from /Users/kyle/cvs/openafs/include/afs/stds.h:14,
                  from /Users/kyle/cvs/openafs/include/afs/=20
afs_sysnames.h:25,
                  from /Users/kyle/cvs/openafs/include/afs/param.h:14,
                  from /Users/kyle/cvs/openafs/src/util/=20
afs_atomlist.c:11:
../sys/types.h:89: error: parse error before =91u_quad_t=92
../sys/types.h:89: warning: data definition has no type or storage class
../sys/types.h:90: error: parse error before =91quad_t=92
../sys/types.h:90: warning: data definition has no type or storage class
../sys/types.h:91: error: parse error before =91*=92 token
../sys/types.h:91: warning: data definition has no type or storage class
../sys/types.h:94: error: parse error before =91daddr_t=92
../sys/types.h:94: warning: data definition has no type or storage class
../sys/types.h:97: error: parse error before =91dev_t=92
../sys/types.h:97: warning: data definition has no type or storage class
../sys/types.h:101: error: parse error before =91fixpt_t=92
../sys/types.h:101: warning: data definition has no type or storage =20
class
../sys/types.h:104: error: parse error before =91blkcnt_t=92
../sys/types.h:104: warning: data definition has no type or storage =20
class
../sys/types.h:109: error: parse error before =91blksize_t=92
../sys/types.h:109: warning: data definition has no type or storage =20
class
../sys/types.h:114: error: parse error before =91gid_t=92
../sys/types.h:114: warning: data definition has no type or storage =20
class
../sys/types.h:120: error: parse error before =91in_addr_t=92
../sys/types.h:120: warning: data definition has no type or storage =20
class
../sys/types.h:125: error: parse error before =91in_port_t=92
../sys/types.h:125: warning: data definition has no type or storage =20
class
../sys/types.h:129: error: parse error before =91ino_t=92
../sys/types.h:129: warning: data definition has no type or storage =20
class
../sys/types.h:135: error: parse error before =91key_t=92
../sys/types.h:135: warning: data definition has no type or storage =20
class
../sys/types.h:139: error: parse error before =91mode_t=92
../sys/types.h:139: warning: data definition has no type or storage =20
class
../sys/types.h:144: error: parse error before =91nlink_t=92
../sys/types.h:144: warning: data definition has no type or storage =20
class
../sys/types.h:150: error: parse error before =91id_t=92
../sys/types.h:150: warning: data definition has no type or storage =20
class
../sys/types.h:154: error: parse error before =91pid_t=92
../sys/types.h:154: warning: data definition has no type or storage =20
class
../sys/types.h:159: error: parse error before =91off_t=92
../sys/types.h:159: warning: data definition has no type or storage =20
class
../sys/types.h:163: error: parse error before =91segsz_t=92
../sys/types.h:163: warning: data definition has no type or storage =20
class
../sys/types.h:164: error: parse error before =91swblk_t=92
../sys/types.h:164: warning: data definition has no type or storage =20
class
../sys/types.h:167: error: parse error before =91uid_t=92
../sys/types.h:167: warning: data definition has no type or storage =20
class
../sys/types.h:185: error: parse error before =91clock_t=92
../sys/types.h:185: warning: data definition has no type or storage =20
class
../sys/types.h:192: error: parse error before =91size_t=92
../sys/types.h:192: warning: data definition has no type or storage =20
class
../sys/types.h:197: error: parse error before =91ssize_t=92
../sys/types.h:197: warning: data definition has no type or storage =20
class
../sys/types.h:202: error: parse error before =91time_t=92
../sys/types.h:202: warning: data definition has no type or storage =20
class
../sys/types.h:207: error: parse error before =91useconds_t=92
../sys/types.h:207: warning: data definition has no type or storage =20
class
../sys/types.h:212: error: parse error before =91suseconds_t=92
../sys/types.h:212: warning: data definition has no type or storage =20
class
../sys/types.h:224: error: parse error before =91fd_mask=92
../sys/types.h:224: warning: data definition has no type or storage =20
class
../sys/types.h:250: error: parse error before =91__int32_t=92
../sys/types.h:250: warning: no semicolon at end of struct or union
../sys/types.h:251: warning: data definition has no type or storage =20
class
In file included from /Users/kyle/cvs/openafs/src/util/afs_atomlist.c:=20=

11:
/Users/kyle/cvs/openafs/include/afs/param.h:48:29: error: kern/=20
macro_help.h: No such file or directory
In file included from /Users/kyle/cvs/openafs/src/util/afs_atomlist.c:=20=

17:
/Users/kyle/cvs/openafs/src/util/afs_atomlist.h:54: error: parse =20
error before =91atom_size=92
/Users/kyle/cvs/openafs/src/util/afs_atomlist.h:55: error: parse =20
error before =91n=92
/Users/kyle/cvs/openafs/src/util/afs_atomlist.h:56: error: =20
=91afs_atomlist_create=92 declared as function returning a function
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:80: error: parse =20
error before =91size_t=92
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:80: warning: no =20
semicolon at end of struct or union
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:81: warning: data =20
definition has no type or storage class
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:82: error: parse =20
error before =91atoms_per_block=92
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:82: warning: data =20
definition has no type or storage class
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:83: error: parse =20
error before =91n=92
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:84: error: parse =20
error before =91size_t=92
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:87: error: parse =20
error before =91}=92 token
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:90: error: parse =20
error before =91atom_size=92
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:91: error: parse =20
error before =91n=92
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:92: error: =20
=91afs_atomlist_create=92 declared as function returning a function
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:96: warning: data =20
definition has no type or storage class
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:97: error: parse =20
error before =91extra_space=92
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:97: warning: data =20
definition has no type or storage class
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:134: error: =20
=91atom_size=92 undeclared here (not in a function)
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:134: warning: data =20
definition has no type or storage class
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:135: warning: data =20
definition has no type or storage class
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:136: error: parse =20
error before =91if=92
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:143: error: invalid =20
type argument of =91unary *=92
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:143: warning: =20
initialization makes integer from pointer without a cast
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:143: error: =20
initializer element is not constant
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:143: warning: data =20
definition has no type or storage class
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:144: error: parse =20
error before =91if=92
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c: In function =20
=91afs_atomlist_destroy=92:
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:164: error: =20
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:165: error: =20
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:165: error: =20
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:166: error: =20
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:166: error: =20
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:168: error: =20
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:168: error: =20
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c: In function =20
=91afs_atomlist_get=92:
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:177: error: =20
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:180: error: parse =20
error before =91i=92
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:182: error: =20
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:182: error: =20
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:188: error: =20
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:188: error: =20
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:189: error: =20
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:190: error: =20
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:194: error: =91i=92 =20
undeclared (first use in this function)
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:194: error: (Each =20
undeclared identifier is reported only once
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:194: error: for each =20
function it appears in.)
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:194: error: =20
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:195: error: =20
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:196: error: =20
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:199: error: =20
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:202: error: =20
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:206: error: =20
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:207: error: =20
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c: In function =20
=91afs_atomlist_put=92:
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:215: error: =20
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:216: error: =20
dereferencing pointer to incomplete type
make[4]: *** [afs_atomlist.o] Error 1
make[3]: *** [single_compdir] Error 2
make[2]: *** [libafs] Error 2
make[1]: *** [build] Error 2
make: *** [all] Error 2

I configured with the following options (after running regen.sh):
'--prefix=3D/opt/openafs' '--enable-dependency-tracking' '--enable-=20
largefile-fileserver' '--enable-namei-fileserver' '--enable-=20
supergroups' '--enable-bigendian' '--with-afs-sysname=3Dppc_darwin_80'

It looks like the -nostdinc is preventing it from locating ppc/=20
types.h which is included by sys/types.h, but I'm not sure how it =20
gets ahold of a sys/types.h to know where to go looking.  I have a =20
complete full-install of Xcode Tools 2.1.

Cheers,
Kyle Moffett

--
Somone asked me why I work on this free (http://www.fsf.org/=20
philosophy/) software stuff and not get a real job. Charles Shultz =20
had the best answer:

"Why do musicians compose symphonies and poets write poems? They do =20
it because life wouldn't have any meaning for them if they didn't. =20
That's why I draw cartoons. It's my life."
   -- Charles Shultz