Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] mod_caml 0.4 & continuing dynlink problems
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: [Caml-list] mod_caml 0.4 & continuing dynlink problems

On the links below you'll find mod_caml 0.4. You'll also need the
associated patch against the clean ocaml 3.06 tree.

The version still doesn't work. This time, following advice from David
Gurr, I put the C primitives from the .so file into the table of
primitives (by hacking Dynlink again to call Dynlink.set_prim_table).
OCaml now recognises them but doesn't bind them to the correct values.

I can't understand how this binding happens with external references.
I tried breakpointing various obvious candidates, eg.,
dynlink.c:lookup_primitive, build_primitive_table; but these never
seem to be called as far as I can see.

The result is that when the code tries to call the external C function
mod_caml_request_uri, it jumps to an apparently random address and



Richard Jones.
Merjis Ltd. - all your business data are belong to you.
MAKE+ is a sane replacement for GNU autoconf/automake. One script compiles,
RPMs, pkgs etc. Linux, BSD, Solaris.

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: