From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 0B947BB84 for ; Wed, 31 May 2006 17:59:50 +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 k4VFxnSV029951 for ; Wed, 31 May 2006 17:59:49 +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 RAA22234 for ; Wed, 31 May 2006 17:59:48 +0200 (MET DST) Received: from [128.93.11.95] (estephe.inria.fr [128.93.11.95]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k4VFxh61029936 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 31 May 2006 17:59:43 +0200 Message-ID: <447DBD6F.3000405@inria.fr> Date: Wed, 31 May 2006 17:59:43 +0200 From: Xavier Leroy User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050322) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nicolas Cannasse Cc: caml-list@inria.fr Subject: Re: [Caml-list] Mac x86 shared libraries References: <447A156A.3070905@motion-twin.com> In-Reply-To: <447A156A.3070905@motion-twin.com> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 447DBD75.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 447DBD6F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 dllunix:01 unix':01 ocaml:01 cvs:01 stub:01 macosx:01 unix:01 toplevel:01 macosx:01 cvs:01 makefile:01 bytecode:01 caml-list:01 compile:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 > ocaml install.ml > > Cannot load required shared library dllunix. > Reason: dynamic loading not supported on this platform. > Reference to undefined global `Unix' > > He checked on OCaml CVS and same error. > Any idea ? Well, as it says: dynamic loading of C stub code is not currently supported under MacOSX/x86, so you can't do #load "unix.cma" from the standard toplevel. Remember, this is not guaranteed to work everywhere, only on platforms that support DLL loading. Someone posted a small patch to configure that enables loading of DLL on MacOSX/x86. It's not yet in CVS because I'd like to test some more, and that will have to wait until my new shiny MacBook Pro arrives. Feel free to fish the patch from the mailing list archives and give it a try. Alternatively, fix the Makefile to compile install.ml to a bytecode executable and run that. This would work everywhere. - Xavier Leroy