Date: Wed, 23 Aug 2006 14:02:59 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: LI Xin <delphij@delphij.net> Cc: Dag-Erling Sm??rgrav <des@des.no>, freebsd-current@freebsd.org, Michael Bushkov <bushman@rsu.ru> Subject: Re: [HEADS UP]: OpenLDAP+nss_ldap+nss_modules separated patch and more (SoC) Message-ID: <20060823110258.GC64800@deviant.kiev.zoral.com.ua> In-Reply-To: <1156330195.2444.35.camel@spirit> 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> <1156330195.2444.35.camel@spirit>
next in thread | previous in thread | raw e-mail | index | archive | help
--bKyqfOwhbdpXa4YI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 23, 2006 at 06:49:55PM +0800, ?????? (LI Xin) wrote: > ??? 2006-08-23?????? 13:36 +0300???Kostik Belousov????????? > [snip] > > > An idea which wasn't suggested yet is to install a renamed version (I= =20 > > > would suggest libbaseldap instead of libbsdldap or libldap_i, but I = =20 > > > don't really care about the name) and a link from the original name = =20 > > > (only the .so and .a, but not the .so.X) to the new name. This link = =20 > > > can be protected with a WITHOUT_LIBLDAP_LINK switch (or the other way= =20 > > > around... depending on what we want to achieve). This way it is =20 > > > possible to link with the renamed lib in the base system, to use the = =20 > > > base system version of the lib in ports, and to use the lib from port= s =20 > > > if desired (a recompile of ports may be needed in the last case, yes). > >=20 > > 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. > >=20 > > On the other hand, application using openldap from the ports has high c= hance > > loading nss_ldap (e.g., due to nsswitch.conf). If nss_ldap linked again= st > > renamed library, this would cause the crash. > >=20 > > In fact, similar problem was fixed not so long time ago by Dag-Erling > > in the pam_ssh (duplicating existing symbols by the pam). >=20 > Maybe we can help him to extract some necessary routines out of the lber > and ldap libraries, and make it an internal library (say, put into the > nss module rather than installing a separate .so file)? May be. Moreover, this module (and any nss module) shall export only symbols needed by nss interface, not polluting the global namespace of process. --bKyqfOwhbdpXa4YI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE7DXiC3+MBN1Mb4gRAmJFAKCfSfhib/qpwz3kkfifhHal+n2cpgCfevee rST517myFjvcLH59c5ZfpuY= =RL3b -----END PGP SIGNATURE----- --bKyqfOwhbdpXa4YI--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060823110258.GC64800>