Browse thread
[Caml-list] mod_caml 0.4 & continuing dynlink problems
- Richard Jones
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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 crashes. Ideas? Rich. http://www.annexia.org/tmp/ocaml-3.06.dynlink.patch2 http://www.annexia.org/tmp/mod_caml-0.4.tar.gz -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - 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. http://www.annexia.org/freeware/makeplus/ ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners