From owner-freebsd-emulation@FreeBSD.ORG Sun Jul 28 16:41:53 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id EA84F2D0 for ; Sun, 28 Jul 2013 16:41:52 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-wg0-x22a.google.com (mail-wg0-x22a.google.com [IPv6:2a00:1450:400c:c00::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7D6772183 for ; Sun, 28 Jul 2013 16:41:52 +0000 (UTC) Received: by mail-wg0-f42.google.com with SMTP id j13so2113782wgh.1 for ; Sun, 28 Jul 2013 09:41:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=tIjIUniS0mf/+uCzxR5t+yxAeygqSWL2GewpnLK1QPM=; b=TjTSh6KfzoiE1G8+01B2U99c6uVdJzNLXRAKj8idj0SRrwU1CfNmzVXcNyX3WJnCSd rpJ+8R1g8+gQGr7gRTP3YkEIOagleMekj17ztYWQ3Gpd2l6AEqmPGRL+BCI+kHfHKmcW P2IWCJnvgicPz2wuSYMuSC1+USpWRr3ZWkG2Je+//NrtKEBtyrJ9ytV0ZVrs0Y6GOMBL PRpe5nkBsS9lHSAzWfWdCtqLz5kVwUzBvocQG9QPPfNrnI9YvAghhkq745yU4foajr5B i3mri04zRtKxflvNXc2uZ+LFgC7c0/h7kl2Wbg4QAIcVFIombYwS9w6i7JEmzvIou3vf en9w== X-Received: by 10.180.93.195 with SMTP id cw3mr4639171wib.43.1375029710749; Sun, 28 Jul 2013 09:41:50 -0700 (PDT) Received: from dragon.dg ([197.87.211.201]) by mx.google.com with ESMTPSA id ev19sm17236183wid.2.2013.07.28.09.41.48 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 28 Jul 2013 09:41:50 -0700 (PDT) From: David Naylor To: freebsd-emulation@freebsd.org Subject: Re: Why linuxlator rejects libc.so.6 for sligtly newer GNU/Linux 2.6.24 ? Date: Sun, 28 Jul 2013 18:41:42 +0300 Message-ID: <1501259.PApCjomb5h@dragon.dg> User-Agent: KMail/4.9.5 (FreeBSD/9.1-RELEASE; KDE/4.9.5; amd64; ; ) In-Reply-To: <51EC1F1F.2050504@rawbw.com> References: <51EC1F1F.2050504@rawbw.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1465116.zPSddJrrcW"; micalg="pgp-sha1"; protocol="application/pgp-signature" Content-Transfer-Encoding: 7Bit X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 28 Jul 2013 16:41:53 -0000 --nextPart1465116.zPSddJrrcW Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="ISO-8859-1" On Sunday, 21 July 2013 10:49:19 Yuri wrote: > I am trying to run one Linux program on 9.1 amd64. > I copied all relevant shared libraries from Ubuntu and set the directory > with LD_LIBRARY_PATH and libc.so.6 with LD_PRELOAD. > The newer version of libc.so.6 causes the problem: loader for some > reason doesn't accept it and complains: > > ERROR: ld.so: object 'my-libs/libc.so.6' from LD_PRELOAD cannot be > preloaded: ignored. > > This special libc.so.6 is from GNU/Linux 2.6.24 > google-talk-libs/libc.so.6: ELF 32-bit LSB shared object, Intel 80386, > version 1 (SYSV), dynamically linked (uses shared libs), > BuildID[sha1]=0x81a55e819c61f581e6a9179eaf59726dd80aea31, for GNU/Linux > 2.6.24, stripped > While supplied with linux_base-f10-10_7 libc.so.6 is from GNU/Linux 2.6.9: > /compat/linux/lib/libc.so.6: ELF 32-bit LSB shared object, Intel 80386, > version 1 (SYSV), dynamically linked (uses shared libs), > BuildID[sha1]=0x4f5aefe82ff9a8102064d90e7a03c283b6751c39, for GNU/Linux > 2.6.9, not stripped > > Difference is only in the minor version. Why this library gets rejected? The short answer is that Linux does not follow a version system that most people are familiar with. Since the 2.6.x (and now 3.x) days the value of "2.6." and "3." have had no meaning. To my understanding the version number "x" does not guarantee backward compatibility for the KI/ABI/API (although syscall I think is backward compatible). So, on FreeBSD 9 the Linuxulator supports version 2.6.16, which is not feature compatible with 2.6.24 as the ".24" does not denote a bug fix level as most would understand but an arbitrary increase the the number (my view is that the Linux kernel version has no value other than a monotonically increases series, except for if and when it has a forth denomination). Googling will indicate more about the exact meaning of the Linux kernel version. --nextPart1465116.zPSddJrrcW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEABECAAYFAlH1SckACgkQUaaFgP9pFrLIGACdH7PQXGRY5NP5WUu/wo/hL7Q6 E3AAnivM+5VKI9twDOTMtz0w8ltqBqMX =nv5e -----END PGP SIGNATURE----- --nextPart1465116.zPSddJrrcW--