Date: Fri, 12 Dec 2008 15:06:32 +0200 From: Kostik Belousov <kostikbel@gmail.com> To: Lapo Luchini <lapo@lapo.it> Cc: freebsd-amd64@freebsd.org Subject: Re: WINE in jail [Was: i386_set_ldt and wine on AMD64] Message-ID: <20081212130631.GC2038@deviant.kiev.zoral.com.ua> In-Reply-To: <ghtjp9$3j0$1@ger.gmane.org> References: <32d8477c0612301410q2aaf9d39k859d242739554fd6@mail.gmail.com> <20061231003901.GA76688@slackbox.xs4all.nl> <ghtjp9$3j0$1@ger.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <http://en.jnlin.org/2008/06/07/12/> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081212130631.GC2038>