From owner-freebsd-emulation@FreeBSD.ORG Fri Jan 4 20:57:25 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 21045ABB for ; Fri, 4 Jan 2013 20:57:25 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from hammer.pct.niksun.com (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id CE7188E1; Fri, 4 Jan 2013 20:57:24 +0000 (UTC) Message-ID: <50E741EA.5070906@FreeBSD.org> Date: Fri, 04 Jan 2013 15:56:10 -0500 From: Jung-uk Kim User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Martin Laabs Subject: Re: Bug analyzed - how to fix it? References: <50E71402.8010702@martinlaabs.de> <50E73952.30802@martinlaabs.de> In-Reply-To: <50E73952.30802@martinlaabs.de> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org 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: Fri, 04 Jan 2013 20:57:25 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2013-01-04 15:19:30 -0500, Martin Laabs wrote: > Hi, > > I discovered it a bit further - solution 1 does not work - at least > not for newer libc. Correct, I believe you really need the compat shims. Because all supported linux_base-* lack Linux 2.4.x support, the compat shims are not compiled into the libc at all, it seems. > However - since the problem is a libc function call - coulnd't I > use some LD_PRELOAD library to write a if_nameindex function that > is compatible to the freebsd linuxulator? I believe you can. Alternatively, you can rebuild libc to compile in the compat shims, i.e., patch sysdeps/unix/sysv/linux/kernel-features.h to set __ASSUME_NETLINK_SUPPORT to 0, rebuild the rpm, etc. Jung-uk Kim -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQEcBAEBAgAGBQJQ50HqAAoJECXpabHZMqHOpBkH/22zV6gG+KI/G93hr4b75irW IfYyHBKsiSTibvq3L3HfEtfDjT9BBVOW4beuQyQ9/oQT9Zk+Jpd/h4THZEatWR/d U9g0dgPFriHzzIwPk2tPpjJRSEi6obDzeXxhV70oBDgNcBJUncKm4FLHOvVrm+0g IgDnEGvVpmioT/5tKmp3zncosCY0pqZ3pwybHwKxha29xvlqnKunLD3b6/+e9jac Rx0obdbl3kWb8H+NyHhjb0UOf3IPNWeAE+eVasMZNlF6KLX6j88mIWE0+rXcfBcN SM7hRVai3RgM9+u0fzVIeID2FUE17YUSjeV7dn47i9/VHzUoumYO99jI1LiZESI= =dArT -----END PGP SIGNATURE-----