From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 6A063BC57 for ; Mon, 5 Jul 2010 13:41:06 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuMCAKthMUzB/Bd4k2dsb2JhbACDHJxUFQEBAQEJCQoJEQMfrGWQUIEpgwpyBIg6 X-IronPort-AV: E=Sophos;i="4.53,539,1272837600"; d="scan'208";a="54499883" Received: from smtp-msa-out01.orange.fr ([193.252.23.120]) by mail2-smtp-roc.national.inria.fr with ESMTP; 05 Jul 2010 13:41:06 +0200 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf5a03.orange.fr (SMTP Server) with ESMTP id C618D1C001AE; Mon, 5 Jul 2010 13:41:05 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf5a03.orange.fr (SMTP Server) with ESMTP id B6DED1C00316; Mon, 5 Jul 2010 13:41:05 +0200 (CEST) Received: from [192.168.1.90] (APuteaux-154-1-82-106.w83-204.abo.wanadoo.fr [83.204.161.106]) by mwinf5a03.orange.fr (SMTP Server) with ESMTP id 7C0021C001AE; Mon, 5 Jul 2010 13:41:01 +0200 (CEST) X-ME-UUID: 20100705114105508.7C0021C001AE@mwinf5a03.orange.fr X-ME-User-Auth: lexifi Message-ID: <4C31C4CF.7000703@frisch.fr> Date: Mon, 05 Jul 2010 13:41:03 +0200 From: Alain Frisch User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 MIME-Version: 1.0 To: =?UTF-8?B?RGFuaWVsIELDvG56bGk=?= Cc: caml-list List Subject: Re: [Caml-list] Re: Dynlinking plugins defining the same unit name but with different implementations. References: <4C2D9E51.8010500@frisch.fr> <4C2DA5FD.4040004@frisch.fr> <4C2DA792.4010604@frisch.fr> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam: no; 0.00; frisch:01 frisch:01 usr:01 lib:01 ocaml:01 bug:01 node:01 -linkall:01 wrote:01 caml-list:01 alain:01 alain:01 modules:02 defining:02 unit:03 On 07/02/2010 07:48 PM, Daniel Bünzli wrote: > I tried to add /usr/local/lib/ocaml to LD_LIBRARY_PATH but without > success. Any hint ? Is that a bug or am I missing something ? As a side node , you should also always link the main program with -linkall (to make sure all the modules that plugins might want to use are indeed present in the main program). Alain