From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 35D3EBB81 for ; Thu, 30 Dec 2004 16:36:54 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id iBUFarXC006390 for ; Thu, 30 Dec 2004 16:36:54 +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 QAA05440 for ; Thu, 30 Dec 2004 16:36:53 +0100 (MET) Received: from mail-yellow.research.att.com (mail-dark.research.att.com [192.20.225.112]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id iBUFaqYM006384 for ; Thu, 30 Dec 2004 16:36:53 +0100 Received: from research.att.com (vpn-11.research.att.com [135.207.240.11]) by bigmail.research.att.com (8.11.6+Sun/8.11.6) with ESMTP id iBUFaqN17236 for ; Thu, 30 Dec 2004 10:36:52 -0500 (EST) Message-ID: <41D42093.5090604@research.att.com> Date: Thu, 30 Dec 2004 10:36:51 -0500 From: mff User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031114 X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: MacOS port and file formats Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 41D42095.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 41D42094.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; 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 dynamically:01 dynamically: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: Greetings, 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? Thanks, Mary