From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 370E37EEBF for ; Tue, 4 Aug 2015 22:50:10 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of agarwal1975@gmail.com) identity=pra; client-ip=209.85.212.173; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="agarwal1975@gmail.com"; x-sender="agarwal1975@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of agarwal1975@gmail.com designates 209.85.212.173 as permitted sender) identity=mailfrom; client-ip=209.85.212.173; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="agarwal1975@gmail.com"; x-sender="agarwal1975@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-wi0-f173.google.com) identity=helo; client-ip=209.85.212.173; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="agarwal1975@gmail.com"; x-sender="postmaster@mail-wi0-f173.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AhBAAWJcFVlK3UVdFbgzo1aQaDHa4xinSCL4c6B0wBAQEBAQESAQEBAQcLCwkfMIQ8ER0BGx4DEgMGAQY3AiQBEQEFARYMNYd2AQMSlxmNOoIFgS4+MYs/gWyCeYtGChknDVeEfAEFDpM5gUMFlHQGjFCYCRIjgRcRBoQoIjGCTAEBAQ X-IPAS-Result: A0AhBAAWJcFVlK3UVdFbgzo1aQaDHa4xinSCL4c6B0wBAQEBAQESAQEBAQcLCwkfMIQ8ER0BGx4DEgMGAQY3AiQBEQEFARYMNYd2AQMSlxmNOoIFgS4+MYs/gWyCeYtGChknDVeEfAEFDpM5gUMFlHQGjFCYCRIjgRcRBoQoIjGCTAEBAQ X-IronPort-AV: E=Sophos;i="5.15,611,1432591200"; d="scan'208";a="142031757" Received: from mail-wi0-f173.google.com ([209.85.212.173]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 04 Aug 2015 22:50:09 +0200 Received: by wijp15 with SMTP id p15so21857131wij.0 for ; Tue, 04 Aug 2015 13:50:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=qB0RcVla7xIAZ3IBLFYhjd17C/TiJEdrcgnysjrpfnY=; b=YtPXQNGNVYkWrGQ4WscMc1o0l7fmrxkFpi4us0ewIUePICZNJvQ+e7Ve0duKNArhdR rQ8m/84//lmaOYXH7qAAZzWjyi9rYkzGzBmlgwbB5vPIH1gxdoGRbaCuURtTICcOOs0r TTPlByIXh4skJax7m+K44sY9a/H716SMfkedeEn4O2bkkTraIfGLeYl2Ge6b9alJnb/D RIsBeqUd71C0AGG6N5r5nch+EiSLnQdlY5wI6h5xrzNkXq0VG4cZEpQQBO2PklGxQbhJ p1t/RNs2KSrX1G0mwWIH7O/Ms9+SZzYqIH8dkx1VQ3Lky5oCzdgew3RlM0vUcFENCH+1 xW8g== X-Received: by 10.180.86.163 with SMTP id q3mr12023246wiz.75.1438721409474; Tue, 04 Aug 2015 13:50:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.27.82.86 with HTTP; Tue, 4 Aug 2015 13:49:50 -0700 (PDT) From: Ashish Agarwal Date: Tue, 4 Aug 2015 16:49:50 -0400 Message-ID: To: Caml List Content-Type: multipart/alternative; boundary=bcaec50fe3418ae3e4051c826e31 Subject: [Caml-list] findlib gives warning that compiler doesn't --bcaec50fe3418ae3e4051c826e31 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable With the file structure shown below, assume you're in directory libb. Then: $ ocamlc -I ../liba -c a.ml (* no warnings *) $ ocamlfind ocamlc -I ../liba -c a.ml findlib: [WARNING] Interface a.cmi occurs in several directories: ., ../liba Why does findlib do an extra check that the compiler is okay with? This is causing problems in a project where I'd like to build several packed libraries, and one reason for doing so is precisely to reuse module names. Am I going about this wrong? My goal is that within libb, the only module from liba that should be visible is Liba. =E2=94=9C=E2=94=80=E2=94=80 liba =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 a.cmi =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 a.cmo =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 a.ml =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 b.cmi =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 b.cmo =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 b.ml =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 liba.cma =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 liba.cmi =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 liba.cmo =E2=94=94=E2=94=80=E2=94=80 libb =E2=94=9C=E2=94=80=E2=94=80 a.cmi =E2=94=9C=E2=94=80=E2=94=80 a.cmo =E2=94=94=E2=94=80=E2=94=80 a.ml --bcaec50fe3418ae3e4051c826e31 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
With the file structure shown below, assume you're in = directory libb. Then:

$ ocamlc -I ../liba -c a.ml
(* no warnings *)

$ = ocamlfind ocamlc -I ../liba -c a.ml
findlib:= [WARNING] Interface a.cmi occurs in several directories: ., ../liba
<= div>
Why does findlib do an extra check that the compiler is = okay with? This is causing problems in a project where I'd like to buil= d several packed libraries, and one reason for doing so is precisely to reu= se module names. Am I going about this wrong? My goal is that within libb, = the only module from liba that should be visible is Liba.

=E2=94=9C=E2=94=80=E2=94=80 liba
=E2=94=82 =C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 a.cmi
=E2=94=82 =C2=A0 =E2=94=9C=E2=94=80=E2=94=80 a.cmo
=E2= =94=82 =C2=A0 =E2=94=9C=E2=94=80=E2=94=80 a.ml<= br>=E2=94=82 =C2=A0 =E2=94=9C=E2=94=80=E2=94=80 b.cmi
=E2=94=82 =C2=A0 = =E2=94=9C=E2=94=80=E2=94=80 b.cmo
=E2=94=82 =C2=A0 =E2=94=9C=E2=94=80=E2= =94=80 b.ml
=E2=94=82 =C2=A0 =E2=94=9C=E2=94= =80=E2=94=80 liba.cma
=E2=94=82 =C2=A0 =E2=94=9C=E2=94=80=E2=94=80 liba.= cmi
=E2=94=82 =C2=A0 =E2=94=94=E2=94=80=E2=94=80 liba.cmo
=E2=94=94= =E2=94=80=E2=94=80 libb
=C2=A0 =C2=A0 =E2=94=9C=E2=94=80=E2=94=80 a.cmi<= br>=C2=A0 =C2=A0 =E2=94=9C=E2=94=80=E2=94=80 a.cmo
=C2=A0 =C2=A0 =E2=94= =94=E2=94=80=E2=94=80 a.ml
=
--bcaec50fe3418ae3e4051c826e31--