From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 7F0A8BB81 for ; Fri, 31 Dec 2004 10:23:42 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id iBV9Ngsu031503 for ; Fri, 31 Dec 2004 10:23:42 +0100 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 KAA12152 for ; Fri, 31 Dec 2004 10:23:41 +0100 (MET) Received: from kurims.kurims.kyoto-u.ac.jp (kurims.kurims.kyoto-u.ac.jp [130.54.16.1]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id iBV9NdkL004439 for ; Fri, 31 Dec 2004 10:23:40 +0100 Received: from localhost (suiren [130.54.16.25]) by kurims.kurims.kyoto-u.ac.jp (8.13.1/8.13.1) with ESMTP id iBV9Nb3O018733; Fri, 31 Dec 2004 18:23:37 +0900 (JST) Date: Fri, 31 Dec 2004 18:23:19 +0900 (JST) Message-Id: <20041231.182319.04680184.garrigue@math.nagoya-u.ac.jp> To: mff@research.att.com Cc: caml-list@inria.fr Subject: Re: [Caml-list] MacOS port and file formats From: Jacques Garrigue In-Reply-To: <1104458557.8834.37.camel@localhost.localdomain> References: <1104458557.8834.37.camel@localhost.localdomain> X-Mailer: Mew version 4.0.64 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 41D51A9E.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 41D51A9B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 macos:01 macos:01 lib:01 ocaml:01 stublibs:01 o'caml:01 compiler:01 compilation:01 compiler:01 otherlibs:01 compilation:01 o'caml:01 full-fledged:01 dlls:01 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.0 X-Spam-Level: From: Mary Fernandez > I have a question regarding the ./configure options for MacOS/Darwin. > > ./configure selects the -bundle option for MKSHAREDLIB, which > has the effect of creating MacOS bundle type files for the dynamically > linked libraries in lib/ocaml/stublibs. I have had trouble linking > these bundle files with the standard dynamically linked libraries > created with the -dynamiclib option. As an experiment, I replaced > -bundle by -dynamiclib and attempted to rebuild the O'Caml compiler, > but got an error deep in compilation of the compiler. Ultimately, > I just made the otherlibs/* libraries by hand with -dynamiclib and was > able > to link my application. > > I will admit that I am overwhelmed by the Darwin documentation > that explains how to port a Linux application to MacOS. > Can someone explain why the -bundle option is necessary to the compiler > compilation? > Is it because the O'Caml compiler a full-fledged Mac application? Could you explain exactly what you are trying to do? The dlls in stublibs are only intended to be dynamically loaded by an ocaml application. The reason bundles are used rather than dynamic libraries is that the API for bundles is simpler, and that their explicit intent (plugins) seems close enough to the use of dlls in ocaml. Note that a bundle can depend on dynamic libraries, so this should not induce other limitations. Jacques Garrigue