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.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 12B4EBCB5 for ; Wed, 23 Aug 2006 01:32:45 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k7MNWiKf023658 for ; Wed, 23 Aug 2006 01:32:44 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA25596 for ; Wed, 23 Aug 2006 01:32:43 +0200 (MET DST) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k7MNWgxj023615 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 23 Aug 2006 01:32:43 +0200 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GFfjC-0002tS-Dl for caml-list@inria.fr; Wed, 23 Aug 2006 01:32:14 +0200 Received: from arbutus.physics.mcmaster.ca ([130.113.172.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Aug 2006 01:32:14 +0200 Received: from cookedm+news by arbutus.physics.mcmaster.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Aug 2006 01:32:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: cookedm+news@physics.mcmaster.ca (David M. Cooke) Subject: Re: OS X/Intel and dynamic loading Date: Tue, 22 Aug 2006 19:32:00 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: arbutus.physics.mcmaster.ca X-Message-Flag: If you can read this, you're standing too close User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:yy11JDVQRYrY6+yj/9jvH2riLdM= Sender: news X-Miltered: at nez-perce with ID 44EB941C.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 44EB941A.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 cvs:01 camlp:01 otherlibs:01 unix:01 ocamlrun:01 ocaml:01 stdlib:01 otherlibs:01 unix:01 dllunix:01 unix':01 camlp:01 tarball:01 dllunix:01 "William D. Neumann" writes: > I recently got a Macbook Pro, and attempted to build OCaml from the > CVS sources, but the build failed with the following error: > > cd camlp4; make all > CAML_LD_LIBRARY_PATH=../otherlibs/unix ../boot/ocamlrun ../ocaml -I > ../stdlib -I ../otherlibs/unix build/build.ml > Cannot load required shared library dllunix. > Reason: dynamic loading not supported on this platform. > Reference to undefined global `Unix' > make[1]: *** [yam] Error 2 > make: *** [camlp4out] Error 2 > > Building from the tarball source works fine, but it also appears that > dynamic loading doesn't work here either: > > [254] 2:48PM% ocaml unix.cma > Cannot load required shared library dllunix. > Reason: dynamic loading not supported on this platform. > > Note that the configure phase seems to indicate that dynamic loading > should be working with the following message: NSLinkModule() found. > Using darwin dynamic loading. > > Is it the case that dynamic loading isn't working yet of OS X/Intel, > or is something odd just happening with my build? I can't find > anything about this in the distribution or via google. See my bug report (with patch) at http://caml.inria.fr/mantis/view.php?id=4086 (while you're at it, you might want to look at http://caml.inria.fr/mantis/view.php?id=4087 for adding gprof support.) -- |>|\/|< /--------------------------------------------------------------------------\ |David M. Cooke |cookedm(at)physics(dot)mcmaster(dot)ca