caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Richard Jones <rich@annexia.org>
To: Conglun Yao <yaoconglun@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Dynlink and ocamlfind for camlp4 3.11?
Date: Sun, 4 Oct 2009 21:33:55 +0100	[thread overview]
Message-ID: <20091004203355.GA1917@annexia.org> (raw)
In-Reply-To: <f7b50d2a0910041253k4b33e67cvf8190197c2cbc50e@mail.gmail.com>

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


  parent reply	other threads:[~2009-10-04 20:33 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-04 14:22 Conglun Yao
2009-10-04 14:24 ` Conglun Yao
2009-10-04 19:05 ` [Caml-list] " Richard Jones
2009-10-04 19:32   ` Conglun Yao
2009-10-04 19:37     ` Richard Jones
2009-10-04 19:53       ` Conglun Yao
2009-10-04 20:06         ` Conglun Yao
2009-10-04 20:33         ` Richard Jones [this message]
2009-10-04 20:35           ` Richard Jones
2009-10-04 21:14             ` David Allsopp
2009-10-04 21:40               ` Conglun Yao
2009-10-05  7:39                 ` David Allsopp
2009-10-05 10:14                   ` Conglun Yao
2009-10-05 13:35         ` Gerd Stolpmann
2009-10-05 15:17           ` Conglun Yao
2009-10-05 17:28             ` David Allsopp
2009-10-05 17:55           ` Alain Frisch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091004203355.GA1917@annexia.org \
    --to=rich@annexia.org \
    --cc=caml-list@yquem.inria.fr \
    --cc=yaoconglun@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).