Skip to content

Instantly share code, notes, and snippets.

@jmercouris
Last active June 7, 2019 14:19
Show Gist options
  • Save jmercouris/a13a7a477a3bc2db13d0a74a672ab3b0 to your computer and use it in GitHub Desktop.
Save jmercouris/a13a7a477a3bc2db13d0a74a672ab3b0 to your computer and use it in GitHub Desktop.
--------------------------------------------------------------------------------------------------------
Contents of /opt/local/lib
> ls -la libfix*
-rwxr-xr-x 1 root admin 31212 Jun 7 16:06 libfixposix.3.dylib
lrwxr-xr-x 1 root admin 19 Jun 7 16:06 libfixposix.dylib -> libfixposix.3.dylib
--------------------------------------------------------------------------------------------------------
CL-USER> cffi:*foreign-library-directories*
("/opt/local/lib" (CFFI::EXPLODE-PATH-ENVIRONMENT-VARIABLE "LD_LIBRARY_PATH") (CFFI::EXPLODE-PATH-ENVIRONMENT-VARIABLE "DYLD_LIBRARY_PATH") (UIOP/OS:GETCWD) (CFFI::DARWIN-FALLBACK-LIBRARY-PATH))
Unable to load foreign library (LIBFIXPOSIX).
Error opening shared object "libfixposix.dylib":
dlopen(libfixposix.dylib, 10): image not found.
[Condition of type CFFI:LOAD-FOREIGN-LIBRARY-ERROR]
Restarts:
0: [RETRY] Try loading the foreign library again.
1: [USE-VALUE] Use another library instead.
2: [RETRY] Retry compiling #<CL-SOURCE-FILE "iolib/syscalls" "ffi-functions">.
3: [ACCEPT] Continue, treating compiling #<CL-SOURCE-FILE "iolib/syscalls" "ffi-functions"> as having been successful.
4: [RETRY] Retry ASDF operation.
5: [CLEAR-CONFIGURATION-AND-RETRY] Retry ASDF operation after resetting the configuration.
--more--
Backtrace:
0: (CFFI::FL-ERROR "Unable to load foreign library (~A).~% ~A" IOLIB/SYSCALLS::LIBFIXPOSIX "Error opening shared object \"libfixposix.dylib\": ..)
1: (CFFI::REPORT-SIMPLE-ERROR IOLIB/SYSCALLS::LIBFIXPOSIX #<SIMPLE-ERROR "Error opening ~:[runtime~;shared object ~:*~S~]: ..)
2: ((FLET "FUN1" :IN CFFI::LOAD-FOREIGN-LIBRARY-PATH) #<SIMPLE-ERROR "Error opening ~:[runtime~;shared object ~:*~S~]: ..)
3: (CFFI::LOAD-FOREIGN-LIBRARY-PATH IOLIB/SYSCALLS::LIBFIXPOSIX "libfixposix.dylib" NIL)
4: (CFFI::LOAD-FOREIGN-LIBRARY-HELPER IOLIB/SYSCALLS::LIBFIXPOSIX (:DEFAULT "libfixposix") NIL)
5: ((FLET CFFI::%DO-LOAD :IN CFFI::%DO-LOAD-FOREIGN-LIBRARY) #<CFFI:FOREIGN-LIBRARY LIBFIXPOSIX> IOLIB/SYSCALLS::LIBFIXPOSIX (:DEFAULT "libfixposix"))
6: (CFFI::%DO-LOAD-FOREIGN-LIBRARY IOLIB/SYSCALLS::LIBFIXPOSIX NIL)
7: (CFFI:LOAD-FOREIGN-LIBRARY IOLIB/SYSCALLS::LIBFIXPOSIX :SEARCH-PATH NIL)
8: (SB-INT:SIMPLE-EVAL-IN-LEXENV (CFFI:LOAD-FOREIGN-LIBRARY (QUOTE IOLIB/SYSCALLS::LIBFIXPOSIX)) #<NULL-LEXENV>)
9: (SB-INT:SIMPLE-EVAL-IN-LEXENV (PROGN (CFFI:LOAD-FOREIGN-LIBRARY (QUOTE IOLIB/SYSCALLS::LIBFIXPOSIX))) #<NULL-LEXENV>)
10: (EVAL-TLF (PROGN (CFFI:LOAD-FOREIGN-LIBRARY (QUOTE IOLIB/SYSCALLS::LIBFIXPOSIX))) 2 #<NULL-LEXENV>)
11: ((FLET SB-C::FROB :IN SB-C::EVAL-COMPILE-TOPLEVEL))
12: (SB-C::EVAL-COMPILE-TOPLEVEL ((CFFI:LOAD-FOREIGN-LIBRARY (QUOTE IOLIB/SYSCALLS::LIBFIXPOSIX))) ((CFFI:LOAD-FOREIGN-LIBRARY (QUOTE IOLIB/SYSCALLS::LIBFIXPOSIX)) SB-C::ORIGINAL-SOURCE-START 5 3 2))
13: ((FLET SB-C::DEFAULT-PROCESSOR :IN SB-C::PROCESS-TOPLEVEL-FORM) (CFFI:LOAD-FOREIGN-LIBRARY (QUOTE IOLIB/SYSCALLS::LIBFIXPOSIX)))
14: (SB-C::PROCESS-TOPLEVEL-FORM (CFFI:LOAD-FOREIGN-LIBRARY (QUOTE IOLIB/SYSCALLS::LIBFIXPOSIX)) (SB-C::ORIGINAL-SOURCE-START 5 3 2) (:COMPILE-TOPLEVEL))
15: ((FLET SB-C::DEFAULT-PROCESSOR :IN SB-C::PROCESS-TOPLEVEL-FORM) (CFFI:USE-FOREIGN-LIBRARY IOLIB/SYSCALLS::LIBFIXPOSIX))
16: (SB-C::PROCESS-TOPLEVEL-FORM (CFFI:USE-FOREIGN-LIBRARY IOLIB/SYSCALLS::LIBFIXPOSIX) (SB-C::ORIGINAL-SOURCE-START 0 2) (:COMPILE-TOPLEVEL))
17: (SB-C::PROCESS-TOPLEVEL-PROGN ((CFFI:DEFINE-FOREIGN-LIBRARY IOLIB/SYSCALLS::LIBFIXPOSIX (T #)) (CFFI:USE-FOREIGN-LIBRARY IOLIB/SYSCALLS::LIBFIXPOSIX)) (SB-C::ORIGINAL-SOURCE-START 0 2) (:COMPILE-TOPLE..
18: (SB-C::PROCESS-TOPLEVEL-FORM (EVAL-WHEN (:COMPILE-TOPLEVEL :LOAD-TOPLEVEL :EXECUTE) (CFFI:DEFINE-FOREIGN-LIBRARY IOLIB/SYSCALLS::LIBFIXPOSIX (T #)) (CFFI:USE-FOREIGN-LIBRARY IOLIB/SYSCALLS::LIBFIXPOSI..
19: ((LAMBDA (SB-KERNEL:FORM &KEY :CURRENT-INDEX &ALLOW-OTHER-KEYS) :IN SB-C::SUB-SUB-COMPILE-FILE) (EVAL-WHEN (:COMPILE-TOPLEVEL :LOAD-TOPLEVEL :EXECUTE) (CFFI:DEFINE-FOREIGN-LIBRARY IOLIB/SYSCALLS::LIBF..
--more--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment