From mboxrd@z Thu Jan 1 00:00:00 1970 X-Sympa-To: caml-list@inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p8EG4bwh026931 for ; Wed, 14 Sep 2011 18:04:37 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AowBAKvPcE5XYp5umWdsb2JhbABBp3sBAQEBAQgLCwcUJoFTAQEFOEABEAshFg8JAwIBAgFFBg0BBwKHdbVghm4EmHmLbQ X-IronPort-AV: E=Sophos;i="4.68,381,1312149600"; d="scan'208";a="109073970" Received: from 7.mo1.mail-out.ovh.net (HELO mo1.mail-out.ovh.net) ([87.98.158.110]) by mail4-smtp-sop.national.inria.fr with ESMTP; 14 Sep 2011 18:04:08 +0200 Received: from mail174.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo1.mail-out.ovh.net (Postfix) with SMTP id 24C6DFFCE2F for ; Wed, 14 Sep 2011 18:04:50 +0200 (CEST) Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 14 Sep 2011 18:04:07 +0200 Received: from unknown (HELO ?138.231.81.43?) (romain%bardou.fr@138.231.81.43) by ns0.ovh.net with SMTP; 14 Sep 2011 18:04:06 +0200 Message-ID: <4E70D04B.1040303@lri.fr> Date: Wed, 14 Sep 2011 18:03:23 +0200 From: Romain Bardou User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20110820 Icedove/3.1.12 MIME-Version: 1.0 To: Benedikt Meurer CC: OCaml List X-Ovh-Mailout: 178.32.228.1 (mo1.mail-out.ovh.net) References: <4E70C18F.3040304@lri.fr> <83695D27-A767-438A-B909-6864D1A655FE@googlemail.com> <4E70CEAE.8030807@lri.fr> <33CE5892-E862-47D0-9ECA-3C1D7BD9EA2A@googlemail.com> In-Reply-To: <33CE5892-E862-47D0-9ECA-3C1D7BD9EA2A@googlemail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Ovh-Tracer-Id: 15021193608297835250 X-Ovh-Remote: 138.231.81.43 () X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|U 0.5/N X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeeftddrfeduucetggdotefuucfrrhhofhhilhgvmecuqfggjfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddm X-Validation-by: bardou@lri.fr Subject: Re: [Caml-list] Link a .so/.dll dynamically > $ ocamlmklib -ldopt -shared wrapper.o mylib.cmx -o mylib I tried and I still get the same "invalid ELF header" message. I also tried : ocamlmklib -ocamlopt "ocamlopt -shared" but then ocamlopt complains that it has been called with too many -a, -shared, ... arguments. According to the man page, I think -ldopt passes the option not to ocamlopt but to the "shared linker" (ld ?). Thanks again for your time, -- Romain Bardou