From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA06469; Sun, 10 Aug 2003 17:46:12 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA10307 for ; Sun, 10 Aug 2003 17:46:11 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h7AFkAf15541 for ; Sun, 10 Aug 2003 17:46:10 +0200 (MET DST) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 19lsOY-0007i4-00 for ; Sun, 10 Aug 2003 16:46:10 +0100 Date: Sun, 10 Aug 2003 16:46:09 +0100 To: caml-list@inria.fr Subject: [Caml-list] mod_caml 0.4 & continuing dynlink problems Message-ID: <20030810154609.GA29522@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; dynlink:01 0.4.:01 3.06:01 gurr:01 crashes:01 3.06.:01 caml-:01 freshmeat:01 autoconf:01 automake:01 compiles:01 rpms:01 ltd:98 ocaml:01 caml:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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