From owner-freebsd-amd64@FreeBSD.ORG Fri Dec 12 13:41:41 2008 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E12F106567A for ; Fri, 12 Dec 2008 13:41:41 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.terabit.net.ua (mail.terabit.net.ua [195.137.202.147]) by mx1.freebsd.org (Postfix) with ESMTP id E00AF8FC23 for ; Fri, 12 Dec 2008 13:41:40 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from skuns.zoral.com.ua ([91.193.166.194] helo=mail.zoral.com.ua) by mail.terabit.net.ua with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1LB7j2-0004Tc-2E; Fri, 12 Dec 2008 15:06:36 +0200 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id mBCD6WPP059274 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 12 Dec 2008 15:06:32 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id mBCD6W4C094057; Fri, 12 Dec 2008 15:06:32 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id mBCD6WFi094056; Fri, 12 Dec 2008 15:06:32 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 12 Dec 2008 15:06:32 +0200 From: Kostik Belousov To: Lapo Luchini Message-ID: <20081212130631.GC2038@deviant.kiev.zoral.com.ua> References: <32d8477c0612301410q2aaf9d39k859d242739554fd6@mail.gmail.com> <20061231003901.GA76688@slackbox.xs4all.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YyEPptUYZmwjRdlG" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.93.3, clamav-milter version 0.93.3 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua X-Virus-Scanned: mail.terabit.net.ua 1LB7j2-0004Tc-2E 44053b7b5e381d06af84f48f1f78f19c X-Terabit: YES Cc: freebsd-amd64@freebsd.org Subject: Re: WINE in jail [Was: i386_set_ldt and wine on AMD64] X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2008 13:41:41 -0000 --YyEPptUYZmwjRdlG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 12, 2008 at 01:00:41PM +0100, Lapo Luchini wrote: > Roland Smith wrote: > > On Sat, Dec 30, 2006 at 05:10:08PM -0500, Siavosh Benabbas wrote: > >> Hi, > >> I know that this is brought up several time on this list, but I wanted= to > >> run wine on my FreeBSD AMD64 machine. > >> I know that a 64-bit wine is nearly impossible but I thought that an i= 386 > >> compilation should work. > >=20 > > You'd need a cross-compiler to start with. That's the easy part. > >=20 > > Then you'd need ports infrastructure to compile 32-bit ports on amd64. >=20 > Easiest approach to avoid that part seems to be seting up a full i386 > jail inside the amd64 host, and install WINE normally from the ports. >=20 > >From man jail(8): >=20 > host# D=3D/here/is/the/jail > host# cd /usr/src > host# mkdir -p $D > host# make world DESTDIR=3D$D > host# make distribution DESTDIR=3D$D > host# mount -t devfs devfs $D/dev >=20 > But as suggested here I actually: >=20 > host# make world distribution TARGET_ARCH=3Di386 TARGET=3Di386 DESTDIR= =3D$D > host# ln -s ld-elf.so.1 $D/libexec/ld-elf32.so.1 This is not needed on recent HEAD or RELENG_7. >=20 > Then added IP alias for jail use, set up a unionfs over ports (to avoid > having them double) and can correctly login in the jail: >=20 > host# ifconfig em0 inet $IP/32 alias > host# mount -t unionfs -o noatime,below /usr/ports $D/usr/ports > host# jail $D $HOSTNAME $IP /bin/tcsh >=20 > >From there I normally installed WINE: >=20 > jail# cd /usr/ports/emulatos/wine > jail# make install clean >=20 > ???but then it just ???bus error??? dumps on me??? something to do with L= DT: >=20 > jail# winecfg > Bus error (core dumped) > jail# gdb `which wine-pthread` wine-pthread.core > (gdb) bt > #0 0x7df3b2e9 in wine_ldt_init_fs () from /usr/local/lib/libwine.so.1 > #1 0x7bf00fb3 in init_pthread_functions () > #2 0x7e36a81f in thread_init () from /usr/local/lib/wine/ntdll.dll.so > #3 0x7e345d98 in __wine_process_init () from > /usr/local/lib/wine/ntdll.dll.so > #4 0x7df3bd74 in wine_init () from /usr/local/lib/libwine.so.1 > #5 0x7df571eb in wine_casemap_upper () from > /usr/local/lib/libwine.so.1 Hmm, so you have a wine on amd64 and willingness to test ? Please, try http://people.freebsd.org/~kib/misc/amd64_ldt.2.patch patch is against HEAD. --YyEPptUYZmwjRdlG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAklCYdcACgkQC3+MBN1Mb4jLPACg149nVupTP/+Fe65IC/Rhm+fa jbMAoJ9LLC/h/r8jyX2Jw2t1zWdU2m8Q =fBjH -----END PGP SIGNATURE----- --YyEPptUYZmwjRdlG--