LOAD-FOREIGN-LIBRARY on defined libraries obfuscates errors

Bug #661117 reported by Nikodemus Siivola
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
CFFI
New
Undecided
Unassigned

Bug Description

Lispbuilder-sdl includes a "cocoahelper" library:

(define-foreign-library cocoahelper
  (:darwin (:or (:framework "cocoahelper")
                (:default "cocoahelper"))))

Trying to (load-foreign-library 'cocoahelper) causes the error:

Unable to load any of the alternatives:
   ((:FRAMEWORK "cocoahelper") (:DEFAULT "cocoahelper"))
   [Condition of type CFFI:LOAD-FOREIGN-LIBRARY-ERROR]

which doesn't exactly help in trying to figure out what is going from. The underlying implementation in this case reported the overly verbose -- but more useful -- error:

Error opening shared object "/Users/nikodemus/quicklisp/dists/quicklisp/softwar...":
  dlopen(/Users/nikodemus/quicklisp/dists/quicklisp/software/lispbuilder-20101006-svn/lispbuilder-sdl/cocoahelper/cocoahelper.dylib, 10): no suitable image found. Did find:
 /Users/nikodemus/quicklisp/dists/quicklisp/software/lispbuilder-20101006-svn/lispbuilder-sdl/cocoahelper/cocoahelper.dylib: mach-o, but wrong architecture.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.