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 EAA03002; Wed, 15 Sep 2004 04:23:52 +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 EAA05514 for ; Wed, 15 Sep 2004 04:23:51 +0200 (MET DST) Received: from vms4.rit.edu (vms4.isc.rit.edu [129.21.3.15]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i8F2NoH6018004 for ; Wed, 15 Sep 2004 04:23:50 +0200 Received: from localhost (roc-66-66-5-123.rochester.rr.com [66.66.5.123]) by ritvax.isc.rit.edu (PMDF V6.2-X26 #30843) with ESMTPA id <01LEVGG4KDBCJ5KGUS@ritvax.isc.rit.edu> for caml-list@inria.fr; Tue, 14 Sep 2004 22:22:44 -0400 (EDT) Date: Tue, 14 Sep 2004 17:31:57 -0500 From: James Tranovich Subject: [Caml-list] caml_callback_exn problem To: caml-list@inria.fr Message-id: <20040914173157.76fd36e5@localhost> MIME-version: 1.0 X-Mailer: Sylpheed-Claws 0.9.12 (GTK+ 1.2.10; i686-pc-linux-gnu) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT X-Miltered: at concorde with ID 4147A7B6.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; jht:99 rit:99 caml-list:01 callback:01 interfacing:01 callbacks:01 callback:01 usr:01 sigill:01 asmrun:01 386.:01 bin:01 ocaml:01 ocaml:01 caml:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello all, I have a question regarding interfacing ocaml to C. I've pretty much gotten ocaml callbacks working with C, which is very cool and all, but I have a small problem. I can't get caml_callback_exn to work at all. To be specific, if I try to link a program, I get the following result: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: warning: type and size of dynamic symbol `caml_callback_exn' are not defined If I try to run the resulting executable, I get an "Illegal instruction" message (SIGILL). Needless to say, the "normal" caml_callback calls work fine. I'm using ocaml 3.08.1, just took a quick look at the sources. Looked at asmrun/i386.S but can't seem to find anything out of the ordinary. Am I not linking in a file I need? What am I doing wrong here? Any help is appreciated! Thanks, James ------------------- 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