Install CLSQL on Mac OS X

I have SBCL installed (via macports / darwinports) on my Intel Core 2 Duo Macbook with 10.5.8. I installed several such libraries:

(require 'asdf)
(require 'asdf-install)
(asdf-install:install 'cl-who)

But when I tried to install CLSQL this way ( 'clsql) after loading it, I got the following:

...
; registering #<SYSTEM CLSQL-UFFI {123D9E01}> as CLSQL-UFFI
; $ cd /Users/ken/.sbcl/site/clsql-5.0.5/uffi/; make
cc -arch x86_64 -arch i386 -bundle /usr/lib/bundle1.o -flat_namespace -undefined suppress clsql_uffi.c -o clsql_uffi.dylib
ld: duplicate symbol dyld_stub_binding_helper in /usr/lib/bundle1.o and /usr/lib/bundle1.o for architecture i386
ld: duplicate symbol dyld_stub_binding_helper in /usr/lib/bundle1.o and /usr/lib/bundle1.o for architecture x86_64
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/Nf/Nf4o5ArDFaWBH2OwtnWM3E+++TQ/-Tmp-//ccJyZxou.out (No such file or directory)
make: *** [clsql_uffi.so] Error 1

Is there something I forgot, or some kind of trick to make it work on Mac OS X? These days, I know little about C libraries on Mac, so I don’t even know where to start.

Thank!

+5
source share
3 answers

Perhaps it would be much easier to use the Quicklisp insteak for bare ASDF. Take a look at https://www.quicklisp.org/beta/

+2

, ?

0

Progress: Inspired by this Asterisk bug report ("Including bundle1.o breaks Tiger and Leopard"), I removed and reinstalled -bundle /usr/lib/bundle1.ofrom all 4 places ~/.sbcl/site/clsql-5.1.1/uffi/Makefileand it became even before death.

Now I see:

debugger invoked on a SIMPLE-ERROR in thread #<THREAD "initial thread" RUNNING {1193E621}>:
  Couldn't load foreign library "clsql_uffi". (searched CLSQL-SYS:*FOREIGN-LIBRARY-SEARCH-PATHS*)

This is rather strange since:

  • clsql-sys:*foreign-library-search-paths* (#P"/Users/ken/.sbcl/site/clsql-5.1.1/uffi/")

  • clsql-uffi-loader.lisptries everything (uffi:foreign-library-types)that("dylib" "bundle")

  • there is a file ~/.sbcl/site/clsql-5.1.1/uffi/clsql_uffi.dylibcreated by make file

Ideas?

0
source

All Articles