ocsigen / ocsigenserver

Web server in OCaml.
http://ocsigen.org/ocsigenserver/
Other
100 stars 32 forks source link

Compilation error on MacOS #179

Closed dboris closed 5 years ago

dboris commented 5 years ago

MacOS 10.13.6 Opam 2.0.5

#=== ERROR while compiling ocsigenserver.2.14.0 ===============================#
# context     2.0.5 | macos/x86_64 | ocaml-base-compiler.4.08.1 | https://opam.ocaml.org#bdb90279
# path        ~/.opam/4.08.1/.opam-switch/build/ocsigenserver.2.14.0
# command     ~/.opam/opam-init/hooks/sandbox.sh build make
# exit-code   2
# env-file    ~/.opam/log/ocsigenserver-84352-2954e3.env
# output-file ~/.opam/log/ocsigenserver-84352-2954e3.out
### output ###
# Undefined symbols for architecture x86_64:
# [...]
#   "_SSLv23_method", referenced from:
#       _ocaml_ssl_create_context in libssl_stubs.a(ssl_stubs.o)
#   "_SSLv23_server_method", referenced from:
#       _ocaml_ssl_create_context in libssl_stubs.a(ssl_stubs.o)
# 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
# make[2]: *** [ocsigenserver.opt] Error 2
# make[1]: *** [all] Error 2
# make: *** [all] Error 2
dboris commented 5 years ago

Resolved: https://github.com/savonet/ocaml-ssl/issues/56#issuecomment-546646877