On Oct 5, 2005, at 09:53:21, Jeffrey Altman wrote:
If you have been waiting to work on Tiger support, now is your
chance. The merge of the Tiger work with the mainline code more
than likely broke things both in the Tiger support as well as on
other platforms.
Ok, here's my first problem report: Compiling the "openafs-
stable-1_4_x" branch as of now under Tiger (using GCC version 4.0,
the default), dies with the following errors:
cc -I. -I.. -I../nfs -I/Users/kyle/cvs/openafs/src -I/Users/kyle/cvs/
openafs/src/afs -I/Users/kyle/cvs/openafs/src/afs/DARWIN -I/Users/
kyle/cvs/openafs/src/config -I/Users/kyle/cvs/openafs/src/rx/DARWIN -
I/Users/kyle/cvs/openafs/src/rxkad -I/Users/kyle/cvs/openafs/src/
rxkad/domestic -I/Users/kyle/cvs/openafs/src/util -I/Users/kyle/cvs/
openafs/src -I/Users/kyle/cvs/openafs/src/afs -I/Users/kyle/cvs/
openafs/src/afs/DARWIN -I/Users/kyle/cvs/openafs/src/util -I/Users/
kyle/cvs/openafs/src/rxkad -I/Users/kyle/cvs/openafs/src/config -I/
Users/kyle/cvs/openafs/src/fsint -I/Users/kyle/cvs/openafs/src/
vlserver -I/Users/kyle/cvs/openafs/include -I/Users/kyle/cvs/openafs/
include/afs -O -I/System/Library/Frameworks/Kernel.Framework/
Headers -I. -I.. -I/Users/kyle/cvs/openafs/src/config -D_KERNEL -
DKERNEL -DKERNEL_PRIVATE -DDIAGNOSTIC -DUSE_SELECT -DMACH_USER_API -
DMACH_KERNEL -static -g -nostdinc -nostdlib -no-cpp-precomp -fno-
builtin -finline -fno-keep-inline-functions -msoft-float -mlong-
branch -fsigned-bitfields -arch ppc -Dppc -DPPC -D__PPC__ -
DPAGE_SIZE_FIXED -O2 -mcpu=750 -mmultiple -fschedule-insns -O -c /
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/
afs_sysnames.h:25,
from /Users/kyle/cvs/openafs/include/afs/param.h:14,
from /Users/kyle/cvs/openafs/src/util/
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/
afs_sysnames.h:25,
from /Users/kyle/cvs/openafs/include/afs/param.h:14,
from /Users/kyle/cvs/openafs/src/util/
afs_atomlist.c:11:
../machine/_types.h:26:24: error: ppc/_types.h: No such file or
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/
afs_sysnames.h:25,
from /Users/kyle/cvs/openafs/include/afs/param.h:14,
from /Users/kyle/cvs/openafs/src/util/
afs_atomlist.c:11:
../sys/_types.h:96: error: parse error before ‘__darwin_blkcnt_t’
../sys/_types.h:96: warning: data definition has no type or storage
class
../sys/_types.h:97: error: parse error before ‘__darwin_blksize_t’
../sys/_types.h:97: warning: data definition has no type or storage
class
../sys/_types.h:98: error: parse error before ‘__darwin_dev_t’
../sys/_types.h:98: warning: data definition has no type or storage
class
../sys/_types.h:101: error: parse error before ‘__darwin_gid_t’
../sys/_types.h:101: warning: data definition has no type or storage
class
../sys/_types.h:102: error: parse error before ‘__darwin_id_t’
../sys/_types.h:102: warning: data definition has no type or storage
class
../sys/_types.h:103: error: parse error before ‘__darwin_ino_t’
../sys/_types.h:103: warning: data definition has no type or storage
class
../sys/_types.h:104: error: parse error before
‘__darwin_mach_port_name_t’
../sys/_types.h:104: warning: data definition has no type or storage
class
../sys/_types.h:105: error: parse error before ‘__darwin_mach_port_t’
../sys/_types.h:105: warning: data definition has no type or storage
class
../sys/_types.h:112: error: parse error before ‘__darwin_mode_t’
../sys/_types.h:112: warning: data definition has no type or storage
class
../sys/_types.h:113: error: parse error before ‘__darwin_off_t’
../sys/_types.h:113: warning: data definition has no type or storage
class
../sys/_types.h:114: error: parse error before ‘__darwin_pid_t’
../sys/_types.h:114: warning: data definition has no type or storage
class
../sys/_types.h:134: error: parse error before ‘__darwin_sigset_t’
../sys/_types.h:134: warning: data definition has no type or storage
class
../sys/_types.h:135: error: parse error before ‘__darwin_suseconds_t’
../sys/_types.h:135: warning: data definition has no type or storage
class
../sys/_types.h:136: error: parse error before ‘__darwin_uid_t’
../sys/_types.h:136: warning: data definition has no type or storage
class
../sys/_types.h:137: error: parse error before ‘__darwin_useconds_t’
../sys/_types.h:137: warning: data definition has no type or storage
class
../sys/_types.h:148: error: parse error before ‘__darwin_size_t’
../sys/_types.h:148: warning: no semicolon at end of struct or union
../sys/_types.h:150: error: parse error before ‘}’ token
../sys/_types.h:165: error: parse error before ‘__darwin_sigset_t’
../sys/_types.h:165: warning: no semicolon at end of struct or union
../sys/_types.h:172: error: parse error before ‘uc_mcsize’
../sys/_types.h:172: warning: data definition has no type or storage
class
../sys/_types.h:174: error: parse error before ‘}’ token
../sys/_types.h:184: error: parse error before ‘__darwin_sigset_t’
../sys/_types.h:184: warning: no semicolon at end of struct or union
../sys/_types.h:186: error: conflicting types for ‘uc_link’
../sys/_types.h:168: error: previous declaration of ‘uc_link’ was here
../sys/_types.h:187: error: parse error before ‘uc_mcsize’
../sys/_types.h:187: warning: data definition has no type or storage
class
../sys/_types.h:189: error: parse error before ‘}’ 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/
afs_sysnames.h:25,
from /Users/kyle/cvs/openafs/include/afs/param.h:14,
from /Users/kyle/cvs/openafs/src/util/
afs_atomlist.c:11:
../machine/endian.h:30:24: error: ppc/endian.h: No such file or
directory
In file included from /Users/kyle/cvs/openafs/include/afs/stds.h:14,
from /Users/kyle/cvs/openafs/include/afs/
afs_sysnames.h:25,
from /Users/kyle/cvs/openafs/include/afs/param.h:14,
from /Users/kyle/cvs/openafs/src/util/
afs_atomlist.c:11:
../sys/types.h:89: error: parse error before ‘u_quad_t’
../sys/types.h:89: warning: data definition has no type or storage class
../sys/types.h:90: error: parse error before ‘quad_t’
../sys/types.h:90: warning: data definition has no type or storage class
../sys/types.h:91: error: parse error before ‘*’ token
../sys/types.h:91: warning: data definition has no type or storage class
../sys/types.h:94: error: parse error before ‘daddr_t’
../sys/types.h:94: warning: data definition has no type or storage class
../sys/types.h:97: error: parse error before ‘dev_t’
../sys/types.h:97: warning: data definition has no type or storage class
../sys/types.h:101: error: parse error before ‘fixpt_t’
../sys/types.h:101: warning: data definition has no type or storage
class
../sys/types.h:104: error: parse error before ‘blkcnt_t’
../sys/types.h:104: warning: data definition has no type or storage
class
../sys/types.h:109: error: parse error before ‘blksize_t’
../sys/types.h:109: warning: data definition has no type or storage
class
../sys/types.h:114: error: parse error before ‘gid_t’
../sys/types.h:114: warning: data definition has no type or storage
class
../sys/types.h:120: error: parse error before ‘in_addr_t’
../sys/types.h:120: warning: data definition has no type or storage
class
../sys/types.h:125: error: parse error before ‘in_port_t’
../sys/types.h:125: warning: data definition has no type or storage
class
../sys/types.h:129: error: parse error before ‘ino_t’
../sys/types.h:129: warning: data definition has no type or storage
class
../sys/types.h:135: error: parse error before ‘key_t’
../sys/types.h:135: warning: data definition has no type or storage
class
../sys/types.h:139: error: parse error before ‘mode_t’
../sys/types.h:139: warning: data definition has no type or storage
class
../sys/types.h:144: error: parse error before ‘nlink_t’
../sys/types.h:144: warning: data definition has no type or storage
class
../sys/types.h:150: error: parse error before ‘id_t’
../sys/types.h:150: warning: data definition has no type or storage
class
../sys/types.h:154: error: parse error before ‘pid_t’
../sys/types.h:154: warning: data definition has no type or storage
class
../sys/types.h:159: error: parse error before ‘off_t’
../sys/types.h:159: warning: data definition has no type or storage
class
../sys/types.h:163: error: parse error before ‘segsz_t’
../sys/types.h:163: warning: data definition has no type or storage
class
../sys/types.h:164: error: parse error before ‘swblk_t’
../sys/types.h:164: warning: data definition has no type or storage
class
../sys/types.h:167: error: parse error before ‘uid_t’
../sys/types.h:167: warning: data definition has no type or storage
class
../sys/types.h:185: error: parse error before ‘clock_t’
../sys/types.h:185: warning: data definition has no type or storage
class
../sys/types.h:192: error: parse error before ‘size_t’
../sys/types.h:192: warning: data definition has no type or storage
class
../sys/types.h:197: error: parse error before ‘ssize_t’
../sys/types.h:197: warning: data definition has no type or storage
class
../sys/types.h:202: error: parse error before ‘time_t’
../sys/types.h:202: warning: data definition has no type or storage
class
../sys/types.h:207: error: parse error before ‘useconds_t’
../sys/types.h:207: warning: data definition has no type or storage
class
../sys/types.h:212: error: parse error before ‘suseconds_t’
../sys/types.h:212: warning: data definition has no type or storage
class
../sys/types.h:224: error: parse error before ‘fd_mask’
../sys/types.h:224: warning: data definition has no type or storage
class
../sys/types.h:250: error: parse error before ‘__int32_t’
../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
class
In file included from /Users/kyle/cvs/openafs/src/util/afs_atomlist.c:
11:
/Users/kyle/cvs/openafs/include/afs/param.h:48:29: error: kern/
macro_help.h: No such file or directory
In file included from /Users/kyle/cvs/openafs/src/util/afs_atomlist.c:
17:
/Users/kyle/cvs/openafs/src/util/afs_atomlist.h:54: error: parse
error before ‘atom_size’
/Users/kyle/cvs/openafs/src/util/afs_atomlist.h:55: error: parse
error before ‘n’
/Users/kyle/cvs/openafs/src/util/afs_atomlist.h:56: error:
‘afs_atomlist_create’ declared as function returning a function
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:80: error: parse
error before ‘size_t’
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:80: warning: no
semicolon at end of struct or union
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:81: warning: data
definition has no type or storage class
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:82: error: parse
error before ‘atoms_per_block’
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:82: warning: data
definition has no type or storage class
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:83: error: parse
error before ‘n’
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:84: error: parse
error before ‘size_t’
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:87: error: parse
error before ‘}’ token
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:90: error: parse
error before ‘atom_size’
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:91: error: parse
error before ‘n’
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:92: error:
‘afs_atomlist_create’ declared as function returning a function
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:96: warning: data
definition has no type or storage class
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:97: error: parse
error before ‘extra_space’
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:97: warning: data
definition has no type or storage class
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:134: error:
‘atom_size’ undeclared here (not in a function)
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:134: warning: data
definition has no type or storage class
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:135: warning: data
definition has no type or storage class
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:136: error: parse
error before ‘if’
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:143: error: invalid
type argument of ‘unary *’
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:143: warning:
initialization makes integer from pointer without a cast
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:143: error:
initializer element is not constant
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:143: warning: data
definition has no type or storage class
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:144: error: parse
error before ‘if’
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c: In function
‘afs_atomlist_destroy’:
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:164: error:
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:165: error:
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:165: error:
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:166: error:
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:166: error:
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:168: error:
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:168: error:
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c: In function
‘afs_atomlist_get’:
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:177: error:
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:180: error: parse
error before ‘i’
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:182: error:
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:182: error:
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:188: error:
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:188: error:
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:189: error:
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:190: error:
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:194: error: ‘i’
undeclared (first use in this function)
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:194: error: (Each
undeclared identifier is reported only once
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:194: error: for each
function it appears in.)
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:194: error:
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:195: error:
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:196: error:
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:199: error:
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:202: error:
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:206: error:
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:207: error:
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c: In function
‘afs_atomlist_put’:
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:215: error:
dereferencing pointer to incomplete type
/Users/kyle/cvs/openafs/src/util/afs_atomlist.c:216: error:
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=/opt/openafs' '--enable-dependency-tracking' '--enable-
largefile-fileserver' '--enable-namei-fileserver' '--enable-
supergroups' '--enable-bigendian' '--with-afs-sysname=ppc_darwin_80'
It looks like the -nostdinc is preventing it from locating ppc/
types.h which is included by sys/types.h, but I'm not sure how it
gets ahold of a sys/types.h to know where to go looking. I have a
complete full-install of Xcode Tools 2.1.
Cheers,
Kyle Moffett
--
Somone asked me why I work on this free (http://www.fsf.org/
philosophy/) software stuff and not get a real job. Charles Shultz
had the best answer:
"Why do musicians compose symphonies and poets write poems? They do
it because life wouldn't have any meaning for them if they didn't.
That's why I draw cartoons. It's my life."
-- Charles Shultz
_______________________________________________
OpenAFS-devel mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-devel