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 concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 64650BB9C for ; Wed, 23 Nov 2005 16:17: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 jANFHftd029886 for ; Wed, 23 Nov 2005 16:17:42 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA05978 for ; Wed, 23 Nov 2005 16:17:41 +0100 (MET) Received: from mail-white.research.att.com (mail-red.research.att.com [192.20.225.110]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id jANFHeMw029877 for ; Wed, 23 Nov 2005 16:17:40 +0100 Received: from [135.207.240.34] (vpn-34.research.att.com [135.207.240.34]) by bigmail.research.att.com (8.13.3+Sun/8.11.6) with ESMTP id jANFLLDm018150; Wed, 23 Nov 2005 10:21:22 -0500 (EST) Subject: Re: [Caml-list] Link errors with O'Caml 3.09 on MacOS From: Mary Fernandez To: Damien Bobillot Cc: Kathleen S Fisher , Caml List In-Reply-To: <839F88BA-52A7-4905-BE12-F2EDF301CEF6@m4x.org> References: <839F88BA-52A7-4905-BE12-F2EDF301CEF6@m4x.org> Content-Type: text/plain Organization: AT&T Labs - Research Message-Id: <1132759053.4008.39.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Wed, 23 Nov 2005 10:17:33 -0500 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 43848815.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 43848814.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 o'caml:01 3.09:01 macos:01 damien:01 o'caml:01 pcre:01 netstring:01 pxp:01 camomile:01 usr:01 ocamlopt:01 -linkall:01 usr:01 lib: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 Hi Damien, Thanks for your quick response. I have another linking problem on the Mac O/S 10.4 with O'Caml 3.09. I'm getting undefined _caml* symbols (see below). From the link step, you can see that I'm using a lot of libraries (pcre, netstring, pxp, camomile, etc). Any ideas? Thanks, Mary /usr/local/bin/ocamlopt -linkall -o galax-run.opt -I /usr/local/lib/ocaml/site-lib/pcre -I /usr/local/lib/ocaml/site-lib/netstring -I /us\r/local/lib/ocaml/site-lib/pxp-engine -I /usr/local/lib/ocaml/site-lib/pxp-lex-iso88591 -I /usr/local/lib/ocaml/site-lib/pxp-lex-utf8 -I \/usr/local/lib/ocaml/site-lib/camomile nums.cmxa unix.cmxa str.cmxa pcre.cmxa netstring.cmxa pxp_engine.cmxa pxp_lex_utf8.cmxa pxp_lex_li\nk_utf8.cmx pxp_lex_iso88591.cmxa pxp_lex_link_iso88591.cmx bigarray.cmxa camomile.cmxa -cclib -lnums -cclib -lunix -cclib -lstr -cclib -\lpcre_stubs -cclib -lpcre -ccopt -L/usr/local/lib -ccopt -L/usr/local/lib/ocaml/site-lib/pcre galax.cmxa toplevel/galax-run.cmx -I /\usr/local/lib/ocaml/site-lib/pcre -I /usr/local/lib/ocaml/site-lib/netstring -I /usr/local/lib/ocaml/site-lib/pxp-engine -I /usr/local/lib/ocaml/site-lib/camomile ... all my .cmx files ... ld: Undefined symbols: _camlAvlTree _camlBitsvect _camlByte_labeled_dag _camlBytesvect _camlCaseMap _camlCharEncoding _camlCharmap _camlHangul _camlIMap _camlISet _camlLocale _camlOOChannel _camlSubText _camlTbl31 _camlUCS4 _camlUChar _camlUCharInfo _camlUCharTbl _camlUCol _camlULine ----:**-F1 *shell* (Shell:run)--L??--98%--------------------------------------------------------------------------------------- On Tue, 2005-11-22 at 06:45, Damien Bobillot wrote: > Kathleen Fisher wrote : > > > We installed O'Caml 3.09 on MacOS 10.4 from the .dmg image, then > > installed > > Camlidl with no errors. When we link our Camlidl test program, > > we get the link errors below. However, when we install OCaml 3.09 > > from source, compile it, and install Camlidl, we do not get > > any link errors. > > > > Can someone explain this behavior? > > > > Thanks! > > Kathleen Fisher > > > > /usr/local/bin/ocamlc -I /usr/local/lib/ocaml -cc cc -custom -o > > test test.cmo test_stubs.o test.o test_idl.cmo /usr/local/lib/ocaml/ > > libcamlidl.a > > ld: Undefined symbols: > > _sprintf$LDBLStub > > _fprintf$LDBLStub > > _sscanf$LDBLStub > > Try to add the following options : -cclib -lSystemStub -- Mary Fernandez AT&T Labs - Research