From owner-freebsd-current@FreeBSD.ORG Mon Jun 26 19:39:52 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBB4616A507; Mon, 26 Jun 2006 19:39:52 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 217D545A4F; Mon, 26 Jun 2006 19:06:35 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.6/8.13.6/NETPLEX) with ESMTP id k5QJ6Xjg004852; Mon, 26 Jun 2006 15:06:34 -0400 (EDT) Date: Mon, 26 Jun 2006 15:06:33 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Norikatsu Shigemura In-Reply-To: <20060625191405.d0e78240.nork@FreeBSD.org> Message-ID: References: <44986777.6070601@FreeBSD.org> <20060621061437.GA53019@fit.vutbr.cz> <2265.211.18.249.19.1150871779.squirrel@mail.ninth-nine.com> <20060621121114.h6udocel5wsgg8sg@netchild.homeip.net> <2692.219.127.74.121.1150885501.squirrel@mail.ninth-nine.com> <20060621155053.d6lseiz8z4ow8wo8@netchild.homeip.net> <20060623013106.d4397e26.nork@FreeBSD.org> <20060622230416.3907a848@kan.dnsalias.net> <20060625191405.d0e78240.nork@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: Alexander@Leidinger.net, Alexander Kabaev , current@freebsd.org Subject: Re: Linux-flashplugin7 & rtld - RFC X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 19:39:53 -0000 On Sun, 25 Jun 2006, Norikatsu Shigemura wrote: > On Thu, 22 Jun 2006 23:04:16 -0400 > Alexander Kabaev wrote: >> On Thu, 22 Jun 2006 12:49:59 -0400 (EDT) >> Daniel Eischen wrote: >>> On Fri, 23 Jun 2006, Norikatsu Shigemura wrote: >>>> On Wed, 21 Jun 2006 12:39:09 -0400 (EDT) >> >>>> spamming? junk symbols? Humm... I don't think so, but it >>>> is POLICY that I think. Althought I'm working, I want to >>>> merge 'Userland COMPAT_LINUX technology' to FreeBSD source >>>> tree. I hope that you do consent. So I hope to discuss >>>> @GLIBC_2.* symbols:-). >>> No, I would still oppose that. I think separate libraries >>> are the way to go. > > deischen: Sorry, I didn't read 'separate libraries'. > >> ... and I will support Daniel's objection if it will come to that. >> Sorry, but Linux symbols in FreeBSD native libraries amount to only one >> thing - pollution and nothing else. > > Humm.. Even if GLIBC version information in Version.def, > should I say that it was polluted or not.... Yes, any GLIBC symbols in our stock libraries would be pollution IMHO. > =============================================================================== > * Can we separate library to use Linux-flash7? > Yes, we need following conditions (1 or more): > > 1. Following error should be banished. > [/lib/libc.so.7: version GLIBC_2.1 required by /usr/X11R6/lib/linux-flashplugin7/libflashplayer.so not found] > > 1-a. To banish, I think that following code should be fixed at > check_object_provided_version in src/libexec/rtld-elf/rtld.c. > > if (vd == NULL) { > _rtld_error("%s: version %s required by %s not defined", > depobj->path, vername, refobj->path); > return (-1); > } > > I tried to remove 'return (-1);', but I don't know side-effects. I think that rtld needs to be fixed so that we fully respect libmap.conf. If flashplayer.so requires (Linux) library libc.so.7, and libc.so.7 is mapped to wrapper.so, then any versioned symbols should be pulled from wrapper.so, not our own native libc.so.7. The check for the object providing the correct version should still be done, but it needs to be checking the correct (libmap'd) object. -- DE