From owner-freebsd-emulation@FreeBSD.ORG Fri Aug 25 06:23:34 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B3CC216A4E0; Fri, 25 Aug 2006 06:23:34 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id B264943D79; Fri, 25 Aug 2006 06:23:16 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5FD71.dip.t-dialin.net [84.165.253.113]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k7P6558l035555; Fri, 25 Aug 2006 08:05:05 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k7P6NKb8073210; Fri, 25 Aug 2006 08:23:20 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from psbru.cec.eu.int (psbru.cec.eu.int [158.169.131.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Fri, 25 Aug 2006 08:23:20 +0200 Message-ID: <20060825082320.ygobmy4doo0sowsg@netchild.homeip.net> X-Priority: 3 (Normal) Date: Fri, 25 Aug 2006 08:23:20 +0200 From: Alexander Leidinger To: Boris Samorodov References: <17646.3029.176290.711490@yeti.mininet> <80657181@bsam.ru> <17646.6613.28038.72832@yeti.mininet> <14575472@bsam.ru> <17646.7832.330245.660064@yeti.mininet> <48492411@bsam.ru> In-Reply-To: <48492411@bsam.ru> 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.2) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: freebsd-emulation@freebsd.org, freebsd-gnats-submit@freebsd.org, Markus Hoenicka Subject: Re: ports/102474: linux_base-fc-4_8 appears broken, does not allow to run Linux binaries 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: Fri, 25 Aug 2006 06:23:34 -0000 Quoting Boris Samorodov (from Fri, 25 Aug 2006 02:28:36 +0400)= : > On Thu, 24 Aug 2006 23:48:08 +0200 Markus Hoenicka wrote: >> Boris Samorodov writes: > >> > Can you give me a link to ktrace.out for >> > "ktrace -i /compat/linux/usr/bin/ldd /compat/linux/sbin/ldconfig"? > >> Yes, please have a look at: > >> http://refdb.sourceforge.net/stuff/ldd/ktrace.out > > Aha, /compat/linux/usr/bin/ldd is a script. Can't say for sure should > it work or not but something strange does exist: > ----- > 24546 ktrace RET ktrace 0 > 24546 ktrace CALL execve(0xbfbfe85e,0xbfbfe75c,0xbfbfe768) > 24546 ktrace NAMI "/compat/linux/usr/bin/ldd" > 24546 ktrace NAMI "/bin/sh" > 24546 ktrace NAMI "/libexec/ld-elf.so.1" > 24546 sh RET execve 0 > ----- > > Alexander, can you comment on this behaviour? Thanks! The kernel contains code to detect if a linux program is a script and =20 contains "#!" at the beginning. If it detects this, it tries to start =20 the linux version of the interpreter. At least it should do that. If =20 the above isn't a cut-down version of the ktrace, and if the linux ldd =20 does contain "#!" as the first two characters of the file (I can't =20 check ATM), then there's something wrong here. Regarding the lib problem in the PR: FreeBSD 6.x and fc4 contain a =20 libc.so.6. So the order of the ld path (/compat/linux/etc/ld.so.conf =20 or how it is spelled) may matter. I don't have a 6.x system to test =20 this, so someone has to play around with it and report here (don't =20 forget to rerun the linux ldconfig with the '-R /compat/linux' option =20 after each change). If this doesn't solve the problem, I need to see =20 the complete ktrace of a failing program which tries to link with =20 libc.so.6. Bye, Alexander. --=20 58: Shareware installieren Die System Clock um drei Monate zur=C3=BCckstellen (Peter Berlich= ) http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137