From owner-freebsd-questions@FreeBSD.ORG Thu Aug 7 18:03:57 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 A699C106567E for ; Thu, 7 Aug 2008 18:03:57 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EAF198FC16; Thu, 7 Aug 2008 18:03:56 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <489B3909.6080702@FreeBSD.org> Date: Thu, 07 Aug 2008 20:03:53 +0200 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: Maxim Khitrov References: <26ddd1750808071055i2b9976b3i4f347407d94a0813@mail.gmail.com> In-Reply-To: <26ddd1750808071055i2b9976b3i4f347407d94a0813@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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:03:57 -0000 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