From owner-freebsd-current@FreeBSD.ORG Wed Aug 23 17:19:01 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 0703316A4DA for ; Wed, 23 Aug 2006 17:19:01 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from fw.zoral.com.ua (fw.zoral.com.ua [213.186.206.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F59D43D45 for ; Wed, 23 Aug 2006 17:18:59 +0000 (GMT) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by fw.zoral.com.ua (8.13.4/8.13.4) with ESMTP id k7NHIjhI038466 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Aug 2006 20:18:45 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.13.8/8.13.8) with ESMTP id k7NHIkeE062276; Wed, 23 Aug 2006 20:18:46 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.13.8/8.13.8/Submit) id k7NHIjhD062275; Wed, 23 Aug 2006 20:18:45 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 23 Aug 2006 20:18:45 +0300 From: Kostik Belousov To: Alexander Leidinger Message-ID: <20060823171845.GC84619@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> <20060823191619.0ea9504b@Magellan.Leidinger.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lMM8JwqTlfDpEaS6" Content-Disposition: inline In-Reply-To: <20060823191619.0ea9504b@Magellan.Leidinger.net> User-Agent: Mutt/1.4.2.2i X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on fw.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=1.9 required=5.0 tests=DNS_FROM_RFC_ABUSE, SPF_NEUTRAL,UNPARSEABLE_RELAY autolearn=no version=3.1.4 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on fw.zoral.com.ua 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:19:01 -0000 --lMM8JwqTlfDpEaS6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 23, 2006 at 07:16:19PM +0200, Alexander Leidinger wrote: > Quoting Kostik Belousov (Wed, 23 Aug 2006 18:46:52 = +0300): >=20 > > On Wed, Aug 23, 2006 at 05:23:16PM +0200, Alexander Leidinger wrote: > > > Quoting Kostik Belousov (from Wed, 23 Aug 2006 = =20 > > > 13:36:04 +0300): > > >=20 > > > >On Wed, Aug 23, 2006 at 12:11:57PM +0200, Alexander Leidinger wrote: > > >=20 > > > >>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 w= ay > > > >>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 po= rts > > > >>if desired (a recompile of ports may be needed in the last case, ye= s). > > > > > > > >This will not work. bsdxml is used inside the system binaries. No bi= nary > > > >links again expat and bsdxml simultaneously. Would such binary exist= s, > > > >it could experience problems. > > > > > > > >On the other hand, application using openldap from the ports has hig= h=20 > > > >chance > > > >loading nss_ldap (e.g., due to nsswitch.conf). If nss_ldap linked ag= ainst > > > >renamed library, this would cause the crash. > > >=20 > > > And this can't be solved with symbol versioning? > >=20 > > Probably not. Default openldap build produces unversioned libraries. > > Application linked against such library would happily resolve symbols > > from the versioned lib. >=20 > Why? In which case does this make sense? Is this an implementation > detail or the spec? If you have old system with unversioned library and built app on that box, you could still want to run app on new shiny system that supports versionin= g. This is the case with glibc 2.0 (no version info) and glibc 2.1 (where GNU versioning, i.e. version attached to symbols was introduced). --lMM8JwqTlfDpEaS6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE7I31C3+MBN1Mb4gRAo97AKCe7nxynwn1P5T8fp4ZE7H9UT8ePACg2z1W kuR33+2Z7QVEYbJYNMSL5zU= =xwGj -----END PGP SIGNATURE----- --lMM8JwqTlfDpEaS6--