* caml_atom_table bug still present in ocaml 3.11.0
@ 2008-12-07 19:21 Alexy Khrabrov
2008-12-08 14:03 ` [Caml-list] " Damien Doligez
2008-12-08 17:25 ` Erick Tryzelaar
0 siblings, 2 replies; 5+ messages in thread
From: Alexy Khrabrov @ 2008-12-07 19:21 UTC (permalink / raw)
To: caml-list
[-- Attachment #1: Type: text/plain, Size: 800 bytes --]
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
There's also related, if somewhat different, discussion about dylib's at
http://tunes.org/~nef//logs/ocaml/08.02.04
The sollution is still the same, with the only one of the two lines
remaining from that example in asmrun/startup.c, line 40 in the
current one:
char * caml_code_area_start, * caml_code_area_end = NULL; /* added the
initializer */
-- and now things work well.
Under the 2005 thread, the resolution, by John Skaller, was, it should
go into the bugtracker; did it, and if not, should it now? :)
Cheers,
Alexy
[-- Attachment #2: Type: text/html, Size: 1685 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] caml_atom_table bug still present in ocaml 3.11.0
2008-12-07 19:21 caml_atom_table bug still present in ocaml 3.11.0 Alexy Khrabrov
@ 2008-12-08 14:03 ` Damien Doligez
2008-12-08 17:25 ` Erick Tryzelaar
1 sibling, 0 replies; 5+ messages in thread
From: Damien Doligez @ 2008-12-08 14:03 UTC (permalink / raw)
To: Caml Mailing List
On 2008-12-07, at 20:21, Alexy Khrabrov wrote:
> Under the 2005 thread, the resolution, by John Skaller, was, it
> should go into the bugtracker; did it, and if not, should it now? :)
I don't think it dit, and yes you should add it, although it looks
like a
strange gcc bug.
-- Damien
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] caml_atom_table bug still present in ocaml 3.11.0
2008-12-07 19:21 caml_atom_table bug still present in ocaml 3.11.0 Alexy Khrabrov
2008-12-08 14:03 ` [Caml-list] " Damien Doligez
@ 2008-12-08 17:25 ` Erick Tryzelaar
2008-12-09 7:07 ` Alexy Khrabrov
1 sibling, 1 reply; 5+ messages in thread
From: Erick Tryzelaar @ 2008-12-08 17:25 UTC (permalink / raw)
To: Alexy Khrabrov; +Cc: caml-list
2008/12/7 Alexy Khrabrov <deliverable@gmail.com>:
> 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] caml_atom_table bug still present in ocaml 3.11.0
2008-12-08 17:25 ` Erick Tryzelaar
@ 2008-12-09 7:07 ` Alexy Khrabrov
2008-12-11 16:38 ` Daniel Bünzli
0 siblings, 1 reply; 5+ messages in thread
From: Alexy Khrabrov @ 2008-12-09 7:07 UTC (permalink / raw)
To: Erick Tryzelaar; +Cc: caml-list
On Dec 8, 2008, at 12:25 PM, Erick Tryzelaar wrote:
> 2008/12/7 Alexy Khrabrov <deliverable@gmail.com>:
>> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-12-11 16:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-07 19:21 caml_atom_table bug still present in ocaml 3.11.0 Alexy Khrabrov
2008-12-08 14:03 ` [Caml-list] " Damien Doligez
2008-12-08 17:25 ` Erick Tryzelaar
2008-12-09 7:07 ` Alexy Khrabrov
2008-12-11 16:38 ` Daniel Bünzli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox