nsswitch doesn't run PADL's nss_ldap.so

Hi, all!

I've really broken my brain.

I've successfully compiled PADL's nss_ldap-253 with openldap-2.3.21 and openssl-0.9.7i. All linked static.

/etc/nsswitch.conf reads "passwd:files ldap". nss_ldap.so copied to /usr/lib/nss_ldap.so.1.

When I run `getent passwd` it displays content of /etc/passwd only and exits with code 0. truss shows that it opens /usr/lib/nss_ldap.so.1. But it doesn't run any functions, even _nss_ldap_passwd_constr().

I've downloaded ready-to-use nss_ldap.so.1 from www.symas.com and it works fine. It frustrates and encourages me. I cannot understand what is wrong with my job?

I have Sun Fire V240, Solaris 9 9/05, GCC 3.4.2.

openssl-0.9.7i:

# ./config no-hw threads

# make ; make install

openldap-2.3.21:

# ./configure --disable-ipv6 --disable-slapd --disable-slurpd --disable-shared --without-cyrus-sasl \

--with-tls CPPFLAGS=-I/usr/local/ssl/include LDFLAGS=-L/usr/local/ssl/lib

# make depend ; make ; make install

nss_ldap-253:

# CPPFLAGS=-I/usr/local/ssl/include LDFLAGS=-L/usr/local/ssl/lib LIBS="-lssl -lcrypto" \

./configure --with-ldap-dir=/usr/local --with-ldap-lib=openldap --enable-rfc2307bis \

--with-ldap-conf-file=/etc/ldap.conf --with-ldap-secret-file=/etc/ldap.secret

# LDADD=-L/usr/local/ssl/lib make

# cp nss_ldap.so /usr/lib/nss_ldap.so.1

# ln -s /etc/ldap.conf /usr/local/etc/openldap/ldap.conf

[1474 byte] By [Denis_Melnikov] at [2007-11-26 10:32:37]
# 1
GCC 3.4.2 was the matter. GCC 3.3.2 works fine.
Denis_Melnikov at 2007-7-7 2:40:38 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...