From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 9A20FBC74 for ; Wed, 1 Aug 2007 11:17:00 +0200 (CEST) Received: from ctsmtpout1.frontal.correo (smtp.telefonica.net [213.4.149.66]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l719H0sF013996 for ; Wed, 1 Aug 2007 11:17:00 +0200 Received: from tux-chan (88.6.11.46) by ctsmtpout1.frontal.correo (7.2.056.6) (authenticated as ferferse$telefonica.net) id 46ACE8DE0006A368; Wed, 1 Aug 2007 11:16:48 +0200 Received: from batsman by tux-chan with local (Exim 3.36 #1 (Debian)) id 1IGAJz-0006wF-00; Wed, 01 Aug 2007 11:16:47 +0200 Date: Wed, 1 Aug 2007 11:16:47 +0200 From: Mauricio Fernandez To: jos@catnook.com, caml-list@inria.fr Subject: Re: [Caml-list] undefined symbol `caml_tuplify2' in dynamic rocaml extension Message-ID: <20070801091647.GB31718@tux-chan> Mail-Followup-To: jos@catnook.com, caml-list@inria.fr References: <20070801040102.GA88101@lizzy.catnook.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070801040102.GA88101@lizzy.catnook.local> User-Agent: Mutt/1.5.11 Sender: =?iso-8859-1?Q?Mauricio_Julio_Fern=E1ndez_Pradier?= X-Miltered: at discorde with ID 46B04F8C.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 wrote:01 abstract:01 caml-list:01 tuples:01 undefined:01 undefined:01 tuple:02 callback:02 caml:02 caml:02 library:03 library:03 dynamic:03 On Tue, Jul 31, 2007 at 09:01:02PM -0700, Jos Backus wrote: > Hi. I'm trying to use rocaml to wrap an Ocaml library so it can be accessed > from a dynamic Ruby extension (using Callback.register). Everything works, > except when I try to access the Ocaml type from Ruby the following Ruby > LoadError is emitted: > > undefined symbol: caml_tuplify2 > > So my question is: what do I need to do in order to satisfy this symbol? It > doesn't appear in any library. ocaml version is 3.09.2. Do the examples included in rocaml work for you? In particular "oo", where an abstract type is used from Ruby, and "simple", which passes tuples to a function returning a tuple. If you could pinpoint the conversion that's triggering the problem (and it's indeed a problem caused by a Ruby <-> OCaml conversion) we'd be one step away from fixing it. Have you tried to disassemble the extension and see where caml_tuplify2 is being called? -- Mauricio Fernandez - http://eigenclass.org