when using nss_ldap by emerging nss_ldap-215-r1 produce libnss_ldap-2.3.2.so that not linking with other require lib so if we do: #ldd /lib/libnss_ldap-2.3.2.so /usr/bin/ldd: line 1: /lib/libnss_ldap-2.3.2.so: No such file or directory but when we manualy build it work dan linked, it's will cause getent passwd will not show user in ldap db Reproducible: Always Steps to Reproduce: 1. emerge nss_ldap 2. edit /etc/ldap.conf and /etc/nsswitch.conf 3. getent passwd (not show anything expect local /etc/passwd) 4. #ldd /lib/libnss_ldap-2.3.2.so Actual Results: /usr/bin/ldd: line 1: /lib/libnss_ldap-2.3.2.so Expected Results: ldd /lib/libnss_ldap-2.3.2.so linux-gate.so.1 => (0xffffe000) libldap.so.2 => /usr/lib/libldap.so.2 (0x4001a000) liblber.so.2 => /usr/lib/liblber.so.2 (0x40050000) libdb-4.1.so => /usr/lib/libdb-4.1.so (0x4005c000) libdl.so.2 => /lib/libdl.so.2 (0x40121000) libnsl.so.1 => /lib/libnsl.so.1 (0x40125000) libresolv.so.2 => /lib/libresolv.so.2 (0x4013a000) libc.so.6 => /lib/libc.so.6 (0x4014c000) libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x4027b000) libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x4028f000) libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x402c0000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
Robin, raker's MIA, can you handle this one?
sorry for less debuging, before submit this bug, cause this my first bug report and when try to resolv with manual compile and configure and i figure out that the problem is at LDFLAG in my make.conf (LDFLAG='-pie')
and when i uncoment the LDFLAG and re emerge the nss_ldap it's work #ldd /lib/libnss_ldap.so.2 linux-gate.so.1 => (0xffffe000) libldap.so.2 => /usr/lib/libldap.so.2 (0x40026000) liblber.so.2 => /usr/lib/liblber.so.2 (0x40058000) libdb-4.1.so => /usr/lib/libdb-4.1.so (0x40064000) libdl.so.2 => /lib/libdl.so.2 (0x40124000) libnsl.so.1 => /lib/libnsl.so.1 (0x40127000) libresolv.so.2 => /lib/libresolv.so.2 (0x4013b000) libc.so.6 => /lib/libc.so.6 (0x4014d000) libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x40275000) libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x402a4000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)