[OpenAFS-port-darwin] Compiling 1.6.5.1 on 10.9?

Matt Haught matt_haught@ncsu.edu
Thu, 24 Oct 2013 21:12:24 -0400


Has anyone had any luck getting openafs to compile on mavericks using
xcode 5.1?  I am getting kernel panics with the mountain lion kext
when accessing files usually when writing. Both via upgrade and a
fresh install using modified pkg. I am needing to do some testing, so
I wanted to at least get it compiled.

There was not a sysname for mavericks so I used
--with-afs-sysname=x86_darwin_120 (x86_darwin_130 would be mavericks),
I don't believe that would cause the problems.

With the additional configure options --enable-warnings and
--enable-checking I get stopped at:

gcc  -Os -I/Users/matt/Downloads/openafs-1.6.5.1/src/config
-I/Users/matt/Downloads/openafs-1.6.5.1/include -I. -I.   -Os -Wall
-Wstrict-prototypes -Wold-style-definition -Wpointer-arith -Wall
-Wstrict-prototypes -Wold-style-definition -Werror
-fdiagnostics-show-option -Wpointer-arith   -c cmd.c
cmd.c:46:30: error: the value of the size argument in 'strncat' is too
large, might lead to a buffer overflow [-Werror,-Wstrncat-size]
        strncat(tbuffer, a2, sizeof(tbuffer));
                             ^~~~~~~~~~~~~~~
cmd.c:46:30: note: change the argument to be the free space in the
destination buffer minus the terminating null byte
        strncat(tbuffer, a2, sizeof(tbuffer));
                             ^~~~~~~~~~~~~~~
                             sizeof(tbuffer) - strlen(tbuffer) - 1
1 error generated.
make[3]: *** [cmd.o] Error 1
make[2]: *** [cmd] Error 2
make[1]: *** [build] Error 2
make: *** [all] Error 2

So I removed --enable-checking to try to get around the warnings as
errors and get stopped at:

/usr/bin/install -c -m 644 libacl.a
/Users/matt/Downloads/openafs-1.6.5.1/lib/libacl.a
cd src && cd kauth &&
/Applications/Xcode.app/Contents/Developer/usr/bin/make depinstall
/Users/matt/Downloads/openafs-1.6.5.1/src/rxgen/rxgen -A -u -x -h -o
kauth.h ./kauth.rg
    declare_stat (Authenticate);
^^^^^^^^^^^^^^^^^^
./kauth.rg, line 141: expected '*' or 'identifier'
make[3]: *** [kauth.h] Error 1
make[2]: *** [kauth_depinstall] Error 2
make[1]: *** [build] Error 2
make: *** [all] Error 2

Am I doing something wrong?
--Matt