ctypes
とを使用する最近のアプリケーションをコンパイルしようとしていますがsqlexpr
、シンボルが解決されないという問題があります。OPAM から ctypes と sqlexpr をビルドし、libffi
brew のバージョンを更新しましたが、正しいライブラリ リンケージを取得できない理由がわかりません。推測してみたい人はいますか?(私はすでにこれに対する私の典型的な修正を試みました。これは に渡すことですCFLAGS="-arch i386"
)
Undefined symbols for architecture x86_64:
"_ffi_closure_alloc", referenced from:
_ctypes_make_function_pointer in libctypes-foreign-base_stubs.a(ffi_call_stubs.o)
"_ffi_prep_closure_loc", referenced from:
_ctypes_make_function_pointer in libctypes-foreign-base_stubs.a(ffi_call_stubs.o)
"_sqlite3_enable_load_extension", referenced from:
_caml_sqlite3_enable_load_extension in libsqlite3_stubs.a(sqlite3_stubs.o)
(maybe you meant: _caml_sqlite3_enable_load_extension)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
File "_none_", line 1:
Error: Error while building custom runtime system
Command exited with code 2.
Compilation unsuccessful after building 41 targets (40 cached) in 00:00:00.
make: *** [all] Error 10