On Dec 8, 2008, at 12:25 PM, Erick Tryzelaar wrote:

2008/12/7 Alexy Khrabrov <[EMAIL PROTECTED]>:
When compiling with ocamlopt from 3.11 on Mac OSX 10.5, I got errors about undefined symbols: caml_atom_table and caml_static_data_start, and googled
out this:
http://caml.inria.fr/pub/ml-archives/caml-list/2005/05/e3905eefb5bca0ae534f009bbd2727b0.en.html

I was able to compile it fine on the mac (through macports) with these args:

./configure -prefix /opt/local
unset LD_PREBIND LD_PREBIND_ALLOW_OVERLAP && make world.opt

What are you using? And what version of gcc? Mine's set to 4.0.1.

It's not the compilation which is a problem, it's subsequent use of ocamlopt. When trying to link a program which uses C libraries with OCaml C stubs, I was getting the undefined symbols until the above fix was added, the same as the original email from 2005.

Cheers,
Alexy

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to