From owner-freebsd-emulation@FreeBSD.ORG Tue Jun 26 12:03:42 2007 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 161C016A469; Tue, 26 Jun 2007 12:03:42 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id AA10613C4AD; Tue, 26 Jun 2007 12:03:41 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A565E1.dip.t-dialin.net [84.165.101.225]) by redbull.bpaserver.net (Postfix) with ESMTP id 38E8F2E26E; Tue, 26 Jun 2007 14:03:23 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 0030A5B49F3; Tue, 26 Jun 2007 14:01:36 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l5QC1auP065226; Tue, 26 Jun 2007 14:01:36 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Tue, 26 Jun 2007 14:01:36 +0200 Message-ID: <20070626140136.uu7apec8gsg44ggc@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Tue, 26 Jun 2007 14:01:36 +0200 From: Alexander Leidinger To: "Arno J. Klaassen" References: <20070623180527.46d8b270@deskjail> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=3.573, required 8, BAYES_50 2.50, DKIM_POLICY_SIGNSOME 0.00, MIME_QP_LONG_LINE 1.40, RDNS_DYNAMIC 0.10, SMILEY -0.50, TW_OC 0.08) X-BPAnet-MailScanner-SpamScore: sss X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: emulation@freebsd.org Subject: Re: Testers for linuxulator MFC needed X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2007 12:03:42 -0000 Quoting "Arno J. Klaassen" (from 24 Jun =20 2007 17:36:30 +0200): > > Hello, > >> I don't have a -stable system and need some testers for a partial >> MFC-patch. I'm interested in reports if it works (with e.g. >> skype/acroread/...) or not (I may have missed some stuff...). > > I tried on a very recent amd64-stable : > > I probably do something wrong, but I need the (small) attached > patch to get it compiled, but then I get at linking : I've updated the patch =20 (http://www.Leidinger.net/FreeBSD/linuxolator/linuxulator_mfc.diff). =20 It may still not build on amd64 as I changed a lot, but the problems =20 you pointed out should be fixed. It builds on i386, but I don't know =20 if it works. Here's the current state of affairs: ---snip--- - kern_descrip.c rev 1.296, syscallsubr.h rev 1.41 by jhb: Add a kern_close() so that the ABIs can close a file descriptor w/o havi= ng to populate a close_args struct and change some of the places that do. - sync linuxulator (bugfixes + minor syscalls): * mmap fixes * fix memleaks * add syscalls: + stat (i386, amd64) + iopl (i386, amd64) + mprotect (i386) + rt_sigpending (i386) + rt_sigtimedwait (i386) + statfs64 (i386, amd64) + utimes (i386, amd64) + timer_* (i386) + mq_* (i386, amd64) + settimeofday (amd64) * more errno value mapping * don't limit number of syscalls to 255 * ioctl TIOCGPTN * handle more socket options * de-COMPAT_43-ify: + sethostname + lstat + ftruncate + nanosleep (i386) + socket related ioctl's * add more dummy syscalls so that we know what is needed * handle address space limit * style(9) - sync linprocfs * /proc/sys/... part ---snip--- > PS, while here : is the following behaviour easy to implement (or > already done in p4) ? : I think this is something Roman (CCed) could investigate... :) Bye, Alexander. > xbox# /compat/linux/bin/bash > bash-3.00$ /lib/libc.so.6 > bash: /lib/libc.so.6: cannot execute binary file > bash-3.00$ > > (for info : uname -a > FreeBSD xbox 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Sat Jun 23 19:27:15 =20 > CEST 2007 =20 > toor@xbox:/usr/obj/files/bsd/src-current/sys/SEMPRON64 amd64 ) > > On 'real' Linux this gives (e.g) : > > /lib/libc.so.6 > GNU C Library stable release version 2.5, by Roland McGrath et al. > Copyright (C) 2006 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. > There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A > PARTICULAR PURPOSE. > Compiled by GNU CC version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, =20 > pie-8.7.9). > Compiled on a Linux 2.6.17 system on 2007-05-06. > Available extensions: > C stubs add-on version 2.1.2 > crypt add-on version 2.1 by Michael Glad and others > Gentoo patchset 1.5 > GNU Libidn by Simon Josefsson > GNU libio by Per Bothner > NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk > Native POSIX Threads Library by Ulrich Drepper et al > Support for some architectures added on, not maintained in =20 > glibc core. > BIND-8.2.3-T5B > Thread-local storage support included. > > NB, brandelf -t Linux /compat/linux/lib/ld-linux.so.2 makes no difference. --=20 The 11 is for people with the pride of a 10 and the pocketbook of an 8. =09=09-- R. B. Greenberg http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137