[Openmcl-devel] Problems trying to create CDB files for the Addressbook framework

Gary King gwking at metabang.com
Wed May 10 07:51:18 PDT 2006


Hi Gary,

Thanks for the input. I did manage to get the ffi files created but  
am now having problems with going from them to the CDB (one step  
forward... into a wall <smile>). I'm familiar with the work that you  
and Ralph Richard Cook did back in late October / early November  
2005. If I manage to understand things well enough, I'm happy to try  
and improve on the hoop jumping -- though the time frame for that  
would be uncertain.

Though I think this will be a duplication, here is the error I get  
when trying to parse the ffi files:

> ;;; proof that it can work...
> ? (parse-standard-ffi-files :webkit)
> T
> ;;; but no for my address book files
> ? (parse-standard-ffi-files :addressbook)
> > Error: No such file or directory : #P"ccl:darwin- 
> headers;addressbook;new-constants.cdb"
> > While executing: CDBM-OPEN, in process listener(1).
> > Type :POP to abort.
> Type :? for other options.
> 1 > :b
> (F0135B70) : 0 (CDBM-OPEN #P"ccl:darwin-headers;addressbook;new- 
> constants.cdb") 40
> (F0135B80) : 1 (PARSE-STANDARD-FFI-FILES :ADDRESSBOOK [...]) 988
> (F0135BB0) : 3 (CALL-CHECK-REGS 'PARSE-STANDARD-FFI-FILES [...]) 72
> (F0135BD0) : 5 (TOPLEVEL-EVAL '(PARSE-STANDARD-FFI- 
> FILES :ADDRESSBOOK) [...]) 152
> (F0135BE0) : 6 (READ-LOOP [...]) 864
> (F0135C20) : 7 (TOPLEVEL-LOOP) 124
> (F0135C40) : 8 (FUNCALL #'#<Anonymous Function #x810520E>) 68
> (F0135C60) : 10 (FUNCALL #'#<Anonymous Function #x81521DE>) 804
> (F0135C80) : 11 (RUN-PROCESS-INITIAL-FORM #<PROCESS listener(1)  
> [Active] #x83C319E> '(#)) 400
> (F0135CC0) : 13 (FUNCALL #'#<Anonymous Function #x810C4EE>  
> #<PROCESS listener(1) [Active] #x83C319E> '(#)) 152
> (F0135CE0) : 14 (FUNCALL #'#<Anonymous Function #x81019C6>) 172
> 1 >

Since I'm trying to create the CDB file, I'm not sure why it not  
being there is an error <smile>.

keep peace,


On May 9, 2006, at 11:51 PM, Gary Byers wrote:

> Just as a guess - made mostly because the "No such file" errors
> look so weird - but are the lines in the file terminated with LFs
> or with with CRs ?
>
> Note also that the AddressBook.h file #includes (it actually uses
> the deprecated ObjC #import directive) the other C headers in
> the framework's Headers directory, so it isn't necessary to translate
> those .h files separately.
>
> Actually getting the ObjC bridge to find methods/classes from
> an add-on framework like AddressBook is harder than it should be (and
> the fact that it seems to work for WebKit is misleading.)  Someone
> managed to jump through all of the necessary hoops last fall; when
> the issue came up again a few months ago,  I was knee-deep in x86-g64
> stuff and didn't have time to get into a description of the issues
> and how to work around them.
>
> I don't have that excuse (as severely) now, but ... damn it, I'm
> hungry and need to get something to eat before IHOP and Denny's are my
> only choices.  I will try to remember the issues and write something
> up (and think concretely about how they should be fixed) soon; please
> nag if I don't.
>
>
> On Tue, 9 May 2006, Gary King wrote:
>
>> I'm trying to create CDB files for the addressbook framework but I'm
>> not succeeding. I've made a sub-directory of darwin-headers named
>> addressbook and put a sub-directory named C under that with the
>> following populate.h in it:
>>
>>> #!/bin/sh
>>> h-to-ffi.sh -D__OBJC__ /System/Library/Frameworks/
>>> AddressBook.framework/Headers/AddressBook.h
>>
>> I've also tried this one:
>>
>>> #!/bin/sh
>>>
>>> h-to-ffi.sh /System/Library/Frameworks/AddressBook.framework/
>>> Headers/ABTypedefs.h
>>> h-to-ffi.sh /System/Library/Frameworks/AddressBook.framework/
>>> Headers/ABGlobalsC.h
>>> h-to-ffi.sh /System/Library/Frameworks/AddressBook.framework/
>>> Headers/ABAddressBookC.h
>>>
>>
>> In either case, I get errors like:
>>
>>> +++ /System/Library/Frameworks/AddressBook.framework/Headers/
>>> ABTypedefs.h
>>> : No such file or directoryary/Frameworks/AddressBook.framework/
>>> Headers/ABTypedefs.h
>>> +++ /System/Library/Frameworks/AddressBook.framework/Headers/
>>> ABGlobalsC.h
>>> : No such file or directoryary/Frameworks/AddressBook.framework/
>>> Headers/ABGlobalsC.h
>>> +++ /System/Library/Frameworks/AddressBook.framework/Headers/
>>> ABAddressBookC.h
>>> : No such file or directoryary/Frameworks/AddressBook.framework/
>>> Headers/ABAddressBookC.h
>>> [
>>
>> But trying "ls System/Library/Frameworks/AddressBook.framework/
>> Headers/ABGlobalsC.h" works fine.
>>
>> Can anyone tell me what I'm missing?
>>
>> thanks,
>> -- 
>> Gary Warren King
>> metabang.com
>> http://www.metabang.com/
>> (413) 210 7511
>> gwking on #lisp (occasionally)
>>
>>
>> _______________________________________________
>> Openmcl-devel mailing list
>> Openmcl-devel at clozure.com
>> http://clozure.com/mailman/listinfo/openmcl-devel
>>
>>


-- 
Gary Warren King
metabang.com
http://www.metabang.com/
(413) 210 7511
gwking on #lisp (occasionally)





More information about the Openmcl-devel mailing list