[OpenAFS-devel] Final Mac OS Steps
Barry Fawthrop
barry@isscp.com
Mon, 30 Mar 2009 13:31:48 -0400
Yes Derrick, you are quite right.
This does lead me to two questions
(1) What is the need for the kernel module portion and what are it's functions
could this be managed some other way, perhaps without a kernel module?
(I'm no expert in these things, but I do have a good grasp of computing
and always willing to learn more)
(2) I'm finding that pr_Initialize fails when it get to
process.c savecontext
switch(rc) {
case 0:
jmpBuffer = (jmp_buf_Type *) jmp_tmp;
jmpBuffer[LWP_SP] = ptr_mangle((jmp_buf_type) sp);
--> longjmp(jmp_tmp, 1); <---- fails here
break;
case 1:
case 2:
}
after the jmpBuffer[LWP_SP] call
jmpBuffer and jmp_tmp have the same value
before longjmp
LWP_CreateProcess
calls savecontext(Create_Process_Part2, &temp2->context, stackptr + stacksize - 16 - sizeof(void*));
producing the 1987 macosx-nat-inferior.c error given below.
Could someone please explain what this is trying to do and possibly why the failure?
Could it caused by the iPhone Simulator? (just wild guess), wanting to learn about this, truly.
Thanks to all
Derrick Brashear wrote:
> Define working. No loadable kernel modules on the iPhone, so the basic
> client won't work; GUI toolsaround the provided APIs perhaps. aklog will
> want to load tokens into the kernel and with no module it won't fly
>
> Derrick
>
>
> On Mar 28, 2009, at 1:42 PM, Barry Fawthrop <barry@isscp.com> wrote:
>
>> Thanks to all
>>
>> I have a 95% working openafs on the iphone simulator
>>
>> Only two things have be stumped
>>
>> (1) I can run aklog and get as afar as
>> About to resolve name barry to id in cell abc.xyz
>>
>> it fails here with the
>> if(!pr_Initialize(0, confname, aserver.cell))
>> status = pr_SNameToId(username, &viceId);
>>
>> with error message
>> error while killing target (killing anyway): warning error on line
>> 1987 of
>> "/SourceCache/gdb/gdb-962/src/gdb/macosx/macosx-nat-inferior.c" in
>> function
>> "masocs_kill_inferiror_safe":(os/kern) failur (0x5x)
>>
>> On the web it talk about closing multiple UIWindows and we are not
>> doing that here
>> Is it some where in the rx.c somthing about threads but I'm so lost
>> there
>>
>>
>>
>> (2) in rxkad_server.c rxkad_CheckResponse function
>> tkt_DecodeTicket5(tix, tlen, tsp->get_key, tsp->get_key_rock, kvno,
>> client.name, client.instance, client.cell, &sessionkey, &host, &start,
>> &end, tsp->flags &RXS_CONFIG_FLAGS_DISABLE_DOTCHECK);
>>
>> compiles with errors
>> invalid conversion from 'int (*)(void,* int, ktc_encryptionKey *) to
>> int()(char *, int, ktcencruptionKey *)
>> invalid conversion from void* to char *
>> cannot convert ktc_encryptionKey * to char * for arugment 9 in
>> tkt_DecodeTicket......
>>
>> Yes The mapping is very strict and I have had to make come changes like
>> code = malloc(.. -> code = (char *)malloc(...
>>
>> But this one has me stumped I've tried everything
>>
>>
>> Thanks all
>>
>> _______________________________________________
>> OpenAFS-devel mailing list
>> OpenAFS-devel@openafs.org
>> https://lists.openafs.org/mailman/listinfo/openafs-devel