From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q28FpOxh026998 for ; Thu, 8 Mar 2012 16:51:25 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlIBACfVWE/RVaG2kGdsb2JhbAApGoU1pmkBiHcIIgEBAQEJCQ0HFAQjggoBAQEDARICDx0BGx0BAwELBgUEBw0qAgIiAREBBQEcBhMih2MFCymcTAqLKEyCcYU3P4h0AQULj02BFgSVRY46PYJVgTA X-IronPort-AV: E=Sophos;i="4.73,552,1325458800"; d="scan'208";a="135060757" Received: from mail-gx0-f182.google.com ([209.85.161.182]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 08 Mar 2012 16:51:20 +0100 Received: by ggnk4 with SMTP id k4so412390ggn.27 for ; Thu, 08 Mar 2012 07:51:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=fSytAbj/hAHtPVu4vkLuI9HqLaoylOx487abJerkjRE=; b=eqBbdz8w2vV+lN336L9qlQUW+wnis1ZPkQQkmr8xd4o03/D/5ZvmI42jfrYo+9Apwl KdFxCSL3Maj0SPgK0Jb13+2N8FVLy4Tgk2EtWEfyrugfORuu9GpOOBmtGdu6O64rFBCx JcVx8fdR+e+qSIjFBOPPpslNCFN7hwgXldSDp1wTt/K4jyB4I0/tcttOB4L1xh2WX6ua g29keR2D436mj/MTBZBzFs8p8sacgvtmY5Lnm2tmyzfwi3qVTDo/j0RHKDkqcsg+XPB6 PgHWQLylIqQFoail3GWVYcg5yeXEXipiYucDsmeyGibMTVJHkFpuQJdlWdBvq+21HrGu mn1w== Received: by 10.236.170.41 with SMTP id o29mr11461393yhl.83.1331221879182; Thu, 08 Mar 2012 07:51:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.25.4 with HTTP; Thu, 8 Mar 2012 07:50:59 -0800 (PST) In-Reply-To: <38A39B83-F464-4532-84A1-738266DF1E9B@polytechnique.org> References: <74F89B4A-9C34-4A33-8DAA-8A12CF9EF03B@polytechnique.org> <38A39B83-F464-4532-84A1-738266DF1E9B@polytechnique.org> From: Pierre-Alexandre Voye Date: Thu, 8 Mar 2012 16:50:59 +0100 Message-ID: To: Alan Schmitt Cc: caml-list list Content-Type: multipart/alternative; boundary=20cf303b38e339d46904babd3fde Subject: Re: [Caml-list] state of native dynlink on os x --20cf303b38e339d46904babd3fde Content-Type: text/plain; charset=UTF-8 After applying the patch, recompiling, your example works fine, but while compiling Ocsigen framework, at the end, I have : ocamlfind ocamlc -thread -o ocsigenserver -linkpkg -linkall -thread -I ../baselib -I ../http -package lwt.ssl -package lwt.extra -package netstring -package findlib -package cryptokit -package tyxml -package tyxml.parser -package dynlink -package tyxml.syntax -I . ../baselib/parsecommandline.cma ../baselib/baselib.cma ../baselib/polytables.cma ../http/http.cma ocsigenserver.cma server_main.cmo File "_none_", line 1, characters 0-1: Error: Error while linking /opt/local/lib/ocaml/camlp4/camlp4lib.cma(Camlp4): Reference to undefined global `Dynlink' 2012/3/8 Alan Schmitt > On 8 mars 2012, at 15:23, Pierre-Alexandre Voye wrote: > > > In Mac Lion, i get : > > > > $ ocamlopt.opt -shared plugin.cmx test.cmxa -o plugin.cmxs > > ld: warning: -read_only_relocs cannot be used with x86_64 > > $ ocamlopt.opt test.cmxa dynlink.cmxa loader.ml -o loader.native > > File "loader.ml", line 1, characters 0-1: > > Error: Cannot find file dynlink.cmxa > > You first need to patch ocaml with this: > http://caml.inria.fr/mantis/view.php?id=4863 > > Alan > -- --------------------- https://twitter.com/#!/ontologiae/ http://linuxfr.org/users/montaigne --20cf303b38e339d46904babd3fde Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable After applying the patch, recompiling, your example works fine, but while c= ompiling Ocsigen framework, at the end, I have :

ocamlfind ocamlc=C2= =A0 -thread -o ocsigenserver -linkpkg -linkall=C2=A0 -thread -I ../baselib = -I ../http -package lwt.ssl -package lwt.extra -package netstring -package = findlib -package cryptokit -package tyxml -package tyxml.parser -package dy= nlink -package tyxml.syntax -I . ../baselib/parsecommandline.cma ../baselib= /baselib.cma ../baselib/polytables.cma ../http/http.cma ocsigenserver.cma s= erver_main.cmo
File "_none_", line 1, characters 0-1:
Error: Error while link= ing /opt/local/lib/ocaml/camlp4/camlp4lib.cma(Camlp4):
Reference to unde= fined global `Dynlink'

2012/3/8 Alan = Schmitt <alan.schmitt@polytechnique.org>
On 8 mars 2012, at 15:23, = Pierre-Alexandre Voye wrote:

> In Mac Lion, i get :
>
> $ ocamlopt.opt -shared plugin.cmx test.cmxa -o plugin.cmxs
> ld: warning: -read_only_relocs cannot be used with x86_64
> $ ocamlopt.opt test.cmxa dynlink.cmxa loader.ml -o loader.native
> File "loader.ml", line 1, characters 0-1:
> Error: Cannot find file dynlink.cmxa

You first need to patch ocaml with this:
http://caml.inria.fr/mantis/view.php?id=3D4863

Alan



--
---------= ------------
https://twitter.com/#!/ontologiae/
http://linuxfr.org/users/montaigne<= /a>

--20cf303b38e339d46904babd3fde--