From owner-freebsd-current@FreeBSD.ORG Wed Aug 23 17:14:25 2006 Return-Path: X-Original-To: freebsd-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 8699716A4E0 for ; Wed, 23 Aug 2006 17:14:25 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id B25FA43D49 for ; Wed, 23 Aug 2006 17:14:21 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5E135.dip.t-dialin.net [84.165.225.53]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k7NGuBgf026890; Wed, 23 Aug 2006 18:56:12 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k7NHE7ex052206; Wed, 23 Aug 2006 19:14:08 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Wed, 23 Aug 2006 19:16:19 +0200 From: Alexander Leidinger To: Kostik Belousov Message-ID: <20060823191619.0ea9504b@Magellan.Leidinger.net> In-Reply-To: <20060823154652.GA84619@deviant.kiev.zoral.com.ua> References: <44E9582C.2010400@rsu.ru> <44EAA213.6010507@delphij.net> <002901c6c5ba$628b67d0$9800a8c0@carrera> <86hd0423zk.fsf@xps.des.no> <44EB302A.7010106@rsu.ru> <20060823121157.yawh6f8e844w4osc@netchild.homeip.net> <20060823103604.GB64800@deviant.kiev.zoral.com.ua> <20060823172316.dh1k8h6940ogw8o8@netchild.homeip.net> <20060823154652.GA84619@deviant.kiev.zoral.com.ua> X-Mailer: Sylpheed-Claws 2.4.0 (GTK+ 2.8.20; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: Dag-Erling Sm??rgrav , freebsd-current@freebsd.org, LI Xin , Michael Bushkov Subject: Re: [HEADS UP]: OpenLDAP+nss_ldap+nss_modules separated patch and more (SoC) 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, 23 Aug 2006 17:14:25 -0000 Quoting Kostik Belousov (Wed, 23 Aug 2006 18:46:52 +0300): > On Wed, Aug 23, 2006 at 05:23:16PM +0200, Alexander Leidinger wrote: > > Quoting Kostik Belousov (from Wed, 23 Aug 2006 > > 13:36:04 +0300): > > > > >On Wed, Aug 23, 2006 at 12:11:57PM +0200, Alexander Leidinger wrote: > > > > >>An idea which wasn't suggested yet is to install a renamed version (I > > >>would suggest libbaseldap instead of libbsdldap or libldap_i, but I > > >>don't really care about the name) and a link from the original name > > >>(only the .so and .a, but not the .so.X) to the new name. This link > > >>can be protected with a WITHOUT_LIBLDAP_LINK switch (or the other way > > >>around... depending on what we want to achieve). This way it is > > >>possible to link with the renamed lib in the base system, to use the > > >>base system version of the lib in ports, and to use the lib from ports > > >>if desired (a recompile of ports may be needed in the last case, yes). > > > > > >This will not work. bsdxml is used inside the system binaries. No binary > > >links again expat and bsdxml simultaneously. Would such binary exists, > > >it could experience problems. > > > > > >On the other hand, application using openldap from the ports has high > > >chance > > >loading nss_ldap (e.g., due to nsswitch.conf). If nss_ldap linked against > > >renamed library, this would cause the crash. > > > > And this can't be solved with symbol versioning? > > Probably not. Default openldap build produces unversioned libraries. > Application linked against such library would happily resolve symbols > from the versioned lib. Why? In which case does this make sense? Is this an implementation detail or the spec? Bye, Alexander. -- If you care, you just get disappointed all the time. If you don't care nothing matters so you are never upset. -- Calvin http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137