From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 16 01:55:32 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46F8616A4CE for ; Sun, 16 Nov 2003 01:55:32 -0800 (PST) Received: from mbox2.netikka.net (mbox2.netikka.net [213.250.81.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 932DF43FB1 for ; Sun, 16 Nov 2003 01:55:31 -0800 (PST) (envelope-from markus.niemisto@iki.fi) Received: from ogorod (fh181.netikka.fi [81.209.123.181]) by mbox2.netikka.net (Postfix) with SMTP id 8AF6B35C08F for ; Sun, 16 Nov 2003 11:55:30 +0200 (EET) Date: Sun, 16 Nov 2003 11:55:30 +0200 From: Markus =?ISO-8859-15?Q?Niemist=F6?= To: freebsd-hackers@freebsd.org Message-Id: <20031116115530.01e5be79.markus.niemisto@iki.fi> Organization: -=Die LocalWarez=- X-Mailer: Sylpheed version 0.9.4 (GTK+ 1.2.10; i386-unknown-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Subject: Loading a shared Linux library from a FreeBSD program? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Nov 2003 09:55:32 -0000 Hi, Is there any way to load a shared Linux library from a FreeBSD program? I need to get one freeware (but not open source) library only available for Linux working with my native FreeBSD program. I hear there is somekind of a wrapper for Linux browser plugins. What kind of technique it uses? I believe I should first load Linux' libc and then the library I need. Could this work? And can I just dlopen /compat/linux/libc.so.6? Thanks, Markus Niemist=F6