hints for compiling Arla on OS X 10.3
Paul Swenson
pds at mac.com
Mon May 10 21:57:25 CEST 2004
I've successfully gotten the latest alpha build (arla-0.36pre40) to build on Panther using the instructions provided here (#undef HAVE_KRB5 in the two files). Arla installs fine, the kernel modules loads, and I can browse AFS space. The only problem is, Arla didn't seem to compile the aklog command to transfer kerberos tickets to AFS tokens. I linked Arla against the krbafs library so I can use the built-in MIT Kerberos to obtain tickets. In previous releases of Arla in 10.1 and 10.2, this setup would cause aklog to be built along with the rest of the CLI utilities. I've tried building it by hand and via some makefile hacking, and can get it to compile, but it doesn't seem to succeed in obtaining tokens (it always fails with a "aklog: Failed getting tokens for cell umbc.edu", I am using the exact same edu.mit.Kerberos and arla config files that were working before). I believe this has something to do with the changes I had to make in order to allow it to compile. First, I added a #include <krb.h> to the top of aklog.c, and then added a #define HAVE_KRB_AFSLOG_UID, since I was getting an undefined symbol error when it was trying to call k_afsklog_uid in the krb_afslog_uid function (I couldn't find a reference to this function anywhere in the included kerberos libraries or libkrbafs). I also tried replacing the call to k_afsklog_uid with krb5_afsklog_uid and a few other things, but most of my attempts resulted in either failures, segfaults or an inability to compile ;-). Does anyone have any suggestions of how to build a working aklog from the 0.36 alpha sources in Mac OS X 10.3? I believe this is the final step in getting a working AFS client in Panther. Once I get this working, I plan on putting together an installable package preconfigured for other Mac users at UMBC.
Thanks in advance!
Paul Swenson
President, UMBC Macintosh User Group
http://mug.umbc.edu/
On Sunday, May 09, 2004, at 10:45PM, Massimo Marino <Massimo_Marino at lbl.gov> wrote:
>On May 10, 2004, at 12:32 AM, Keith Johnston wrote:
>
>> Hi Love
>> Thanks for your prompt reply to my querry. I have configured arla
>> 0.36alpha3 and added the #undef lines to the files appl_locl.h and
>> arlalib.c in
>> appl/lib. These files contain #ifdefs for HAVE_KRB5 but I get the same
>> error
>> messages when I run make.
>> I have also done make clean and make after putting the #undef in
>> all of the
>> files in appl/lib but still the same result. would it help to get a
>> copy of the
>> error messages?
>> Thanks in advance
>> Keith
>>
>>
>> Quoting Love <lha at stacken.kth.se>:
>>
>>>
>>> Keith Johnston <keith at cs.auckland.ac.nz> writes:
>>>
>>>> Hi;
>>>> I am sorry to be asking these questions, but I am not a
>>>> programmer and am somewhat out of my depth and would appreciate any
>>>> help that could be offered.
>>>> I am currently trying to compile arla for OS X 10.3.3 using
>>>> and I want to use OS Xs MIT Kerberos. I have installed krbafs (no
>>>> crypto) from MIT, I could not configure either arla 0.35.11 or
>>>> 0.35.12
>>>> from the source tar balls .
>>>
>>> 0.35.x won't compile on macos, try latest snapshot (like 0.36alpha3)
>>> in
>>> snap dir on the ftp site. You have to comment out some kerberos 5
>>> code that
>>> depends on heimdal-isms in appl/lib. Just #undef HAVE_KRB5 in top of
>>> those
>>> files.
>>>
>>> Love
>>>
>
>Building from source went fine for me with only two changes: add
>'#undef HAVE_KRB5' in files:
>
>appl/lib/arlalib.c
>rxkad/rxk_serv.c
>
>otherwise was getting compilation errors or krb 5 code. One nicety: I
>accessed in Finder my afs account without authenticating first. No
>access to files and icons disappearing if clicking on them.
>Authenticated on xterm and low and behold the Finder gets notified:
>file can be accessed and directory refreshed.
>
>I experienced a couple of kernel panics which did not reproduce
>themselves so far.
>
>Massimo
>
>
More information about the Arla-drinkers
mailing list