From owner-freebsd-current@FreeBSD.ORG Wed Jan 10 16:01:15 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 59E3016A47E for ; Wed, 10 Jan 2007 16:01:15 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by mx1.freebsd.org (Postfix) with ESMTP id D46C413C45D for ; Wed, 10 Jan 2007 16:01:14 +0000 (UTC) (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.8/8.13.7) with ESMTP id l0AG1CDJ086237 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 10 Jan 2007 17:01:12 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id l0AG1CBR086236; Wed, 10 Jan 2007 17:01:12 +0100 (CET) Date: Wed, 10 Jan 2007 17:01:12 +0100 From: Divacky Roman To: Tijl Coosemans Message-ID: <20070110160112.GA85303@stud.fit.vutbr.cz> References: <20070108165157.GA94941@stud.fit.vutbr.cz> <200701101151.51662.tijl@ulyssis.org> <20070110132101.k8zzn281ic8w04ks@webmail.leidinger.net> <200701101653.25773.tijl@ulyssis.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200701101653.25773.tijl@ulyssis.org> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Cc: Boris Samorodov , Alexander Leidinger , freebsd-current@freebsd.org Subject: Re: broken linuxulator in -current as of Jan 8 17:51:45 CET X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2007 16:01:15 -0000 > Yes, it works with 2.6.16. Here's what I think is happening: > > ls is linked against librt.so.1 with /lib and /usr/lib as runtime > search paths and thus: > > - linker calls open("/lib/librt.so.1") > - kernel returns "/compat/linux/lib/librt.so.1" > - linker reads and sees it requires kernel ABI 2.4.20 > * when osrelease=2.6.16, this is ok, all done > * when osrelease=2.4.2 > + linker calls open("/usr/lib/librt.so.1") > + kernel returns "/compat/linux/usr/lib/librt.so.1" (symlink) > (previously kernel returned FreeBSD "/usr/lib/librt.so.1" here, > which caused linker error) > + linker reads and sees it requires kernel ABI 2.4.20, not ok > + linker calls open("/lib/obsolete/linuxthreads/librt.so.1") > + kernel returns "/compat/linux/lib/obsolete/linuxthreads/librt.so.1" > + linker reads and sees it requires kernel ABI 2.2.5, ok, all done I think you are right.... I discussed it with alexander today and I propose that installation of linux_base should set (or tell user to set) the osrelease to the version whicih is the given linux_base shipped with on default. fc4 ships with 2.6.11 kenrel and we force it to use 2.4.2 no wonder it doesnt work as expected thnx for the info roman