Version française
Home     About     Download     Resources     Contact us    
Browse thread
Dynlink and ocamlfind for camlp4 3.11?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] Dynlink and ocamlfind for camlp4 3.11?
On Sun, Oct 04, 2009 at 08:53:50PM +0100, Conglun Yao wrote:
> $ ocamlfind ocamlc dynlink.cma -package json-static -syntax camlp4o -c
> test.ml
> 
> $ ocamlfind ocamlc -I /home/conglun/godi/lib/ocaml/pkg-lib/camlp4
> dynlink.cma -package json-static -syntax camlp4o -c t.ml
> 
> 
> Error: Error while linking
> /home/conglun/godi/lib/ocaml/std-lib/camlp4/camlp4lib.cma(Camlp4):
> Reference to undefined global `Dynlink'

OK, I remember what this one is now.  camlp4 in 3.11.0 introduced an
extra dependency on Dynlink, and in the other distributions of OCaml
this meant that certain META files (distributed with findlib) had to
change.

This was the patch that we added for Fedora to fix the relevant META
file:

http://cvs.fedoraproject.org/viewvc/devel/ocaml-findlib/ocaml-findlib-1.2.3-camlp4-META.patch?revision=1.1&view=markup

(Although more recent versions of findlib include the necessary
correction).

So you could try the patch above, or try a later version of findlib.

Rich.

-- 
Richard Jones
Red Hat