Date: Fri, 04 Jan 2013 15:56:10 -0500 From: Jung-uk Kim <jkim@FreeBSD.org> To: Martin Laabs <info@martinlaabs.de> Cc: freebsd-emulation@freebsd.org Subject: Re: Bug analyzed - how to fix it? Message-ID: <50E741EA.5070906@FreeBSD.org> In-Reply-To: <50E73952.30802@martinlaabs.de> References: <50E71402.8010702@martinlaabs.de> <50E73952.30802@martinlaabs.de>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50E741EA.5070906>