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

Derrick Brashear shadow@gmail.com
Fri, 25 Oct 2013 10:14:43 -0400


--089e0139faa8380fe204e9915f84
Content-Type: text/plain; charset=ISO-8859-1

perchance can you decode the panic? i haven't had time to deal with any of
this but the panic is probably a real bug since the kpi didn't change and
thus the 10.8 module "should" work.


On Thu, Oct 24, 2013 at 9:12 PM, Matt Haught <matt_haught@ncsu.edu> wrote:

> 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
> _______________________________________________
> port-darwin mailing list
> port-darwin@openafs.org
> https://lists.openafs.org/mailman/listinfo/port-darwin
>
>


-- 
Derrick

--089e0139faa8380fe204e9915f84
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">perchance can you decode the panic? i haven&#39;t had time=
 to deal with any of this but the panic is probably a real bug since the kp=
i didn&#39;t change and thus the 10.8 module &quot;should&quot; work.<br></=
div>
<div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Thu, Oct 2=
4, 2013 at 9:12 PM, Matt Haught <span dir=3D"ltr">&lt;<a href=3D"mailto:mat=
t_haught@ncsu.edu" target=3D"_blank">matt_haught@ncsu.edu</a>&gt;</span> wr=
ote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Has anyone had any luck getting openafs to c=
ompile on mavericks using<br>
xcode 5.1? =A0I am getting kernel panics with the mountain lion kext<br>
when accessing files usually when writing. Both via upgrade and a<br>
fresh install using modified pkg. I am needing to do some testing, so<br>
I wanted to at least get it compiled.<br>
<br>
There was not a sysname for mavericks so I used<br>
--with-afs-sysname=3Dx86_darwin_120 (x86_darwin_130 would be mavericks),<br=
>
I don&#39;t believe that would cause the problems.<br>
<br>
With the additional configure options --enable-warnings and<br>
--enable-checking I get stopped at:<br>
<br>
gcc =A0-Os -I/Users/matt/Downloads/openafs-1.6.5.1/src/config<br>
-I/Users/matt/Downloads/openafs-1.6.5.1/include -I. -I. =A0 -Os -Wall<br>
-Wstrict-prototypes -Wold-style-definition -Wpointer-arith -Wall<br>
-Wstrict-prototypes -Wold-style-definition -Werror<br>
-fdiagnostics-show-option -Wpointer-arith =A0 -c cmd.c<br>
cmd.c:46:30: error: the value of the size argument in &#39;strncat&#39; is =
too<br>
large, might lead to a buffer overflow [-Werror,-Wstrncat-size]<br>
=A0 =A0 =A0 =A0 strncat(tbuffer, a2, sizeof(tbuffer));<br>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0^~~~~~~~~~~~~~~<=
br>
cmd.c:46:30: note: change the argument to be the free space in the<br>
destination buffer minus the terminating null byte<br>
=A0 =A0 =A0 =A0 strncat(tbuffer, a2, sizeof(tbuffer));<br>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0^~~~~~~~~~~~~~~<=
br>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0sizeof(tbuffer) =
- strlen(tbuffer) - 1<br>
1 error generated.<br>
make[3]: *** [cmd.o] Error 1<br>
make[2]: *** [cmd] Error 2<br>
make[1]: *** [build] Error 2<br>
make: *** [all] Error 2<br>
<br>
So I removed --enable-checking to try to get around the warnings as<br>
errors and get stopped at:<br>
<br>
/usr/bin/install -c -m 644 libacl.a<br>
/Users/matt/Downloads/openafs-1.6.5.1/lib/libacl.a<br>
cd src &amp;&amp; cd kauth &amp;&amp;<br>
/Applications/Xcode.app/Contents/Developer/usr/bin/make depinstall<br>
/Users/matt/Downloads/openafs-1.6.5.1/src/rxgen/rxgen -A -u -x -h -o<br>
kauth.h ./kauth.rg<br>
=A0 =A0 declare_stat (Authenticate);<br>
^^^^^^^^^^^^^^^^^^<br>
./kauth.rg, line 141: expected &#39;*&#39; or &#39;identifier&#39;<br>
make[3]: *** [kauth.h] Error 1<br>
make[2]: *** [kauth_depinstall] Error 2<br>
make[1]: *** [build] Error 2<br>
make: *** [all] Error 2<br>
<br>
Am I doing something wrong?<br>
--Matt<br>
_______________________________________________<br>
port-darwin mailing list<br>
<a href=3D"mailto:port-darwin@openafs.org">port-darwin@openafs.org</a><br>
<a href=3D"https://lists.openafs.org/mailman/listinfo/port-darwin" target=
=3D"_blank">https://lists.openafs.org/mailman/listinfo/port-darwin</a><br>
<br>
</blockquote></div><br><br clear=3D"all"><br>-- <br>Derrick
</div>

--089e0139faa8380fe204e9915f84--