It seems there's an issue with the ocaml formula. If i try to run a simple example "ocamlc unix.cmx foo -o bar" or just trying to start "camlp4o" i get this error:
Fatal error: cannot load shared library dllunix
Reason: dlopen(/usr/local/Cellar/objective-caml/3.11.1/lib/ocaml/stublibs/dllunix.so, 138): Symbol not found: _caml_atom_table
Referenced from: /usr/local/Cellar/objective-caml/3.11.1/lib/ocaml/stublibs/dllunix.so
Expected in: flat namespace
However, compiling using ocamlopt and using unix.cmxa instead works.
This problem is keeping my haxe formula back so it would be nice with a fix. Perhaps there's some path setting or such I've missed?
I think I found a related thread in the ocaml mailing list:
Tried the things in that thread (setting LD_LIBRARY_PATH, OCAMLLIB, CAMLLIB) and also tried some patches and build arguments from the macport version and it's still not working.
I am trying to compile ocamlfind and am having the same issue.
I built ocaml from source myself and had no issues with it, I'm not exactly sure what is the cause of the dllunix issue. I used:
./configure -prefix /opt/ocaml
I also tried doing this in the formula rather than what is currently in there but it didn't work either.
After a bit of working on it, building without a prefix (/usr/local) works fine as well, my best guess is that the symlinks that homebrew uses is causing ocaml to have problems finding its libraries. Suggestions on changes to ./configure or to the ENV to make this work is appreciated. I am more than happy to integrate these into the Formula.
best guess is that we shouldn't strip something. Try:
def skip_clean? path; true; end
That worked great, I added a branch with this change to my fork http://github.com/joewilliams/homebrew/tree/188 if you would like to pull it from me.
Skip clean all of ocaml
Signed-off-by: Max Howell <email@example.com>
I tested just cleaning lib and the test cases still didn't work.
New formula for Arpack.
glib: fix g_get_monotonic_time on non-Intel Macs