From owner-freebsd-emulation@FreeBSD.ORG Fri Aug 25 08:36:39 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 0D0CA16A4DE; Fri, 25 Aug 2006 08:36:39 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4EF7F43D4C; Fri, 25 Aug 2006 08:36:37 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.7/8.13.7) with ESMTP id k7P8aT3s092794 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 25 Aug 2006 10:36:29 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.7/8.13.3/Submit) id k7P8aTSq092793; Fri, 25 Aug 2006 10:36:29 +0200 (CEST) Date: Fri, 25 Aug 2006 10:36:28 +0200 From: Divacky Roman To: Alexander Leidinger Message-ID: <20060825083628.GA92621@stud.fit.vutbr.cz> 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> <20060825082320.ygobmy4doo0sowsg@netchild.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060825082320.ygobmy4doo0sowsg@netchild.homeip.net> User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.54 on 147.229.10.14 Cc: cejkar@fit.vutbr.cz, 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 08:36:39 -0000 On Fri, Aug 25, 2006 at 08:23:20AM +0200, Alexander Leidinger wrote: > 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 > contains "#!" at the beginning. If it detects this, it tries to start > the linux version of the interpreter. At least it should do that. If > the above isn't a cut-down version of the ktrace, and if the linux ldd > does contain "#!" as the first two characters of the file (I can't > check ATM), then there's something wrong here. > > Regarding the lib problem in the PR: FreeBSD 6.x and fc4 contain a > libc.so.6. So the order of the ld path (/compat/linux/etc/ld.so.conf > or how it is spelled) may matter. I don't have a 6.x system to test > this, so someone has to play around with it and report here (don't > forget to rerun the linux ldconfig with the '-R /compat/linux' option > after each change). If this doesn't solve the problem, I need to see > the complete ktrace of a failing program which tries to link with > libc.so.6. it might be unrelated but I have reports that libmaping doesnt work in this case when you have the same named library. the problem is in system linker. dont remember details I CC: cejkar@fit.vutbr.cz who reported me this problem. roman