From jpbarrette at gmail.com Tue May 6 23:28:42 2008 From: jpbarrette at gmail.com (Jean-Philippe Barette-LaPierre) Date: Tue, 6 May 2008 19:28:42 -0400 Subject: [cl-objc-devel] Mac OS X 10.5 patch Message-ID: <4e3cf5960805061628s71eb3396wd515def861d07528@mail.gmail.com> I know that some person had troubles with Mac OS X 10.5. After some investigations, I found the problem. It seems that in get-class-ordered-list, which is responsible to gather all classes, it was entering an infinite loop. The loop was there because it was trying to load a class "Protocol", which has "Protocol" class as Protocol. So, loading "Protocol" class caused to load again "Protocol", which didn't had been registered yet. I just delayed the initialization of :protocols. The other problem was related to coersing some pointers. However I don't know why it was needed, and it seems to go well without it. There's an another latent problem where I get all those messages: _NSAutoreleaseNoPool(): Object 0x142c60 of class NSCFArray autoreleased with no pool in place - just leaking I'm looking into that. BTW, I'm a newcomer to lisp so, you might want to edit the patch to make it "cleaner" -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mychanges.diff Type: application/octet-stream Size: 2781 bytes Desc: not available URL: From jpbarrette at gmail.com Wed May 7 01:23:15 2008 From: jpbarrette at gmail.com (Jean-Philippe Barette-LaPierre) Date: Tue, 6 May 2008 21:23:15 -0400 Subject: [cl-objc-devel] NSAutoreleasePool problem Message-ID: <4e3cf5960805061823y34ade8c7mccf739d3ca623842@mail.gmail.com> As I mentioned on a previous post, I was annoyed by the following message (about thousands of them): *** _NSAutoreleaseNoPool(): Object 0xa00545d0 of class NSCFString autoreleased with no pool in place - just leaking It seems that for hello-world example just using: (defparameter *pool* (invoke (invoke 'ns-autorelease-pool alloc) init)) at the beginning is sufficient. I suspect that it would *considerably* affect the rapidity the first run. Currently it takes about 10 minutes to do it, spending 75% or more of its time to print log errors. I'm neither a lisp or an objective-C expert, so I don't know what would be the better practice. objective-cl project seems to have some guidelines for this. I'll check this week if I could be inspired by it. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeremy at codingkoi.com Wed May 7 05:50:41 2008 From: jeremy at codingkoi.com (Jeremy Shoemaker) Date: Wed, 7 May 2008 00:50:41 -0500 Subject: [cl-objc-devel] Mac OS X 10.5 patch In-Reply-To: <4e3cf5960805061628s71eb3396wd515def861d07528@mail.gmail.com> References: <4e3cf5960805061628s71eb3396wd515def861d07528@mail.gmail.com> Message-ID: <8809beb20805062250q26ed67b2m6d5247550955ad5d@mail.gmail.com> Yeah, that would be me, if not someone else as well. I had kinda given up on it, since I hadn't heard anything in months. I didn't know where to look really to try and fix it as I'm really new to lisp myself. Thanks for working on it. I'll have to take a look at it again when I can get the chance to take a break and play with it again. Thanks Jeremy Shoemaker On Tue, May 6, 2008 at 6:28 PM, Jean-Philippe Barette-LaPierre < jpbarrette at gmail.com> wrote: > I know that some person had troubles with Mac OS X 10.5. After some > investigations, I found the problem. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From list-cl-objc-devel at mail.matthias.benkard.de Wed May 7 11:23:43 2008 From: list-cl-objc-devel at mail.matthias.benkard.de (Matthias Andreas Benkard) Date: Wed, 7 May 2008 13:23:43 +0200 Subject: [cl-objc-devel] NSAutoreleasePool problem In-Reply-To: <4e3cf5960805061823y34ade8c7mccf739d3ca623842@mail.gmail.com> References: <4e3cf5960805061823y34ade8c7mccf739d3ca623842@mail.gmail.com> Message-ID: <8176ee540805070423n2f856ccqdc4281402c20b28d@mail.gmail.com> Hi, 2008/5/7 Jean-Philippe Barette-LaPierre : > It seems that for hello-world example just using: > > (defparameter *pool* (invoke (invoke 'ns-autorelease-pool alloc) init)) > > at the beginning is sufficient. Yes, that should do the trick. Memory-management-wise, it's probably not much better than letting all top-level objects leak, but I'm not aware of any better way, either. > objective-cl project seems to have some guidelines for this. Objective-CL does essentially the same thing as above (albeit very early on at initialisation time, as should be done; see Objective-C/libobjcl.m, function objcl_initialise_runtime), but it also automatically releases objects that are no longer used from the Lisp side (that is, it integrates the Lisp GC with Objective-C's reference counting scheme). Still, if you're writing a console app using the Foundation framework, you'll need to manage autorelease pools yourself, just as in Objective-C. There's no way around that, as far as I can tell. On the other hand, if you're writing GUI applications, AppKit is supposed to manage autorelease pools for you. For details see: http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Concepts/AutoreleasePools.html#//apple_ref/doc/uid/20000047-SW2 Hope this helps, Matthias (Objective-CL maintainer) From jpbarrette at gmail.com Mon May 19 15:33:07 2008 From: jpbarrette at gmail.com (Jean-Philippe Barette-LaPierre) Date: Mon, 19 May 2008 11:33:07 -0400 Subject: [cl-objc-devel] Converter Message-ID: <4e3cf5960805190833mf9567f7m956d1f6f923538d8@mail.gmail.com> It would be nice to have access to converter.app's project file. Can you add it to the source distribution? -------------- next part -------------- An HTML attachment was scrubbed... URL: From matley at muppetslab.org Tue May 20 01:41:20 2008 From: matley at muppetslab.org (Luigi Panzeri) Date: Tue, 20 May 2008 03:41:20 +0200 Subject: [cl-objc-devel] Converter In-Reply-To: <4e3cf5960805190833mf9567f7m956d1f6f923538d8@mail.gmail.com> (Jean-Philippe Barette-LaPierre's message of "Mon\, 19 May 2008 11\:33\:07 -0400") References: <4e3cf5960805190833mf9567f7m956d1f6f923538d8@mail.gmail.com> Message-ID: "Jean-Philippe Barette-LaPierre" writes: > It would be nice to have access to converter.app's project file. Can you add > it to the source distribution? Which file do you mean? converter.app is already in the source distribution -- Luigi Panzeri aka Matley Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film Quotes on Lisp: http://lispers.org/ From jpbarrette at gmail.com Tue May 20 14:54:07 2008 From: jpbarrette at gmail.com (Jean-Philippe Barette-LaPierre) Date: Tue, 20 May 2008 10:54:07 -0400 Subject: [cl-objc-devel] Converter In-Reply-To: References: <4e3cf5960805190833mf9567f7m956d1f6f923538d8@mail.gmail.com> Message-ID: <4e3cf5960805200754u278f60abqb8aa1916403ca8cb@mail.gmail.com> On Mon, May 19, 2008 at 9:41 PM, Luigi Panzeri wrote: > "Jean-Philippe Barette-LaPierre" writes: > > > It would be nice to have access to converter.app's project file. Can you > add > > it to the source distribution? > > Which file do you mean? converter.app is already in the source > distribution > Sorry if it wasn't clear, I meant the xcode > > > -- > Luigi Panzeri aka Matley > > Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film > Quotes on Lisp: http://lispers.org/ > _______________________________________________ > cl-objc-devel mailing list > cl-objc-devel at common-lisp.net > http://common-lisp.net/cgi-bin/mailman/listinfo/cl-objc-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbarrette at gmail.com Tue May 20 14:55:47 2008 From: jpbarrette at gmail.com (Jean-Philippe Barette-LaPierre) Date: Tue, 20 May 2008 10:55:47 -0400 Subject: [cl-objc-devel] Converter In-Reply-To: <4e3cf5960805200754u278f60abqb8aa1916403ca8cb@mail.gmail.com> References: <4e3cf5960805190833mf9567f7m956d1f6f923538d8@mail.gmail.com> <4e3cf5960805200754u278f60abqb8aa1916403ca8cb@mail.gmail.com> Message-ID: <4e3cf5960805200755w17428ea1w1a65306869eeb17e@mail.gmail.com> On Tue, May 20, 2008 at 10:54 AM, Jean-Philippe Barette-LaPierre < jpbarrette at gmail.com> wrote: > > > On Mon, May 19, 2008 at 9:41 PM, Luigi Panzeri > wrote: > >> "Jean-Philippe Barette-LaPierre" writes: >> >> > It would be nice to have access to converter.app's project file. Can you >> add >> > it to the source distribution? >> >> Which file do you mean? converter.app is already in the source >> distribution >> > > Sorry if it wasn't clear, I meant the xcode > Oupss sent the message before I had finished it. Sorry if it wasn't clear, I meant the xcodeproj file. I know it's not that much important, it's just for convenience. > > > >> >> >> -- >> Luigi Panzeri aka Matley >> >> Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film >> Quotes on Lisp: http://lispers.org/ >> _______________________________________________ >> cl-objc-devel mailing list >> cl-objc-devel at common-lisp.net >> http://common-lisp.net/cgi-bin/mailman/listinfo/cl-objc-devel >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matley at muppetslab.org Tue May 20 16:06:17 2008 From: matley at muppetslab.org (Luigi Panzeri) Date: Tue, 20 May 2008 18:06:17 +0200 Subject: [cl-objc-devel] Mac OS X 10.5 patch In-Reply-To: <4e3cf5960805061628s71eb3396wd515def861d07528@mail.gmail.com> (Jean-Philippe Barette-LaPierre's message of "Tue\, 6 May 2008 19\:28\:42 -0400") References: <4e3cf5960805061628s71eb3396wd515def861d07528@mail.gmail.com> Message-ID: "Jean-Philippe Barette-LaPierre" writes: > I know that some person had troubles with Mac OS X 10.5. After some > investigations, I found the problem. > It seems that in get-class-ordered-list, which is responsible to gather all > classes, it was entering an infinite loop. > The loop was there because it was trying to load a class "Protocol", which > has "Protocol" class as Protocol. > So, loading "Protocol" class caused to load again "Protocol", which didn't > had been registered yet. I just delayed > the initialization of :protocols. > Cool! Applied. As the patch broke the support of Tiger :-( i created another repository named cl-objc-leopard. I also added you to the list of author on the website I also created another repository named cl-objc-libffi with my last patches and the support of libffi, a little step forward the integration with objective-cl. > The other problem was related to coersing some pointers. However I don't > know why it was needed, and it seems > to go well without it. There's an another latent problem where I get all > those messages: > > _NSAutoreleaseNoPool(): Object 0x142c60 of class NSCFArray autoreleased with > no pool in place - just leaking > I know this issue, but I think it is good to let the user to choose the release policy to adopt. Maybe It would be better to show the different uses in an example. -- Luigi Panzeri aka Matley Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film Quotes on Lisp: http://lispers.org/ From jpbarrette at gmail.com Tue May 20 16:29:05 2008 From: jpbarrette at gmail.com (Jean-Philippe Barette-LaPierre) Date: Tue, 20 May 2008 12:29:05 -0400 Subject: [cl-objc-devel] Mac OS X 10.5 patch In-Reply-To: References: <4e3cf5960805061628s71eb3396wd515def861d07528@mail.gmail.com> Message-ID: <4e3cf5960805200929w1ecccb41q98b60f5c1a188f69@mail.gmail.com> On Tue, May 20, 2008 at 12:06 PM, Luigi Panzeri wrote: > "Jean-Philippe Barette-LaPierre" writes: > > > I know that some person had troubles with Mac OS X 10.5. After some > > investigations, I found the problem. > > It seems that in get-class-ordered-list, which is responsible to gather > all > > classes, it was entering an infinite loop. > > The loop was there because it was trying to load a class "Protocol", > which > > has "Protocol" class as Protocol. > > So, loading "Protocol" class caused to load again "Protocol", which > didn't > > had been registered yet. I just delayed > > the initialization of :protocols. > > > > > Cool! Applied. > > As the patch broke the support of Tiger :-( i created another > repository named cl-objc-leopard. I also added you to the list of > author on the website > > I also created another repository named cl-objc-libffi with my last > patches and the support of libffi, a little step forward the > integration with objective-cl. > > > > The other problem was related to coersing some pointers. However I don't > > know why it was needed, and it seems > > to go well without it. There's an another latent problem where I get all > > those messages: > > > > _NSAutoreleaseNoPool(): Object 0x142c60 of class NSCFArray autoreleased > with > > no pool in place - just leaking > > > > I know this issue, but I think it is good to let the user to choose > the release policy to adopt. Maybe It would be better to show the > different uses in an example. > Well the problem occurs when generating frameworks. So it means that when we are "asdf-intall"ing it leaks and we end up with HUGE amount of memory usage (1 or 2 gigs or resident memory). I patched generate-frameworks to use a memory pool. I'll send the patch as soon as I get home. > > -- > Luigi Panzeri aka Matley > > Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film > Quotes on Lisp: http://lispers.org/ > _______________________________________________ > cl-objc-devel mailing list > cl-objc-devel at common-lisp.net > http://common-lisp.net/cgi-bin/mailman/listinfo/cl-objc-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbarrette at gmail.com Tue May 20 16:31:27 2008 From: jpbarrette at gmail.com (Jean-Philippe Barette-LaPierre) Date: Tue, 20 May 2008 12:31:27 -0400 Subject: [cl-objc-devel] Mac OS X 10.5 patch In-Reply-To: References: <4e3cf5960805061628s71eb3396wd515def861d07528@mail.gmail.com> Message-ID: <4e3cf5960805200931y3838272ftf811ea03909ab45a@mail.gmail.com> On Tue, May 20, 2008 at 12:06 PM, Luigi Panzeri wrote: > "Jean-Philippe Barette-LaPierre" writes: > > > I know that some person had troubles with Mac OS X 10.5. After some > > investigations, I found the problem. > > It seems that in get-class-ordered-list, which is responsible to gather > all > > classes, it was entering an infinite loop. > > The loop was there because it was trying to load a class "Protocol", > which > > has "Protocol" class as Protocol. > > So, loading "Protocol" class caused to load again "Protocol", which > didn't > > had been registered yet. I just delayed > > the initialization of :protocols. > > > > > Cool! Applied. > > As the patch broke the support of Tiger :-( i created another > repository named cl-objc-leopard. I also added you to the list of > author on the website Thanks! Can you put jpb(at)rrette(dot)com instead? > > I also created another repository named cl-objc-libffi with my last > patches and the support of libffi, a little step forward the > integration with objective-cl. > > > > The other problem was related to coersing some pointers. However I don't > > know why it was needed, and it seems > > to go well without it. There's an another latent problem where I get all > > those messages: > > > > _NSAutoreleaseNoPool(): Object 0x142c60 of class NSCFArray autoreleased > with > > no pool in place - just leaking > > > > I know this issue, but I think it is good to let the user to choose > the release policy to adopt. Maybe It would be better to show the > different uses in an example. > > -- > Luigi Panzeri aka Matley > > Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film > Quotes on Lisp: http://lispers.org/ > _______________________________________________ > cl-objc-devel mailing list > cl-objc-devel at common-lisp.net > http://common-lisp.net/cgi-bin/mailman/listinfo/cl-objc-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpbarrette at gmail.com Tue May 20 16:49:04 2008 From: jpbarrette at gmail.com (Jean-Philippe Barette-LaPierre) Date: Tue, 20 May 2008 12:49:04 -0400 Subject: [cl-objc-devel] info.plist loading Message-ID: <4e3cf5960805200949m3695ea74j3e5cbba45ab0a7d8@mail.gmail.com> I got a project which is set quite like the converter example. However I got a problem with the info.plist file; it seems it's not loaded. Is there any magic to do, or it should be loaded automatically? The project is to use the Graphviz Cocoa application and use a lisp backend in order to do add some graph manipulation. What I did is replace the Graphviz executable by a script which is quite like the converter script. Everything loads perfectly (thanks to the CONTEXT variable), except the info.plist. The symptom is that when I try to load a .dot it says: The document "test.dot" could not be opened. Graphviz cannot open files in the "Graphviz graph" format. This is usually specified in the info.plist (and it is). I wanted to strace the process, but I don't know what's the equivalent on MacOS X. I'll look on google. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Info.plist Type: application/octet-stream Size: 2005 bytes Desc: not available URL: From raffaelcavallaro at mac.com Tue May 20 19:01:49 2008 From: raffaelcavallaro at mac.com (Raffael Cavallaro) Date: Tue, 20 May 2008 15:01:49 -0400 Subject: [cl-objc-devel] Unknown CFFI type: OBJC-CFFI:OBJC-SEL. Message-ID: Using the newest cl-objc-leopard (with the patch from Jean-Philippe) with sbcl 1.0.12 x86 under 10.5.2, executing: (asdf:oos 'asdf:load-op :cl-objc) begins to load through cffi: CL-USER> (asdf:oos 'asdf:load-op :cl-objc) ; loading system definition from /Users/raffaelc/.sbcl/systems/cl- objc.asd ; into # ; registering # as CL-OBJC ; registering # as ; CL-OBJC.EXAMPLES.HELLO-WORLD ; registering # as ; CL-OBJC.EXAMPLES.CONVERTER ; registering # as ; CL-OBJC.EXAMPLES.CIRCLE-VIEW ; registering # as CL-OBJC.DOC ; registering # as CL-OBJC.TEST ; loading system definition from /Users/raffaelc/.sbcl/systems/ memoize.asd ; into # ; registering # as MEMOIZE ; loading system definition from ; /Users/raffaelc/.sbcl/systems/closer-mop.asd into # ; registering # as CLOSER-MOP ; loading system definition from ; /Users/raffaelc/.sbcl/systems/lw-compat.asd into # ; registering # as LW-COMPAT ; loading system definition from /Users/raffaelc/.sbcl/systems/yacc.asd ; into # ; registering # as YACC ; loading system definition from /Users/raffaelc/.sbcl/systems/cffi.asd ; into # ; registering # as CFFI but then errors thus: Execution of a form compiled with errors. Form: (DEFCFUN (sel_isMapped SEL-IS-MAPPED) BOOLEAN Returns true if a selector is registered in the ObjC runtime. (SEL OBJC-SEL)) Compile-time error: (during macroexpansion of (DEFCFUN ("sel_isMapped" SEL-IS- MAPPED) ...)) Unknown CFFI type: OBJC-SEL. [Condition of type SB-INT:COMPILED-PROGRAM-ERROR] Restarts: 0: [RETRY] Retry performing # on #. 1: [ACCEPT] Continue, treating # on # as having been successful. 2: [ABORT-REQUEST] Abort handling SLIME request. 3: [ABORT] Exit debugger, returning to top level. Backtrace: 0: (SB-FASL::LOAD-FASL-GROUP #) 1: ((FLET SB-THREAD::WITH-RECURSIVE-LOCK-THUNK)) 2: (SB-FASL::LOAD-AS-FASL # NIL #) 3: (SB-FASL::INTERNAL-LOAD #P"/Users/raffaelc/.sbcl/site/cl-objc/ src/cffi.fasl" #P"/Users/raffaelc/.sbcl/site/cl-objc/src/ cffi.fasl" :ERROR NIL NIL :BINARY NIL) 4: (SB-FASL::INTERNAL-LOAD #P"/Users/raffaelc/.sbcl/site/cl-objc/ src/cffi.fasl" #P"/Users/raffaelc/.sbcl/site/cl-objc/src/ cffi.fasl" :ERROR NIL NIL NIL :DEFAULT) 5: (LOAD #P"/Users/raffaelc/.sbcl/site/cl-objc/src/cffi.fasl") 6: ((SB-PCL::FAST-METHOD ASDF:PERFORM (ASDF:LOAD-OP ASDF:CL-SOURCE- FILE)) # # # #) 7: ((LAMBDA (SB-PCL::.PV. SB-PCL::.NEXT-METHOD-CALL. SB-PCL::.ARG0. SB-PCL::.ARG1.)) # # # #) 8: ((SB-PCL::FAST-METHOD ASDF:PERFORM :AROUND (ASDF:LOAD-OP ASDF:CL- SOURCE-FILE)) # #S(SB-PCL::FAST-METHOD- CALL :FUNCTION # :PV NIL :NEXT-METHOD- CALL NIL :ARG-INFO (2)) # #) 9: ((LAMBDA NIL)) 10: ((FLET SB-THREAD::WITH-RECURSIVE-LOCK-THUNK)) 11: (SB-C::%WITH-COMPILATION-UNIT #) 12: (ASDF:OPERATE ASDF:LOAD-OP :CL-OBJC) 13: (SB-INT:SIMPLE-EVAL-IN-LEXENV (ASDF:OOS (QUOTE ASDF:LOAD-OP) :CL- OBJC) #) 14: (SWANK::EVAL-REGION "(asdf:oos 'asdf:load-op :cl-objc) " T) 15: ((LAMBDA NIL)) 16: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-SYNTAX-HOOKS (T)) # # #) 17: (SWANK::CALL-WITH-BUFFER-SYNTAX #) 18: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK:LISTENER-EVAL "(asdf:oos 'asdf:load-op :cl-objc) ") #) 19: ((LAMBDA NIL)) 20: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T T)) # # # #) 21: ((LAMBDA NIL)) 22: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T T)) # # # #) 23: (SWANK::CALL-WITH-REDIRECTED-IO # #) 24: (SWANK::CALL-WITH-CONNECTION # #) 25: (SWANK::HANDLE-REQUEST #) 26: (SWANK::PROCESS-AVAILABLE-INPUT # #) 27: ((FLET SWANK::HANDLER)) 28: ((LAMBDA (SWANK-BACKEND::_)) #) 29: (SB-IMPL::SUB-SERVE-EVENT NIL NIL NIL) 30: (SB-SYS:WAIT-UNTIL-FD-USABLE 0 :INPUT NIL) 31: (SB-IMPL::REFILL-INPUT-BUFFER #) 32: (SB-IMPL::INPUT-CHAR/UTF-8 # NIL #:EOF-OBJECT) 33: (READ-CHAR # NIL #:EOF-OBJECT #) 34: (READ-CHAR # NIL #:EOF-OBJECT #) 35: (READ-CHAR # NIL #:EOF-OBJECT #) 36: (READ-PRESERVING-WHITESPACE # NIL (NIL) T) 37: (READ-PRESERVING-WHITESPACE # NIL (NIL) NIL) 38: (READ # NIL (NIL) NIL) 39: (SB-IMPL::REPL-READ-FORM-FUN # #) 40: (SB-IMPL::REPL-FUN NIL) 41: (SB-IMPL::REPL-FUN NIL) 42: ((LAMBDA NIL)) 43: ((LAMBDA NIL)) 44: (SB-IMPL::%WITH-REBOUND-IO-SYNTAX #) 45: (SB-IMPL::TOPLEVEL-REPL NIL) 46: (SB-IMPL::TOPLEVEL-INIT) 47: ((LABELS SB-IMPL::RESTART-LISP)) Any ideas what is happening here? regards, Ralph Raffael Cavallaro, Ph.D. raffaelcavallaro at mac.com From raffaelcavallaro at mac.com Tue May 20 19:41:14 2008 From: raffaelcavallaro at mac.com (Raffael Cavallaro) Date: Tue, 20 May 2008 15:41:14 -0400 Subject: [cl-objc-devel] Re: Unknown CFFI type: OBJC-CFFI:OBJC-SEL. In-Reply-To: <4e3cf5960805201209k3e549d7cle513cd1240fb9ddb@mail.gmail.com> References: <4e3cf5960805201209k3e549d7cle513cd1240fb9ddb@mail.gmail.com> Message-ID: <85E5AB35-01E4-4A05-B4D3-BD147ED50448@mac.com> On May 20, 2008, at 3:09 PM, Jean-Philippe Barette-LaPierre wrote: > Have you cleaned the previous compiled fasl? I get a similar error relating to OBJC-CFFI:OBJC-SEL being an unknown CFFI type with no previous fasls. > Which version of CFFI are you using? 0.9.2 from asdf-install Here is the whole session including the full backtrace with no existing fasls for either cl-objc or cffi: CL-USER> (asdf:oos 'asdf:load-op :cl-objc) ; loading system definition from /Users/raffaelc/.sbcl/systems/cl- objc.asd ; into # ; registering # as CL-OBJC ; registering # as ; CL-OBJC.EXAMPLES.HELLO-WORLD ; registering # as ; CL-OBJC.EXAMPLES.CONVERTER ; registering # as ; CL-OBJC.EXAMPLES.CIRCLE-VIEW ; registering # as CL-OBJC.DOC ; registering # as CL-OBJC.TEST ; loading system definition from /Users/raffaelc/.sbcl/systems/ memoize.asd ; into # ; registering # as MEMOIZE ; loading system definition from ; /Users/raffaelc/.sbcl/systems/closer-mop.asd into # ; registering # as CLOSER-MOP ; loading system definition from ; /Users/raffaelc/.sbcl/systems/lw-compat.asd into # ; registering # as LW-COMPAT ; loading system definition from /Users/raffaelc/.sbcl/systems/yacc.asd ; into # ; registering # as YACC ; loading system definition from /Users/raffaelc/.sbcl/systems/cffi.asd ; into # ; registering # as CFFI ; compiling file "/Users/raffaelc/.sbcl/site/cffi_0.9.2/src/ utils.lisp" (written 08 SEP 2006 04:56:43 PM): ; compiling (IN-PACKAGE #:CL-USER) ; compiling (DEFPACKAGE #:CFFI-UTILS ...) ; compiling (IN-PACKAGE #:CFFI-UTILS) ; compiling (DEFMACRO POST-INCF ...) ; compiling (DEFUN MKLIST ...) ; compiling (DEFMACRO DISCARD-DOCSTRING ...) ; compiling (DEFUN PARSE-BODY ...) ; compiling (DEFMACRO LET-WHEN ...) ; compiling (DEFMACRO BIF ...) ; compiling (DEFUN STARTS-WITH ...) ; compiling (DEFUN SIDE-EFFECT-FREE? ...) ; compiling (DEFMACRO ONCE-ONLY ...) ; compiling (DEFMACRO WITH-UNIQUE-NAMES ...) ; compiling (DEFUN MAKE-GENSYM-LIST ...) ; compiling (DEFUN SYMBOLICATE ...) ; compiling (DEFUN SINGLE-BIT-P ...) ; /Users/raffaelc/.sbcl/site/cffi_0.9.2/src/utils.fasl written ; compilation finished in 0:00:00 ; compiling file "/Users/raffaelc/.sbcl/site/cffi_0.9.2/src/ features.lisp" (written 08 SEP 2006 04:56:43 PM): ; compiling (IN-PACKAGE #:CL-USER) ; compiling (PUSHNEW :CFFI ...) ; compiling (DEFPACKAGE #:CFFI-FEATURES ...) ; /Users/raffaelc/.sbcl/site/cffi_0.9.2/src/features.fasl written ; compilation finished in 0:00:00 ; compiling file "/Users/raffaelc/.sbcl/site/cffi_0.9.2/src/cffi- sbcl.lisp" (written 08 SEP 2006 04:56:43 PM): ; compiling (DEFPACKAGE #:CFFI-SYS ...) ; compiling (IN-PACKAGE #:CFFI-SYS) ; compiling (MAPC (LAMBDA # ...) ...) ; compiling (DEFUN CANONICALIZE-SYMBOL-NAME-CASE ...) ; compiling (DEFUN POINTERP ...) ; compiling (DEFUN POINTER-EQ ...) ; compiling (DEFUN NULL-POINTER ...) ; compiling (DEFUN NULL-POINTER-P ...) ; compiling (DEFUN INC-POINTER ...) ; compiling (DEFUN MAKE-POINTER ...) ; compiling (DEFUN POINTER-ADDRESS ...) ; compiling (DEFUN %FOREIGN-ALLOC ...) ; compiling (DEFUN FOREIGN-FREE ...) ; compiling (DEFMACRO WITH-FOREIGN-POINTER ...) ; compiling (DEFUN MAKE-SHAREABLE-BYTE-VECTOR ...) ; compiling (DEFMACRO WITH-POINTER-TO-VECTOR-DATA ...) ; compiling (DEFMACRO DEFINE-MEM-ACCESSORS ...) ; compiling (DEFINE-MEM-ACCESSORS (:CHAR SB-SYS:SIGNED-SAP-REF-8) ...) ; compiling (DEFUN CONVERT-FOREIGN-TYPE ...) ; compiling (DEFUN %FOREIGN-TYPE-SIZE ...) ; compiling (DEFUN %FOREIGN-TYPE-ALIGNMENT ...) ; compiling (DEFUN FOREIGN-FUNCALL-TYPE-AND-ARGS ...) ; compiling (DEFMACRO %%FOREIGN-FUNCALL ...) ; compiling (DEFMACRO %FOREIGN-FUNCALL ...) ; compiling (DEFMACRO %FOREIGN-FUNCALL-POINTER ...) ; compiling (DEFVAR *CALLBACKS* ...) ; compiling (DEFMACRO %DEFCALLBACK ...) ; compiling (DEFUN %CALLBACK ...) ; compiling (DEFUN %LOAD-FOREIGN-LIBRARY ...) ; compiling (DEFUN %CLOSE-FOREIGN-LIBRARY ...) ; compiling (DEFUN FOREIGN-SYMBOL-POINTER ...) ; compiling (DEFUN FINALIZE ...) ; compiling (DEFUN CANCEL-FINALIZATION ...) ; /Users/raffaelc/.sbcl/site/cffi_0.9.2/src/cffi-sbcl.fasl written ; compilation finished in 0:00:00 ; compiling file "/Users/raffaelc/.sbcl/site/cffi_0.9.2/src/ package.lisp" (written 08 SEP 2006 04:56:43 PM): ; compiling (IN-PACKAGE #:CL-USER) ; compiling (DEFPACKAGE #:CFFI ...) ; /Users/raffaelc/.sbcl/site/cffi_0.9.2/src/package.fasl written ; compilation finished in 0:00:00 ; compiling file "/Users/raffaelc/.sbcl/site/cffi_0.9.2/src/ libraries.lisp" (written 08 SEP 2006 04:56:43 PM): ; compiling (IN-PACKAGE #:CFFI) ; compiling (DEFVAR *FOREIGN-LIBRARY-DIRECTORIES* ...) ; compiling (DEFVAR *DARWIN-FRAMEWORK-DIRECTORIES* ...) ; compiling (DEFUN MINI-EVAL ...) ; compiling (DEFUN FIND-FILE ...) ; compiling (DEFUN FIND-DARWIN-FRAMEWORK ...) ; compiling (DEFVAR *FOREIGN-LIBRARIES* ...) ; compiling (DEFUN GET-FOREIGN-LIBRARY ...) ; compiling (DEFUN (SETF GET-FOREIGN-LIBRARY) ...) ; compiling (DEFMACRO DEFINE-FOREIGN-LIBRARY ...) ; compiling (DEFUN CFFI-FEATURE-P ...) ; compiling (DEFINE-CONDITION LOAD-FOREIGN-LIBRARY-ERROR ...) ; compiling (DEFUN READ-NEW-VALUE ...) ; compiling (DEFUN HANDLE-LOAD-FOREIGN-LIBRARY-ERROR ...) ; compiling (DEFUN LOAD-DARWIN-FRAMEWORK ...) ; compiling (DEFUN LOAD-FOREIGN-LIBRARY-NAME ...) ; compiling (DEFUN TRY-FOREIGN-LIBRARY-ALTERNATIVES ...) ; compiling (DEFPARAMETER *CFFI-FEATURE-SUFFIX-MAP* ...) ; compiling (DEFUN DEFAULT-LIBRARY-SUFFIX ...) ; compiling (DEFUN LOAD-FOREIGN-LIBRARY ...) ; compiling (DEFMACRO USE-FOREIGN-LIBRARY ...) ; compiling (DEFUN CLOSE-FOREIGN-LIBRARY ...) ; /Users/raffaelc/.sbcl/site/cffi_0.9.2/src/libraries.fasl written ; compilation finished in 0:00:00 ; compiling file "/Users/raffaelc/.sbcl/site/cffi_0.9.2/src/early- types.lisp" (written 08 SEP 2006 04:56:43 PM): ; compiling (IN-PACKAGE #:CFFI) ; compiling (DEFVAR *FOREIGN-TYPES* ...) ; compiling (DEFUN FIND-TYPE ...) ; compiling (DEFUN FIND-TYPE-OR-LOSE ...) ; compiling (DEFUN NOTICE-FOREIGN-TYPE ...) ; compiling (DEFVAR *TYPE-PARSERS* ...) ; compiling (DEFUN FIND-TYPE-PARSER ...) ; compiling (DEFUN (SETF FIND-TYPE-PARSER) ...) ; compiling (DEFMACRO DEFINE-TYPE-SPEC-PARSER ...) ; compiling (DEFUN PARSE-TYPE ...) ; compiling (DEFGENERIC CANONICALIZE ...) ; compiling (DEFGENERIC AGGREGATEP ...) ; compiling (DEFGENERIC FOREIGN-TYPE-ALIGNMENT ...) ; compiling (DEFGENERIC FOREIGN-TYPE-SIZE ...) ; compiling (DEFGENERIC UNPARSE ...) ; compiling (DEFGENERIC TRANSLATE-P ...) ; compiling (DEFCLASS FOREIGN-TYPE ...) ; compiling (DEFMETHOD PRINT-OBJECT ...) ; compiling (DEFMETHOD MAKE-LOAD-FORM ...) ; compiling (DEFUN CANONICALIZE-FOREIGN-TYPE ...) ; compiling (DEFMETHOD UNPARSE ...) ; compiling (DEFUN UNPARSE-TYPE ...) ; compiling (DEFMETHOD FOREIGN-TYPE-SIZE ...) ; compiling (DEFMETHOD TRANSLATE-P ...) ; compiling (DEFCLASS FOREIGN-BUILT-IN-TYPE ...) ; compiling (DEFMETHOD CANONICALIZE ...) ; compiling (DEFMETHOD AGGREGATEP ...) ; compiling (DEFMETHOD FOREIGN-TYPE-ALIGNMENT ...) ; compiling (DEFMETHOD FOREIGN-TYPE-SIZE ...) ; compiling (DEFMETHOD TRANSLATE-P ...) ; compiling (DEFMACRO DEFINE-BUILT-IN-FOREIGN-TYPE ...) ; compiling (DEFCLASS FOREIGN-POINTER-TYPE ...) ; compiling (DEFMETHOD CANONICALIZE ...) ; compiling (DEFMETHOD AGGREGATEP ...) ; compiling (DEFMETHOD FOREIGN-TYPE-ALIGNMENT ...) ; compiling (DEFMETHOD FOREIGN-TYPE-SIZE ...) ; compiling (DEFMETHOD TRANSLATE-P ...) ; compiling (DEFMETHOD UNPARSE ...) ; compiling (DEFMETHOD PRINT-OBJECT ...) ; compiling (DEFCLASS FOREIGN-TYPE-ALIAS ...) ; compiling (DEFMETHOD CANONICALIZE ...) ; compiling (DEFMETHOD AGGREGATEP ...) ; compiling (DEFMETHOD FOREIGN-TYPE-ALIGNMENT ...) ; compiling (DEFMETHOD FOREIGN-TYPE-SIZE ...) ; compiling (DEFCLASS FOREIGN-TYPEDEF ...) ; compiling (DEFUN FOLLOW-TYPEDEFS ...) ; compiling (DEFCLASS FOREIGN-STRUCT-TYPE ...) ; compiling (DEFMETHOD CANONICALIZE ...) ; compiling (DEFMETHOD AGGREGATEP ...) ; compiling (DEFMETHOD FOREIGN-TYPE-SIZE ...) ; compiling (DEFMETHOD FOREIGN-TYPE-ALIGNMENT ...) ; compiling (DEFGENERIC TRANSLATE-TYPE-TO-FOREIGN ...) ; compiling (DEFGENERIC TRANSLATE-TYPE-FROM-FOREIGN ...) ; compiling (DEFGENERIC FREE-TYPE-TRANSLATED-OBJECT ...) ; compiling (DEFGENERIC TRANSLATE-TO-FOREIGN ...) ; compiling (DEFGENERIC TRANSLATE-FROM-FOREIGN ...) ; compiling (DEFGENERIC FREE-TRANSLATED-OBJECT ...) ; compiling (DEFMETHOD TRANSLATE-TYPE-TO-FOREIGN ...) ; compiling (DEFMETHOD TRANSLATE-TYPE-FROM-FOREIGN ...) ; compiling (DEFMETHOD FREE-TYPE-TRANSLATED-OBJECT ...) ; compiling (DEFUN %EXPAND-TYPE-TO-FOREIGN-DYN ...) ; compiling (DEFUN %EXPAND-TYPE-TO-FOREIGN ...) ; compiling (DEFUN %EXPAND-TYPE-FROM-FOREIGN ...) ; compiling (DEFVAR *RUNTIME-TRANSLATOR-FORM*) ; compiling (DEFUN SPECIALIZEDP ...) ; compiling (DEFGENERIC EXPAND-TYPE-TO-FOREIGN-DYN ...) ; compiling (DEFGENERIC EXPAND-TYPE-TO-FOREIGN ...) ; compiling (DEFGENERIC EXPAND-TYPE-FROM-FOREIGN ...) ; compiling (DEFGENERIC EXPAND-TO-FOREIGN-DYN ...) ; compiling (DEFGENERIC EXPAND-TO-FOREIGN ...) ; compiling (DEFGENERIC EXPAND-FROM-FOREIGN ...) ; compiling (DEFMETHOD EXPAND-TYPE-TO-FOREIGN-DYN ...) ; compiling (DEFMETHOD EXPAND-TYPE-TO-FOREIGN ...) ; compiling (DEFMETHOD EXPAND-TYPE-FROM-FOREIGN ...) ; compiling (DEFUN CONVERT-TO-FOREIGN ...) ; compiling (DEFINE-COMPILER-MACRO CONVERT-TO-FOREIGN ...) ; compiling (DEFUN CONVERT-FROM-FOREIGN ...) ; compiling (DEFINE-COMPILER-MACRO CONVERT-FROM-FOREIGN ...) ; compiling (DEFUN FREE-CONVERTED-OBJECT ...) ; /Users/raffaelc/.sbcl/site/cffi_0.9.2/src/early-types.fasl written ; compilation finished in 0:00:00 ; compiling file "/Users/raffaelc/.sbcl/site/cffi_0.9.2/src/ types.lisp" (written 08 SEP 2006 04:56:43 PM): ; compiling (IN-PACKAGE #:CFFI) ; compiling (DEFINE-BUILT-IN-FOREIGN-TYPE :CHAR) ; compiling (DEFINE-BUILT-IN-FOREIGN-TYPE :UNSIGNED-CHAR) ; compiling (DEFINE-BUILT-IN-FOREIGN-TYPE :SHORT) ; compiling (DEFINE-BUILT-IN-FOREIGN-TYPE :UNSIGNED-SHORT) ; compiling (DEFINE-BUILT-IN-FOREIGN-TYPE :INT) ; compiling (DEFINE-BUILT-IN-FOREIGN-TYPE :UNSIGNED-INT) ; compiling (DEFINE-BUILT-IN-FOREIGN-TYPE :LONG) ; compiling (DEFINE-BUILT-IN-FOREIGN-TYPE :UNSIGNED-LONG) ; compiling (DEFINE-BUILT-IN-FOREIGN-TYPE :FLOAT) ; compiling (DEFINE-BUILT-IN-FOREIGN-TYPE :DOUBLE) ; compiling (DEFINE-BUILT-IN-FOREIGN-TYPE :VOID) ; compiling (DEFINE-BUILT-IN-FOREIGN-TYPE :LONG-LONG) ; compiling (DEFINE-BUILT-IN-FOREIGN-TYPE :UNSIGNED-LONG-LONG) ; compiling (DEFINE-TYPE-SPEC-PARSER :POINTER ...) ; compiling (DEFINE-MODIFY-MACRO INCF-POINTER ...) ; compiling (DEFUN MEM-REF ...) ; compiling (DEFINE-COMPILER-MACRO MEM-REF ...) ; compiling (DEFUN MEM-SET ...) ; compiling (DEFINE-SETF-EXPANDER MEM-REF ...) ; compiling (DEFINE-COMPILER-MACRO MEM-SET ...) ; compiling (DEFUN MEM-AREF ...) ; compiling (DEFINE-COMPILER-MACRO MEM-AREF ...) ; compiling (DEFINE-SETF-EXPANDER MEM-AREF ...) ; compiling (DEFGENERIC FOREIGN-STRUCT-SLOT-POINTER ...) ; compiling (DEFGENERIC FOREIGN-STRUCT-SLOT-POINTER-FORM ...) ; compiling (DEFGENERIC FOREIGN-STRUCT-SLOT-VALUE ...) ; compiling (DEFGENERIC (SETF FOREIGN-STRUCT-SLOT-VALUE) ...) ; compiling (DEFGENERIC FOREIGN-STRUCT-SLOT-VALUE-FORM ...) ; compiling (DEFGENERIC FOREIGN-STRUCT-SLOT-SET-FORM ...) ; compiling (DEFCLASS FOREIGN-STRUCT-SLOT ...) ; compiling (DEFMETHOD FOREIGN-STRUCT-SLOT-POINTER ...) ; compiling (DEFMETHOD FOREIGN-STRUCT-SLOT-POINTER-FORM ...) ; compiling (DEFUN FOREIGN-SLOT-NAMES ...) ; compiling (DEFCLASS SIMPLE-STRUCT-SLOT ...) ; compiling (DEFMETHOD FOREIGN-STRUCT-SLOT-VALUE ...) ; compiling (DEFMETHOD FOREIGN-STRUCT-SLOT-VALUE-FORM ...) ; compiling (DEFMETHOD (SETF FOREIGN-STRUCT-SLOT-VALUE) ...) ; compiling (DEFMETHOD FOREIGN-STRUCT-SLOT-SET-FORM ...) ; compiling (DEFCLASS AGGREGATE-STRUCT-SLOT ...) ; compiling (DEFMETHOD FOREIGN-STRUCT-SLOT-VALUE ...) ; compiling (DEFMETHOD FOREIGN-STRUCT-SLOT-VALUE-FORM ...) ; compiling (DEFMETHOD (SETF FOREIGN-STRUCT-SLOT-VALUE) ...) ; compiling (DEFMETHOD FOREIGN-STRUCT-SLOT-SET-FORM ...) ; compiling (DEFUN MAKE-STRUCT-SLOT ...) ; compiling (DEFUN GET-ALIGNMENT ...) ; compiling (DEFUN ADJUST-FOR-ALIGNMENT ...) ; compiling (DEFUN NOTICE-FOREIGN-STRUCT-DEFINITION ...) ; compiling (DEFMACRO DEFCSTRUCT ...) ; compiling (DEFUN GET-SLOT-INFO ...) ; compiling (DEFUN FOREIGN-SLOT-POINTER ...) ; compiling (DEFUN FOREIGN-SLOT-OFFSET ...) ; compiling (DEFUN FOREIGN-SLOT-VALUE ...) ; compiling (DEFINE-COMPILER-MACRO FOREIGN-SLOT-VALUE ...) ; compiling (DEFINE-SETF-EXPANDER FOREIGN-SLOT-VALUE ...) ; compiling (DEFUN FOREIGN-SLOT-SET ...) ; compiling (DEFINE-COMPILER-MACRO FOREIGN-SLOT-SET ...) ; compiling (DEFMACRO WITH-FOREIGN-SLOTS ...) ; compiling (DEFUN NOTICE-FOREIGN-UNION-DEFINITION ...) ; compiling (DEFMACRO DEFCUNION ...) ; compiling (DEFMETHOD FOREIGN-TYPE-ALIGNMENT ...) ; compiling (DEFUN FOREIGN-ALLOC ...) ; compiling (DEFMACRO WITH-FOREIGN-OBJECT ...) ; compiling (DEFMACRO WITH-FOREIGN-OBJECTS ...) ; compiling (DEFMACRO DEFINE-FOREIGN-TYPE ...) ; compiling (DEFMACRO DEFCTYPE ...) ; compiling (DEFCLASS FOREIGN-TYPE-WRAPPER ...) ; compiling (DEFINE-TYPE-SPEC-PARSER :WRAPPER ...) ; compiling (DEFMETHOD UNPARSE ...) ; compiling (DEFMETHOD TRANSLATE-TYPE-TO-FOREIGN ...) ; compiling (DEFMETHOD TRANSLATE-TYPE-FROM-FOREIGN ...) ; compiling (DEFINE-FOREIGN-TYPE :BOOLEAN ...) ; compiling (DEFMETHOD UNPARSE ...) ; compiling (DEFMETHOD TRANSLATE-TO-FOREIGN ...) ; compiling (DEFMETHOD TRANSLATE-FROM-FOREIGN ...) ; compiling (DEFMETHOD EXPAND-TO-FOREIGN ...) ; compiling (DEFMETHOD EXPAND-FROM-FOREIGN ...) ; compiling (DEFCTYPE :UCHAR ...) ; compiling (DEFCTYPE :USHORT ...) ; compiling (DEFCTYPE :UINT ...) ; compiling (DEFCTYPE :ULONG ...) ; compiling (DEFCTYPE :LLONG ...) ; compiling (DEFCTYPE :ULLONG ...) ; compiling (LABELS (# # ...) ...) ; /Users/raffaelc/.sbcl/site/cffi_0.9.2/src/types.fasl written ; compilation finished in 0:00:00 ; compiling file "/Users/raffaelc/.sbcl/site/cffi_0.9.2/src/ enum.lisp" (written 08 SEP 2006 04:56:43 PM): ; compiling (IN-PACKAGE #:CFFI) ; compiling (DEFCLASS FOREIGN-ENUM ...) ; compiling (DEFUN MAKE-FOREIGN-ENUM ...) ; compiling (DEFMACRO DEFCENUM ...) ; compiling (DEFUN %FOREIGN-ENUM-VALUE ...) ; compiling (DEFUN FOREIGN-ENUM-VALUE ...) ; compiling (DEFUN %FOREIGN-ENUM-KEYWORD ...) ; compiling (DEFUN FOREIGN-ENUM-KEYWORD ...) ; compiling (DEFMETHOD TRANSLATE-TYPE-TO-FOREIGN ...) ; compiling (DEFMETHOD TRANSLATE-TYPE-FROM-FOREIGN ...) ; compiling (DEFCLASS FOREIGN-BITFIELD ...) ; compiling (DEFUN MAKE-FOREIGN-BITFIELD ...) ; compiling (DEFMACRO DEFBITFIELD ...) ; compiling (DEFUN %FOREIGN-BITFIELD-VALUE ...) ; compiling (DEFUN FOREIGN-BITFIELD-VALUE ...) ; compiling (DEFUN %FOREIGN-BITFIELD-SYMBOLS ...) ; compiling (DEFUN FOREIGN-BITFIELD-SYMBOLS ...) ; compiling (DEFMETHOD TRANSLATE-TYPE-TO-FOREIGN ...) ; compiling (DEFMETHOD TRANSLATE-TYPE-FROM-FOREIGN ...) ; /Users/raffaelc/.sbcl/site/cffi_0.9.2/src/enum.fasl written ; compilation finished in 0:00:00 ; compiling file "/Users/raffaelc/.sbcl/site/cffi_0.9.2/src/ strings.lisp" (written 08 SEP 2006 04:56:43 PM): ; compiling (IN-PACKAGE #:CFFI) ; compiling (DEFUN LISP-STRING-TO-FOREIGN ...) ; compiling (DEFUN FOREIGN-STRING-TO-LISP ...) ; compiling (DEFUN FOREIGN-STRING-ALLOC ...) ; compiling (DEFUN FOREIGN-STRING-FREE ...) ; compiling (DEFMACRO WITH-FOREIGN-STRING ...) ; compiling (DEFMACRO WITH-FOREIGN-POINTER-AS-STRING ...) ; compiling (DEFCTYPE :STRING ...) ; compiling (DEFMETHOD TRANSLATE-TO-FOREIGN ...) ; compiling (DEFMETHOD TRANSLATE-TO-FOREIGN ...) ; compiling (DEFMETHOD TRANSLATE-FROM-FOREIGN ...) ; compiling (DEFMETHOD FREE-TRANSLATED-OBJECT ...) ; compiling (DEFCTYPE :STRING+PTR ...) ; compiling (DEFMETHOD TRANSLATE-TO-FOREIGN ...) ; compiling (DEFMETHOD TRANSLATE-TO-FOREIGN ...) ; compiling (DEFMETHOD TRANSLATE-FROM-FOREIGN ...) ; compiling (DEFMETHOD FREE-TRANSLATED-OBJECT ...) ; /Users/raffaelc/.sbcl/site/cffi_0.9.2/src/strings.fasl written ; compilation finished in 0:00:00 ; compiling file "/Users/raffaelc/.sbcl/site/cffi_0.9.2/src/ functions.lisp" (written 08 SEP 2006 04:56:43 PM): ; compiling (IN-PACKAGE #:CFFI) ; compiling (DEFUN TRANSLATE-OBJECTS ...) ; compiling (DEFUN PARSE-ARGS-AND-TYPES ...) ; compiling (DEFMACRO FOREIGN-FUNCALL ...) ; compiling (DEFUN PROMOTE-VARARGS-TYPE ...) ; compiling (DEFMACRO FOREIGN-FUNCALL-VARARGS ...) ; compiling (DEFUN LISP-FUNCTION-NAME ...) ; compiling (DEFUN FOREIGN-FUNCTION-NAME ...) ; compiling (UNLESS (FBOUNDP #) ...) ; compiling (DEFUN %DEFCFUN ...) ; compiling (DEFUN %DEFCFUN-VARARGS ...) ; compiling (DEFMACRO DEFCFUN ...) ; compiling (DEFUN INVERSE-TRANSLATE-OBJECTS ...) ; compiling (DEFMACRO DEFCALLBACK ...) ; compiling (DECLAIM (INLINE GET-CALLBACK)) ; compiling (DEFUN GET-CALLBACK ...) ; compiling (DEFMACRO CALLBACK ...) ; /Users/raffaelc/.sbcl/site/cffi_0.9.2/src/functions.fasl written ; compilation finished in 0:00:00 ; compiling file "/Users/raffaelc/.sbcl/site/cffi_0.9.2/src/foreign- vars.lisp" (written 08 SEP 2006 04:56:43 PM): ; compiling (IN-PACKAGE #:CFFI) ; compiling (DEFUN LISP-VAR-NAME ...) ; compiling (DEFUN FOREIGN-VAR-NAME ...) ; compiling (DEFUN GET-VAR-POINTER ...) ; compiling (DEFUN FOREIGN-SYMBOL-POINTER-OR-LOSE ...) ; compiling (DEFMACRO DEFCVAR ...) ; /Users/raffaelc/.sbcl/site/cffi_0.9.2/src/foreign-vars.fasl written ; compilation finished in 0:00:00 ; compiling file "/Users/raffaelc/.sbcl/site/cl-objc-leopard/src/ packages.lisp" (written 20 MAY 2008 01:50:24 PM): ; compiling (IN-PACKAGE "CL-USER") ; compiling (DEFPACKAGE "CL-OBJC-UTILS" ...) ; compiling (DEFPACKAGE "OBJC-CFFI" ...) ; compiling (DEFPACKAGE "CL-OBJC" ...) ; compiling (DEFPACKAGE "OBJC-CLOS" ...) ; compiling (DEFPACKAGE "OBJC" ...) ; compiling (DEFPACKAGE "OBJC-TYPES" ...) ; compiling (DEFPACKAGE "OBJC-READER" ...) ; compiling (DEFPACKAGE "CL-OBJC-EXAMPLES" ...) ; compiling (DEFPACKAGE "CL-OBJC-USER" ...) ; /Users/raffaelc/.sbcl/site/cl-objc-leopard/src/packages.fasl written ; compilation finished in 0:00:00 ; compiling file "/Users/raffaelc/.sbcl/site/cl-objc-leopard/src/objc- types.lisp" (written 20 MAY 2008 01:50:24 PM): ; compiling (IN-PACKAGE "OBJC-TYPES") ; compiling (DEFVAR TYPEMAP ...) ; compiling (DEFUN CHAR-TO-TYPE ...) ; compiling (DEFVAR METHOD-CODE-MAP ...) ; compiling (DEFUN CHAR-TO-METHODCODE ...) ; compiling (DEFUN LEX-TYPESTR ...) ; compiling (DEFUN TYPESTR-LEXER ...) ; compiling (DEFUN READ-NUM ...) ; compiling (DEFUN READ-TYPE-NAME ...) ; compiling (DEFINE-PARSER *OBJC-TYPE-PARSER* ...) ; compiling (DEFUN PARSE-OBJC-TYPESTR ...) ; compiling (DEFUN OBJC-FOREIGN-TYPE-SIZE ...) ; compiling (DEFUN ENCODE-TYPES ...) ; compiling (DEFUN LOOKUP-TYPE-CHAR ...) ; compiling (DEFUN LOOKUP-METHOD-CHAR ...) ; compiling (DEFUN ENCODE-TYPE ...) ; /Users/raffaelc/.sbcl/site/cl-objc-leopard/src/objc-types.fasl written ; compilation finished in 0:00:00 ; compiling file "/Users/raffaelc/.sbcl/site/cl-objc-leopard/src/ utils.lisp" (written 20 MAY 2008 01:50:24 PM): ; compiling (IN-PACKAGE "CL-OBJC-UTILS") ; compiling (DEFMACRO WITH-GENSYMS ...) ; compiling (DEFUN INTERPOSE ...) ; compiling (DEFUN CFFI-TYPE-P ...) ; compiling (DEFUN SPLIT-STRING ...) ; compiling (DEFUN SIMPLE-REPLACE-STRING ...) ; compiling (DEFUN ENSURE-LIST ...) ; compiling (DEFUN LOOKUP-SAME-SYMBOL-NAME ...) ; compiling (DEFMACRO COMPOSITE-MAPCAR ...) ; compiling (DEFUN GENSYM-LIST ...) ; /Users/raffaelc/.sbcl/site/cl-objc-leopard/src/utils.fasl written ; compilation finished in 0:00:00 ; compiling file "/Users/raffaelc/.sbcl/site/cl-objc-leopard/src/ cffi.lisp" (written 20 MAY 2008 01:50:24 PM): ; compiling (IN-PACKAGE "OBJC-CFFI") ; compiling (PUSHNEW #P"/usr/lib/" ...) ; compiling (DEFINE-FOREIGN-LIBRARY LIBOBJC ...) ; compiling (USE-FOREIGN-LIBRARY LIBOBJC) ; compiling (DEFCLASS OBJC-SELECTOR ...) ; compiling (DEFMETHOD PRINT-OBJECT ...) ; compiling (DEFMETHOD DESCRIBE-OBJECT ...) ; compiling (DEFINE-FOREIGN-TYPE OBJC-SELECTOR-TYPE ...) ; compiling (DEFCFUN ("sel_isMapped" SEL-IS-MAPPED) ...) ; file: /Users/raffaelc/.sbcl/site/cl-objc-leopard/src/cffi.lisp ; in: DEFCFUN ("sel_isMapped" SEL-IS-MAPPED) ; (CFFI:DEFCFUN ("sel_isMapped" OBJC-CFFI:SEL-IS-MAPPED) :BOOLEAN ; "Returns true if a selector is registered in the ObjC runtime." ; (OBJC-CFFI::SEL OBJC-CFFI:OBJC-SEL)) ; ; caught ERROR: ; (during macroexpansion of (DEFCFUN ("sel_isMapped" SEL-IS- MAPPED) ...)) ; Unknown CFFI type: OBJC-SEL. ; compiling (DEFCFUN ("sel_getName" SEL-GET-NAME) ...) ; file: /Users/raffaelc/.sbcl/site/cl-objc-leopard/src/cffi.lisp ; in: DEFCFUN ("sel_getName" SEL-GET-NAME) ; (CFFI:DEFCFUN ("sel_getName" OBJC-CFFI::SEL-GET-NAME) :STRING ; (OBJC-CFFI::SEL OBJC-CFFI:OBJC-SEL)) ; ; caught ERROR: ; (during macroexpansion of (DEFCFUN ("sel_getName" SEL-GET- NAME) ...)) ; Unknown CFFI type: OBJC-SEL. ; compiling (DEFCFUN ("sel_registerName" SEL-REGISTER-NAME) ...) ; file: /Users/raffaelc/.sbcl/site/cl-objc-leopard/src/cffi.lisp ; in: DEFCFUN ("sel_registerName" SEL-REGISTER-NAME) ; (CFFI:DEFCFUN ("sel_registerName" OBJC-CFFI::SEL-REGISTER-NAME) ; OBJC-CFFI:OBJC-SEL (OBJC-CFFI::STR :STRING)) ; ; caught ERROR: ; (during macroexpansion of (DEFCFUN ("sel_registerName" SEL- REGISTER-NAME) ...)) ; Unknown CFFI type: OBJC-SEL. ; compiling (DEFCFUN ("sel_getUid" SEL-GET-UID) ...) ; file: /Users/raffaelc/.sbcl/site/cl-objc-leopard/src/cffi.lisp ; in: DEFCFUN ("sel_getUid" SEL-GET-UID) ; (CFFI:DEFCFUN ("sel_getUid" OBJC-CFFI:SEL-GET-UID) OBJC- CFFI:OBJC-SEL ; "Returns the selector named NAME." (OBJC- CFFI::STR :STRING)) ; ; caught ERROR: ; (during macroexpansion of (DEFCFUN ("sel_getUid" SEL-GET-UID) ...)) ; Unknown CFFI type: OBJC-SEL. ; compiling (DEFMETHOD TRANSLATE-FROM-FOREIGN ...) ; file: /Users/raffaelc/.sbcl/site/cl-objc-leopard/src/cffi.lisp ; in: DEFMETHOD TRANSLATE-FROM-FOREIGN (T OBJC-SELECTOR-TYPE) ; (DEFMETHOD CFFI:TRANSLATE-FROM-FOREIGN ; (OBJC-CFFI::UID (TYPE OBJC-CFFI::OBJC-SELECTOR-TYPE)) ; (MAKE-INSTANCE 'OBJC-CFFI:OBJC-SELECTOR :NAME ; (OBJC-CFFI::SEL-GET-NAME OBJC- CFFI::UID) :UID ; OBJC-CFFI::UID)) ; --> PROGN EVAL-WHEN ; ==> ; (SB-PCL::%DEFMETHOD-EXPANDER CFFI:TRANSLATE-FROM-FOREIGN NIL ; (OBJC-CFFI::UID ; (TYPE OBJC-CFFI::OBJC-SELECTOR-TYPE)) ; ((MAKE-INSTANCE 'OBJC-CFFI:OBJC- SELECTOR :NAME ; (OBJC-CFFI::SEL-GET- NAME ; OBJC-CFFI::UID) ; :UID OBJC-CFFI::UID))) ; ; caught STYLE-WARNING: ; can't find type for specializer OBJC-SELECTOR-TYPE in ; SB-PCL::PARAMETER-SPECIALIZER-DECLARATION-IN-DEFMETHOD. ; compiling (DEFMETHOD TRANSLATE-TO-FOREIGN ...) ; file: /Users/raffaelc/.sbcl/site/cl-objc-leopard/src/cffi.lisp ; in: DEFMETHOD TRANSLATE-TO-FOREIGN (OBJC-SELECTOR OBJC-SELECTOR-TYPE) ; (DEFMETHOD CFFI:TRANSLATE-TO-FOREIGN ; ((OBJC-CFFI::SEL OBJC-CFFI:OBJC-SELECTOR) ; (TYPE OBJC-CFFI::OBJC-SELECTOR-TYPE)) ; (SLOT-VALUE OBJC-CFFI::SEL 'OBJC-CFFI::UID)) ; --> PROGN EVAL-WHEN ; ==> ; (SB-PCL::%DEFMETHOD-EXPANDER CFFI:TRANSLATE-TO-FOREIGN NIL ; ((OBJC-CFFI::SEL OBJC-CFFI:OBJC- SELECTOR) ; (TYPE OBJC-CFFI::OBJC-SELECTOR-TYPE)) ; ((SLOT-VALUE OBJC-CFFI::SEL 'OBJC- CFFI::UID))) ; ; caught STYLE-WARNING: ; can't find type for specializer OBJC-SELECTOR-TYPE in ; SB-PCL::PARAMETER-SPECIALIZER-DECLARATION-IN-DEFMETHOD. ; compiling (DEFMETHOD TRANSLATE-TO-FOREIGN ...) ; file: /Users/raffaelc/.sbcl/site/cl-objc-leopard/src/cffi.lisp ; in: DEFMETHOD TRANSLATE-TO-FOREIGN (STRING OBJC-SELECTOR-TYPE) ; (DEFMETHOD CFFI:TRANSLATE-TO-FOREIGN ; ((OBJC-CFFI::NAME STRING) (TYPE OBJC-CFFI::OBJC- SELECTOR-TYPE)) ; (SLOT-VALUE (OBJC-CFFI::SEL-REGISTER-NAME OBJC- CFFI::NAME) ; 'OBJC-CFFI::UID)) ; --> PROGN EVAL-WHEN ; ==> ; (SB-PCL::%DEFMETHOD-EXPANDER CFFI:TRANSLATE-TO-FOREIGN NIL ; ((OBJC-CFFI::NAME STRING) ; (TYPE OBJC-CFFI::OBJC-SELECTOR-TYPE)) ; ((SLOT-VALUE ; (OBJC-CFFI::SEL-REGISTER-NAME OBJC- CFFI::NAME) ; 'OBJC-CFFI::UID))) ; ; caught STYLE-WARNING: ; can't find type for specializer OBJC-SELECTOR-TYPE in ; SB-PCL::PARAMETER-SPECIALIZER-DECLARATION-IN-DEFMETHOD. ; compiling (DEFMETHOD TRANSLATE-TO-FOREIGN ...) ; file: /Users/raffaelc/.sbcl/site/cl-objc-leopard/src/cffi.lisp ; in: DEFMETHOD TRANSLATE-TO-FOREIGN (T OBJC-SELECTOR-TYPE) ; (DEFMETHOD CFFI:TRANSLATE-TO-FOREIGN ; (OBJC-CFFI::SEL (TYPE OBJC-CFFI::OBJC-SELECTOR-TYPE)) ; OBJC-CFFI::SEL) ; --> PROGN EVAL-WHEN ; ==> ; (SB-PCL::%DEFMETHOD-EXPANDER CFFI:TRANSLATE-TO-FOREIGN NIL ; (OBJC-CFFI::SEL ; (TYPE OBJC-CFFI::OBJC-SELECTOR-TYPE)) ; (OBJC-CFFI::SEL)) ; ; caught STYLE-WARNING: ; can't find type for specializer OBJC-SELECTOR-TYPE in ; SB-PCL::PARAMETER-SPECIALIZER-DECLARATION-IN-DEFMETHOD. ; compiling (DEFCLASS OBJC-METHOD ...) ; compiling (DEFMETHOD PRINT-OBJECT ...) ; compiling (DEFMETHOD DESCRIBE-OBJECT ...) ; compiling (DEFINE-FOREIGN-TYPE OBJC-IMP-TYPE ...) ; compiling (DEFCSTRUCT OBJC-METHOD-CSTRUCT ...) Unknown CFFI type: OBJC-CFFI:OBJC-SEL. [Condition of type SIMPLE-ERROR] Restarts: 0: [RETRY] Retry performing # on #. 1: [ACCEPT] Continue, treating # on # as having been successful. 2: [ABORT-REQUEST] Abort handling SLIME request. 3: [ABORT] Exit debugger, returning to top level. Backtrace: 0: (CFFI::PARSE-TYPE OBJC-CFFI:OBJC-SEL) 1: (CFFI::CANONICALIZE-FOREIGN-TYPE OBJC-CFFI:OBJC-SEL) 2: (CFFI::NOTICE-FOREIGN-STRUCT-DEFINITION OBJC-CFFI::OBJC-METHOD- CSTRUCT ((OBJC-CFFI::METHOD_NAME OBJC-CFFI:OBJC-SEL) (OBJC- CFFI::METHOD_TYPES :STRING) (OBJC-CFFI::METHOD_IMP OBJC-CFFI::OBJC-IMP- POINTER))) 3: (SB-INT:SIMPLE-EVAL-IN-LEXENV (CFFI::NOTICE-FOREIGN-STRUCT- DEFINITION (QUOTE OBJC-CFFI::OBJC-METHOD-CSTRUCT) (QUOTE (# # #))) #) 4: ((FLET SB-C::DEFAULT-PROCESSOR) (CFFI::NOTICE-FOREIGN-STRUCT- DEFINITION (QUOTE OBJC-CFFI::OBJC-METHOD-CSTRUCT) (QUOTE (# # #)))) 5: (SB-C::PROCESS-TOPLEVEL-FORM (CFFI::NOTICE-FOREIGN-STRUCT- DEFINITION (QUOTE OBJC-CFFI::OBJC-METHOD-CSTRUCT) (QUOTE (# # #))) ((EVAL-WHEN (:COMPILE-TOPLEVEL :LOAD-TOPLEVEL :EXECUTE) (CFFI::NOTICE- FOREIGN-STRUCT-DEFINITION # #)) SB-C::ORIGINAL-SOURCE-START 0 20) (:COMPILE-TOPLEVEL)) 6: (SB-C::PROCESS-TOPLEVEL-PROGN ((CFFI::NOTICE-FOREIGN-STRUCT- DEFINITION (QUOTE OBJC-CFFI::OBJC-METHOD-CSTRUCT) (QUOTE #))) ((EVAL- WHEN (:COMPILE-TOPLEVEL :LOAD-TOPLEVEL :EXECUTE) (CFFI::NOTICE-FOREIGN- STRUCT-DEFINITION # #)) SB-C::ORIGINAL-SOURCE-START 0 20) (:COMPILE- TOPLEVEL)) 7: (SB-C::PROCESS-TOPLEVEL-FORM (EVAL-WHEN (:COMPILE-TOPLEVEL :LOAD- TOPLEVEL :EXECUTE) (CFFI::NOTICE-FOREIGN-STRUCT-DEFINITION (QUOTE OBJC- CFFI::OBJC-METHOD-CSTRUCT) (QUOTE #))) (SB-C::ORIGINAL-SOURCE-START 0 20) NIL) 8: ((FLET SB-C::DEFAULT-PROCESSOR) (CFFI:DEFCSTRUCT OBJC-CFFI::OBJC- METHOD-CSTRUCT (OBJC-CFFI::METHOD_NAME OBJC-CFFI:OBJC-SEL) (OBJC- CFFI::METHOD_TYPES :STRING) (OBJC-CFFI::METHOD_IMP OBJC-CFFI::OBJC-IMP- POINTER))) 9: (SB-C::PROCESS-TOPLEVEL-FORM (CFFI:DEFCSTRUCT OBJC-CFFI::OBJC- METHOD-CSTRUCT (OBJC-CFFI::METHOD_NAME OBJC-CFFI:OBJC-SEL) (OBJC- CFFI::METHOD_TYPES :STRING) (OBJC-CFFI::METHOD_IMP OBJC-CFFI::OBJC-IMP- POINTER)) (SB-C::ORIGINAL-SOURCE-START 0 20) NIL) 10: (SB-C::SUB-SUB-COMPILE-FILE #) 11: ((LAMBDA NIL)) 12: (SB-C::%WITH-COMPILATION-UNIT #) 13: (SB-C::SUB-COMPILE-FILE #) 14: (COMPILE-FILE #P"/Users/raffaelc/.sbcl/site/cl-objc-leopard/src/ cffi.lisp") 15: ((SB-PCL::FAST-METHOD ASDF:PERFORM (ASDF:COMPILE-OP ASDF:CL- SOURCE-FILE)) # # # #) 16: ((LAMBDA (SB-PCL::.PV. SB-PCL::.NEXT-METHOD-CALL. SB-PCL::.ARG0. SB-PCL::.ARG1.)) # # # #) 17: ((LAMBDA NIL)) 18: ((FLET SB-THREAD::WITH-RECURSIVE-LOCK-THUNK)) 19: (SB-C::%WITH-COMPILATION-UNIT #) 20: (ASDF:OPERATE ASDF:LOAD-OP :CL-OBJC) 21: (SB-INT:SIMPLE-EVAL-IN-LEXENV (ASDF:OOS (QUOTE ASDF:LOAD-OP) :CL- OBJC) #) 22: (SWANK::EVAL-REGION "(asdf:oos 'asdf:load-op :cl-objc) " T) 23: ((LAMBDA NIL)) 24: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-SYNTAX-HOOKS (T)) # # #) 25: (SWANK::CALL-WITH-BUFFER-SYNTAX #) 26: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK:LISTENER-EVAL "(asdf:oos 'asdf:load-op :cl-objc) ") #) 27: ((LAMBDA NIL)) 28: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T T)) # # # #) 29: ((LAMBDA NIL)) 30: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T T)) # # # #) 31: (SWANK::CALL-WITH-REDIRECTED-IO # #) 32: (SWANK::CALL-WITH-CONNECTION # #) 33: (SWANK::HANDLE-REQUEST #) 34: (SWANK::PROCESS-AVAILABLE-INPUT # #) 35: ((FLET SWANK::HANDLER)) 36: ((LAMBDA (SWANK-BACKEND::_)) #) 37: (SB-IMPL::SUB-SERVE-EVENT NIL NIL NIL) 38: (SB-SYS:WAIT-UNTIL-FD-USABLE 0 :INPUT NIL) 39: (SB-IMPL::REFILL-INPUT-BUFFER #) 40: (SB-IMPL::INPUT-CHAR/UTF-8 # NIL #:EOF-OBJECT) 41: (READ-CHAR # NIL #:EOF-OBJECT #) 42: (READ-CHAR # NIL #:EOF-OBJECT #) 43: (READ-CHAR # NIL #:EOF-OBJECT #) 44: (READ-PRESERVING-WHITESPACE # NIL (NIL) T) 45: (READ-PRESERVING-WHITESPACE # NIL (NIL) NIL) 46: (READ # NIL (NIL) NIL) 47: (SB-IMPL::REPL-READ-FORM-FUN # #) 48: (SB-IMPL::REPL-FUN NIL) 49: (SB-IMPL::REPL-FUN NIL) 50: ((LAMBDA NIL)) 51: ((LAMBDA NIL)) 52: (SB-IMPL::%WITH-REBOUND-IO-SYNTAX #) 53: (SB-IMPL::TOPLEVEL-REPL NIL) 54: (SB-IMPL::TOPLEVEL-INIT) 55: ((LABELS SB-IMPL::RESTART-LISP)) regards, Ralph Raffael Cavallaro, Ph.D. raffaelcavallaro at mac.com From raffaelcavallaro at mac.com Tue May 20 20:00:26 2008 From: raffaelcavallaro at mac.com (Raffael Cavallaro) Date: Tue, 20 May 2008 16:00:26 -0400 Subject: [cl-objc-devel] Re: Unknown CFFI type: OBJC-CFFI:OBJC-SEL. In-Reply-To: <4e3cf5960805201253m100b17d8h47d3b855c80c41f5@mail.gmail.com> References: <4e3cf5960805201209k3e549d7cle513cd1240fb9ddb@mail.gmail.com> <85E5AB35-01E4-4A05-B4D3-BD147ED50448@mac.com> <4e3cf5960805201253m100b17d8h47d3b855c80c41f5@mail.gmail.com> Message-ID: <6246155E-3F1E-4B8B-9B62-70B42D957748@mac.com> On May 20, 2008, at 3:53 PM, Jean-Philippe Barette-LaPierre wrote: > I wouldn't even try to build it from that version. You should use > the latest darcs version, it should get > rid of many problems. Ahh, good to know, thanks. regards, Ralph Raffael Cavallaro, Ph.D. raffaelcavallaro at mac.com From matley at muppetslab.org Wed May 21 09:34:35 2008 From: matley at muppetslab.org (Luigi Panzeri) Date: Wed, 21 May 2008 11:34:35 +0200 Subject: [cl-objc-devel] Re: Unknown CFFI type: OBJC-CFFI:OBJC-SEL. In-Reply-To: <85E5AB35-01E4-4A05-B4D3-BD147ED50448@mac.com> (Raffael Cavallaro's message of "Tue\, 20 May 2008 15\:41\:14 -0400") References: <4e3cf5960805201209k3e549d7cle513cd1240fb9ddb@mail.gmail.com> <85E5AB35-01E4-4A05-B4D3-BD147ED50448@mac.com> Message-ID: Raffael Cavallaro writes: > >> Which version of CFFI are you using? > > 0.9.2 from asdf-install > Try using the darcs version of CFFI. From matley at muppetslab.org Wed May 21 10:54:57 2008 From: matley at muppetslab.org (Luigi Panzeri) Date: Wed, 21 May 2008 12:54:57 +0200 Subject: [cl-objc-devel] info.plist loading In-Reply-To: <4e3cf5960805200949m3695ea74j3e5cbba45ab0a7d8@mail.gmail.com> (Jean-Philippe Barette-LaPierre's message of "Tue\, 20 May 2008 12\:49\:04 -0400") References: <4e3cf5960805200949m3695ea74j3e5cbba45ab0a7d8@mail.gmail.com> Message-ID: "Jean-Philippe Barette-LaPierre" writes: > I got a project which is set quite like the converter example. However I got > a problem with the info.plist file; it seems it's not loaded. Is there any > magic to do, or it should be loaded automatically? The project is to use the It is loaded automatically (when you load the bundle), provided that it is in the correct location. If info.plist is not loaded the application will not start. > Graphviz Cocoa application and use a lisp backend in order to do add some > graph manipulation. What I did is replace the Graphviz executable by a > script which is quite like the converter script. Everything loads perfectly > (thanks to the CONTEXT variable), except the info.plist. The symptom is that > when I try to load a .dot it says: > > The document "test.dot" could not be opened. Graphviz cannot open files in > the "Graphviz graph" format. > the info.plist declarations are correct. If I understood correctly you are trying to build a document based application where you will to be able to load and manage .dot file. You should look at the Sketch example (it is a document-based cocoa app) to try to understand how to subclass correctly your document class and your documentcontroller class. Look also at the doc (of course): http://developer.apple.com/documentation/Cocoa/Conceptual/Documents/Documents.html > > I wanted to strace the process, but I don't know what's the equivalent on > MacOS X. I'll look on google. > At this stage, the log files (Console app is your friend) can help you -- Luigi Panzeri aka Matley Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film Quotes on Lisp: http://lispers.org/ From raffaelcavallaro at mac.com Wed May 21 14:10:17 2008 From: raffaelcavallaro at mac.com (Raffael Cavallaro) Date: Wed, 21 May 2008 10:10:17 -0400 Subject: [cl-objc-devel] Re: Unknown CFFI type: OBJC-CFFI:OBJC-SEL. In-Reply-To: References: <4e3cf5960805201209k3e549d7cle513cd1240fb9ddb@mail.gmail.com> <85E5AB35-01E4-4A05-B4D3-BD147ED50448@mac.com> Message-ID: <5577410B-CBC2-4745-B003-A4DA51F998D5@mac.com> On May 21, 2008, at 5:34 AM, Luigi Panzeri wrote: > Try using the darcs version of CFFI. Yes, this did the trick regards, Ralph Raffael Cavallaro, Ph.D. raffaelcavallaro at mac.com