From owner-freebsd-questions@FreeBSD.ORG Thu Aug 7 18:07:30 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7DCE2106566C for ; Thu, 7 Aug 2008 18:07:30 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id 061458FC21 for ; Thu, 7 Aug 2008 18:07:29 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so743256fgb.35 for ; Thu, 07 Aug 2008 11:07:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=C/lk6JtQcuPgcNbayJpZjO+vmRBHW5ydrPM6UTIIxPs=; b=UuAN2rpECLnVRsH9sc335R7SdW+rn1K8Wuyjnh1cfLvZ+pOBlmMrbBsgOLWcSBUdQ5 e8v6mmMK6An1/jP0eS+pNn1qc9FJZ/VHNHUZK53GJdSySVa2W2iROAvfsnooRtVatk6N 98vvBcUdD2qxdgXVxh4izMyE1dVdukFP9oqMg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Hxzl68PRurOIHkoItXJzHeFU+9wljyP2nF3chA/0MXTvaAgnZ1k00q2H2zjFkdvHX1 3bdz/ZZR0QEFD9MXdtrXiypcSbUJ1FhjZKjpGyOvptCVvPWk99gAjS/xT5vfV7V2fOIH 7r7KdRAdxyghuX7STI93AAzDklrMkHTN+Al1Y= Received: by 10.187.157.19 with SMTP id j19mr143393fao.103.1218132448687; Thu, 07 Aug 2008 11:07:28 -0700 (PDT) Received: by 10.187.217.10 with HTTP; Thu, 7 Aug 2008 11:07:28 -0700 (PDT) Message-ID: <26ddd1750808071107r311c8f16hdb2982bab7291ac2@mail.gmail.com> Date: Thu, 7 Aug 2008 14:07:28 -0400 From: "Maxim Khitrov" To: "Kris Kennaway" In-Reply-To: <489B3909.6080702@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <26ddd1750808071055i2b9976b3i4f347407d94a0813@mail.gmail.com> <489B3909.6080702@FreeBSD.org> Cc: FreeBSD Questions Subject: Re: Linking amd64 binary with a 32-bit linux library X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2008 18:07:30 -0000 On Thu, Aug 7, 2008 at 2:03 PM, Kris Kennaway wrote: > Maxim Khitrov wrote: > >> I take it that this happens because libmat.so is a linux binary, but >> is there any way to do what I'm after? > > You can't mix and match Linux and FreeBSD code in the same binary. You will > have to make a completely Linux binary, either by compiling on a Linux > system, or by installing a Linux toolchain into a chroot and building there. > > Kris > I thought so. In that case, if I need to have this library loaded by mod_ruby, and mod_ruby loaded by apache, I take it that I will have to recompile all of these as linux binaries if I want to interface with matlab? I guess I should have thought about this first. :-\ - Max