I am at my wits end with eliom and ocsigenserver. I have tried three switches from 4.08.1 through 4.10.1, employed the newer versions of eliom-distillery in each case, and still have errors at run time, but zero compile time errors. My eliomc is not too complicated, but it does depend on 3 local projects. All 3 have META files, opam files, double checked for presence of byte and native cma and cmxa files (they’re present and listed in the META files). This used to work and now it doesn’t. I don’t know why.
In the case of trying to install and run.byte, a bigstringaf
dependency jumps out of nowhere. After opam installing bigstringaf
and including it in the server dependencies sometimes under some switches, causes still more errors about missing dlljsoo_runtime_stubs.so
, which leads me down a bottomless rabbit hole trying to guess which opam package provides that. And eventually breaks the build process for one of the dependencies.
sudo PATH=$PATH OCAMLPATH=$OCAMLPATH LD_LIBRARY_PATH=$LD_LIBRARY_PATH make run.byte
…
Fatal error: cannot load shared library dllbigstringaf_stubs
Reason: dllbigstringaf_stubs.so: cannot open shared object file: No such file or directory
Aborted
Trying to install and then run.opt code causes a failure to find a core related symbol. I’m not sure why. I threw in core_unix as an explicit dependency in Makefile.options
and in the dune library stanza of the dependent library, but no luck so far.
sudo PATH=$PATH OCAMLPATH=$OCAMLPATH LD_LIBRARY_PATH=$LD_LIBRARY_PATH make run.opt
…
ocsigenserver.opt: main: Fatal - While loading … .opam/4.10.1/lib/core/core.cmxs: error loading shared library: error loading shared library: (Failure ocsigenserver.opt: main: “/home/admin/large_ebs/.opam/4.10.1/lib/core/core.cmxs: undefined symbol: core_kernel_time_ns_format_tm”)
Does anyone have a clue why either of these errors keep happening? Thx in advance…