smondet / trakeva

Transactions, Keys, and Values
http://www.hammerlab.org/docs/trakeva/master/index.html
24 stars 3 forks source link

OS X build error #16

Closed dsheets closed 9 years ago

dsheets commented 9 years ago

https://travis-ci.org/ocaml/opam-repository/jobs/69730250#L3665

#=== ERROR while compiling trakeva.0.0.0 ======================================#
# opam-version 1.3.0~dev (74ea802a3f776b2c4e47894fd986760be70e8c97)
# os           darwin
# command      ocaml setup.ml -build
# path         /Users/travis/.opam/system/build/trakeva.0.0.0
# exit-code    1
# env-file     /Users/travis/.opam/system/build/trakeva.0.0.0/trakeva-9633-003be8.env
# stdout-file  /Users/travis/.opam/system/build/trakeva.0.0.0/trakeva-9633-003be8.out
# stderr-file  /Users/travis/.opam/system/build/trakeva.0.0.0/trakeva-9633-003be8.err
### stdout ###
# [...]
# /Users/travis/.opam/system/bin/ocamlfind ocamlopt -c -g -annot -bin-annot -I src/lib -I src/lib_sqlite -package lwt.preemptive -package nonstd -package pvem_lwt_unix -package sosa -package sqlite3 -package threads -thread -I src/test -I src/lib -I src/lib_sqlite -o src/test/main.cmx src/test/main.ml
# /Users/travis/.opam/system/bin/ocamlfind ocamlopt -g -linkpkg -package lwt.preemptive -package nonstd -package pvem_lwt_unix -package sosa -package sqlite3 -package threads -thread src/lib/trakeva.cmxa src/lib_sqlite/trakeva_sqlite.cmxa src/test/main.cmx -o src/test/main.native
# + /Users/travis/.opam/system/bin/ocamlfind ocamlopt -g -linkpkg -package lwt.preemptive -package nonstd -package pvem_lwt_unix -package sosa -package sqlite3 -package threads -thread src/lib/trakeva.cmxa src/lib_sqlite/trakeva_sqlite.cmxa src/test/main.cmx -o src/test/main.native
# Undefined symbols for architecture x86_64:
#   "_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 "caml_startup", line 1:
# Error: Error during linking
# Command exited with code 2.
### stderr ###
# E: Failure("Command ''/usr/local/bin/ocamlbuild' src/lib/trakeva.cma src/lib/trakeva.cmxa src/lib/trakeva.a src/lib/trakeva.cmxs src/lib_sqlite/trakeva_sqlite.cma src/lib_sqlite/trakeva_sqlite.cmxa src/lib_sqlite/trakeva_sqlite.a src/lib_sqlite/trakeva_sqlite.cmxs src/test/main.native -tag debug' terminated with error code 10")
smondet commented 9 years ago

It seems to be the one described there: https://github.com/smondet/trakeva#sqlite3-on-macosx

dsheets commented 9 years ago

Ugh. Indeed.