From owner-freebsd-questions@FreeBSD.ORG Mon Aug 1 22:07:00 2011 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 A4926106564A for ; Mon, 1 Aug 2011 22:07:00 +0000 (UTC) (envelope-from Traiano.Welcome@mtnbusiness.co.za) Received: from smtprelay01.ops.mtnbusiness.co.za (smtprelay01.ops.mtnbusiness.co.za [41.181.93.235]) by mx1.freebsd.org (Postfix) with ESMTP id 2CAF18FC16 for ; Mon, 1 Aug 2011 22:06:59 +0000 (UTC) Received: from [196.30.97.135] (helo=CPT-EXCH01.int.mtnbusiness.net) by smtprelay01.ops.mtnbusiness.co.za with esmtp (ULTRA Special SMTP Internal Alpha) (envelope-from ) id 1Qo0dT-0008Lk-3C; Tue, 02 Aug 2011 00:06:55 +0200 Received: from CPT-EXCH01.int.mtnbusiness.net ([196.30.97.135]) by CPT-EXCH01.int.mtnbusiness.net ([196.30.97.135]) with mapi id 14.01.0218.012; Tue, 2 Aug 2011 00:06:06 +0200 From: Traiano Welcome To: Boris Samorodov Thread-Topic: Linux Binary Compatibility: Libpam compile for FreeBSD Thread-Index: AQHMUIjHp7O8yAvykEqUB2STRfM9X5UIjCLc Date: Mon, 1 Aug 2011 22:06:05 +0000 Message-ID: References: , <37201588@h30.sp.ipt.ru> In-Reply-To: <37201588@h30.sp.ipt.ru> Accept-Language: en-US, en-ZA Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [209.212.109.2] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "freebsd-questions@freebsd.org" Subject: RE: Linux Binary Compatibility: Libpam compile for FreeBSD 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: Mon, 01 Aug 2011 22:07:00 -0000 Hi Boris=0A= =0A= (apologies for top-posting)=0A= =0A= Thanks, I had to go this way in the end. My process was:=0A= =0A= 1. enable linux binary compatibility on freebsd.=0A= 2. build a debian chroot environment using debootstrap=0A= 3. obtain some binaries that I could not find in the debian package repos = by extracting them directly from the from binary packages with rpm2cpio=0A= 4. copy all the linux binaries to /usr/compat/linux/lib ... as per the Fre= eBSD Handbook=0A= =0A= After that the binary works perfectly :-) FreeBSD Linux-Binary-Compatibil= ity FTW!!!=0A= =0A= Regards,=0A= Traiano=0A= =0A= ________________________________________=0A= From: Boris Samorodov [bsam@ipt.ru]=0A= Sent: Monday, August 01, 2011 10:23 PM=0A= To: Traiano Welcome=0A= Cc: freebsd-questions@freebsd.org=0A= Subject: Re: Linux Binary Compatibility: Libpam compile for FreeBSD=0A= =0A= Hi All,=0A= =0A= On Mon, 1 Aug 2011 14:30:32 +0000 Traiano Welcome wrote:=0A= =0A= > I need to run a linux binary on freebsd 7.3 that expects to link to=0A= > libpam.so.0. I can't seem to find how to compile libpam (linux-pam) on=0A= > freebsd, or locate some kind of compatible binary I can run on freebsd=0A= > with linux binary compatibility enabled in the ports tree either.=0A= =0A= > Would anyone know if there is a freebsd port of linux libpam, or a=0A= > source package I could easily compile for freebsd 7.3 and upward ?=0A= =0A= > Informational: The binary I'm trying to run is "wmic" , a windows=0A= > management instrumentation client, for monitoring windows systems via=0A= > wmi. There does not seem to be a wmi client available for FreeBSD,=0A= > hence me resorting to a binary compiled for linux :-(=0A= =0A= > some information on the binary:=0A= =0A= > ---=0A= > wmic: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for=0A= > GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped=0A= > ---=0A= =0A= > running it:=0A= =0A= > ---=0A= > ./wmic: error while loading shared libraries: libpam.so.0: cannot open=0A= > shared object file: No such file or directory=0A= > ---=0A= =0A= > Any other suggestions that might help resolving this quandary would be=0A= > welcome :-)=0A= =0A= You may try to install that package by hand:=0A= http://archives.fedoraproject.org/pub/archive/fedora/linux/core/4/i386/os/F= edora/RPMS/pam-0.79-8.i386.rpm=0A= =0A= Hint: there is a how-to about installing linux packages by hand at the=0A= FreeBSD Handbook.=0A= =0A= --=0A= WBR, bsam=0A=