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
undefined symbol `caml_tuplify2' in dynamic rocaml extension
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-08-02 (18:58)
From: Jos Backus <jos@c...>
Subject: Re: [Caml-list] undefined symbol `caml_tuplify2' in dynamic rocaml extension (UPDATE)
On Thu, Aug 02, 2007 at 11:20:50AM +0200, Mauricio Fernandez wrote:
> On Wed, Aug 01, 2007 at 04:24:05PM -0700, Jos Backus wrote:
> > On Wed, Aug 01, 2007 at 10:59:07AM -0700, Jos Backus wrote:
> > Some good news. We got this to work by creating a file (containing the
> > Callback.register calls) in the extension directory, and adding some values to
> Yes, I wrote a very long message telling you exactly this (that you needed to
> use CAML_LIBS so that -output-obj could work correctly) late at night but
> forgot to send it :)

Heh. All's well that ends well.

> > Btw, besides having to remove the stray `"' we also found that we had to patch
> > the kpp_rocaml_wrapper.c to make it compile, basically doing a `%s/t_value
> > /t_value_/g' in this case.
> Chris Waterson has kindly sent me a patch fixing the problems you saw; I've
> just pushed it to the online repository, along with an example of the above
> TUPLE(LIST(t)) in examples/variants.

Yeah, I dragged Chris into working on this yesterday (thanks Chris!) and he
beat me to the patch :)
> I'll work on the INCFLAGS issue so there's no need to hand-edit the
> generated Makefile/wrappers.

That would be nice. While you're at it, can you add LOCAL_LIBS, too? Those
were the only variables we needed to change in the Makefile.

> -- Mauricio Fernandez  - 

Thanks again Mauricio.

Jos Backus
jos at