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_FAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 8DDF7BBAF for ; Sun, 4 Oct 2009 22:33:56 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnUDAJejyEpQRFuwWWdsb2JhbACabAEUF7NuhCoEgVI X-IronPort-AV: E=Sophos;i="4.44,503,1249250400"; d="scan'208";a="35620387" Received: from furbychan.cocan.org ([80.68.91.176]) by mail3-smtp-sop.national.inria.fr with ESMTP; 04 Oct 2009 22:33:56 +0200 Received: from rich by furbychan.cocan.org with local (Exim 4.63) (envelope-from ) id 1MuXmF-00017X-Lc; Sun, 04 Oct 2009 21:33:55 +0100 Date: Sun, 4 Oct 2009 21:33:55 +0100 To: Conglun Yao Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Dynlink and ocamlfind for camlp4 3.11? Message-ID: <20091004203355.GA1917@annexia.org> References: <20091004190509.GA31372@annexia.org> <20091004193740.GB28561@annexia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) From: Richard Jones X-Spam: no; 0.00; dynlink:01 ocamlfind:01 camlp:01 0100,:01 ocamlfind:01 ocamlc:01 dynlink:01 -package:01 camlp:01 ocamlc:01 lib:01 ocaml:01 -package:01 lib:01 ocaml:01 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