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 discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id B1147BC0A for ; Wed, 14 Mar 2007 21:11:44 +0100 (CET) Received: from ipmail03.adl2.internode.on.net (ipmail03.adl2.internode.on.net [203.16.214.135]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2EKBgjD024588 for ; Wed, 14 Mar 2007 21:11:43 +0100 Received: from ppp19-103.lns2.syd7.internode.on.net (HELO [192.168.1.201]) ([59.167.19.103]) by ipmail03.adl2.internode.on.net with ESMTP; 15 Mar 2007 06:41:39 +1030 X-IronPort-AV: i="4.14,285,1170595800"; d="scan'208"; a="62529960:sNHT35744674" Subject: Re: [Caml-list] ocamlbuild and automatic dependencies From: skaller To: Nicolas Pouillard Cc: Joel Reymont , Caml List In-Reply-To: References: <80E2E3A7-2603-4706-8186-566C6DA14452@gmail.com> <729DDA34-5FBE-4570-B10F-B2443B58A2F1@gmail.com> <8FC891E5-C8B6-410F-B2EB-5E06594A0165@gmail.com> Content-Type: text/plain Date: Thu, 15 Mar 2007 07:11:35 +1100 Message-Id: <1173903095.30055.16.camel@rosella.wigram> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 45F856FE.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; dependencies:01 0100,:01 mli:01 foo:01 mli:01 foo:01 ocamlc:01 ocamlc:01 cmo:01 foo':01 bug:01 ocaml:01 compilation:01 sourceforge:01 wrote:01 On Wed, 2007-03-14 at 14:11 +0100, Nicolas Pouillard wrote: > > There's no easy.ml, only easy.mli. Does this change anything? > Yep that's all the difference. That's no more an ocamlbuild problem :) > $ cat foo.mli > type t = A | B > $ cat bar.ml > module F = Foo > type t = F.t > > $ ocamlc -c foo.mli > $ ocamlc bar.ml > Error while linking bar.cmo: Reference to undefined global `Foo' > > Perhaps a bug ? It's a 'bug' in Ocaml: skaller@rosella:/work/felix/svn/felix/felix/trunk$ cat bar.ml type t = Foo.t skaller@rosella:/work/felix/svn/felix/felix/trunk$ ocamlc bar.ml That links fine -- why would you expect introducing an alias to change the compilation requirements? -- John Skaller Felix, successor to C++: http://felix.sf.net