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=2.0 required=5.0 tests=AWL,DNS_FROM_RFC_POST, SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id DEFC7BB84 for ; Wed, 28 Jan 2009 20:24:45 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlADAKE/gElKfSweimdsb2JhbACDHpAxPwEBAQoJDAcPBakcgQWOIwEDAQOFRAY X-IronPort-AV: E=Sophos;i="4.37,339,1231110000"; d="scan'208";a="34407032" Received: from yx-out-2324.google.com ([74.125.44.30]) by mail4-smtp-sop.national.inria.fr with ESMTP; 28 Jan 2009 20:24:45 +0100 Received: by yx-out-2324.google.com with SMTP id 8so2573069yxg.27 for ; Wed, 28 Jan 2009 11:24:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=lvPLaRJRMkheA4/WI28E+bMVuklBLonl4MV0ZZBuBwE=; b=TNZCVpUht2Tn6uA+uuWE+05MCn42q2YnUadd4a6gYFuCXRYd0czQrXYPaYYdELcH0H q7r9p5OafKfXeXUHOKPbnJMTYgOn3HEAaiMt5vSTSdxhoxwCTTJmwGceovB0URdnEIpT 1gIjj6REfQXTXo1zkmpcUZzfCrDOJo0f81GGI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=T4qOZoSSFWW9qqTTOyI5kDxrFgsMbOaXwsF9L7aMymEpThQBlHnVQKSxv2RYJgPOy9 giPv09bwjeuLdMimN6gqTcweOCQ1yhgrYpvLOjXEP7MRXtWf70816/azS6A0OLvW6aPz qkwYQlmcnUFhukZULZ7o7/5LRFbOIHJCl4/fQ= MIME-Version: 1.0 Received: by 10.142.125.4 with SMTP id x4mr566624wfc.233.1233170684220; Wed, 28 Jan 2009 11:24:44 -0800 (PST) In-Reply-To: <4980AC8F.3010103@glondu.net> References: <243054520901272248k31b0a68fs2130dd84f1278dbd@mail.gmail.com> <49800728.9070200@glondu.net> <243054520901280917i24c079e5nd36455403ee0fc81@mail.gmail.com> <20090128173305.GJ25469@NANA.localdomain> <243054520901280956i258ce362qc684509ceaac1d52@mail.gmail.com> <4980A8B1.6030305@glondu.net> <243054520901281050n31220e98q4d9c37237e38c637@mail.gmail.com> <4980AC8F.3010103@glondu.net> Date: Wed, 28 Jan 2009 14:24:44 -0500 Message-ID: Subject: Re: [Caml-list] problem with LACAML and static linking From: Markus Mottl To: =?ISO-8859-1?Q?St=E9phane_Glondu?= Cc: Erick Matsen , caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; lacaml:01 markus:01 mottl:01 markus:01 mottl:01 statically:01 ocaml:01 28,:98 2009:98 steph:98 wrote:01 caml-list:01 dependency:01 linking:02 executable:03 On Wed, Jan 28, 2009 at 2:05 PM, St=E9phane Glondu wrote= : > Oh... I overlooked this one. You have to manage to get a set of .a files > so that each object (.o) is there only once. In this case, I would drop > libblas.a, since it is a dependency of liblapack (AFAIU). Another thing you could do is to copy one of the static libraries to your build directory, remove the offending symbol using the "ar" command line tool, and then link the resulting library and the other one statically into your executable. Dirty, but what you're gonna do... Regards, Markus --=20 Markus Mottl http://www.ocaml.info markus.mottl@gmail.com