lists.arthurdejong.org
RSS feed

RE: [nssldap] Solaris 10 update 5 - nss_ldap makes nscd dump core

[Date Prev][Date Next] [Thread Prev][Thread Next]

RE: [nssldap] Solaris 10 update 5 - nss_ldap makes nscd dump core



Hello Thomas,
 
thank you for the information. Can you comment on why you chose to statically 
link the libraries that nss_ldap calls in? We have been trying to use dynamic 
linking and keep being told that the routine gss_krb5_ccache_name does not 
exist, despite the fact that we can see it in the mech_krb5.so.1 library file.
 
As we are linking the 265 release with my patches attached then there is still 
the possibility that we have a link time error, possibly caused by my having to 
include an interface spec for the gss_krb5_ccache_name in the source as it is 
missing from the Solaris 10 header files.
 
Howard.
 
Coherent Technology Limited, 23 Northampton Square, Finsbury, London EC1V 0HL, 
United Kingdom
Telephone: +44 20 3355 6467 Mobile: +44 7980 639379
Company Email: coherent@cohtech.com Website: http://www.cohtech.com 
<http://www.cohtech.com/>  

________________________________

From: owner-nssldap@padl.com on behalf of Thomas Glanzmann
Sent: Fri 2009-12-25 10:38
To: Howard Wilkinson
Cc: Matthew Hardin; Luke Howard; nssldap@padl.com; Bernhard.Thalmayr@Sun.COM
Subject: Re: [nssldap] Solaris 10 update 5 - nss_ldap makes nscd dump core



Hello Howard,

> Did these changes ever get released into the mainstream?

nothing that I'm aware off. But The native ldap client of Solaris is
very usable these days (Solaris 10 Update 8).

> I have recently ported my patches to Solaris 10u5 but the code does
> not seem to be being called and I wanted to check whether I had missed
> some interface changes that need to be incorporated.

In my experience the code doesn't get called if a) nscd is running or b)
your shared object doesn't find it's libraries. You can check very
easily using:

ldd /path/to/nss-ldap.so

> Also, if anybody has a configure and compile stanza that works on
> Solaris 10 with native compilers and libraries would they be willing
> to share?

I have something that links the dependencies static using the native
compilers:

export CC=cc
export CXX=CC
export 
PATH="/opt/SunStudio12u1/sunstudio12.1/bin:/usr/ccs/bin:/usr/bin:/opt/csw/bin"

(
        cd Libnet-1.0.2a
        ./configure 
--prefix=/var/tmp/sithglan-pkg/nss_ldap-260-buildroot/dependencies
        gmake
        gmake install
)

export LDFLAGS='-L/var/tmp/sithglan-pkg/nss_ldap-260-buildroot/dependencies/lib'
export 
CPPFLAGS='-I/var/tmp/sithglan-pkg/nss_ldap-260-buildroot/dependencies/include'

(
        cd openssl-0.9.8l
        ./Configure 
--prefix=/var/tmp/sithglan-pkg/nss_ldap-260-buildroot/dependencies shared 
solaris-x86-cc
        gmake
        gmake install
)

(
        cd krb5-1.4.4/src
        ./configure 
--prefix=/var/tmp/sithglan-pkg/nss_ldap-260-buildroot/dependencies 
--exec-prefix=/var/tmp/sithglan-pkg/nss_ldap-260-buildroot/dependencies 
--enable-static
        gmake
        gmake install
)

(
        cd cyrus-sasl-2.1.23
        ./configure 
--prefix=/var/tmp/sithglan-pkg/nss_ldap-260-buildroot/dependencies 
--with-staticsasl
        gmake
        gmake install
)

(
        cd db-4.8.24/build_unix
        ../dist/configure 
--prefix=/var/tmp/sithglan-pkg/nss_ldap-260-buildroot/dependencies 
--disable-shared
        gmake
        gmake install
)

(
        cd openldap-2.4.21
        LIBS="-lrt" ./configure 
--prefix=/var/tmp/sithglan-pkg/nss_ldap-260-buildroot/dependencies
        gmake
        gmake install
)

(
        cd nss_ldap-260
        ./configure --exec-prefix=/usr --infodir=/usr/share/info 
--mandir=/usr/share/man --enable-schema-mapping --enable-rfc2307bis 
--enable-configurable-krb5-ccname-gssapi
        gmake
        cc  -g  -L/var/tmp/sithglan-pkg/nss_ldap-260-buildroot/dependencies/lib 
-o nss_ldap.so -Bdirect -z nodelete -Bdynamic -M ./exports.solaris -G 
ldap-nss.o ldap-pwd.o ldap-grp.o ldap-netgrp.o ldap-rpc.o ldap-hosts.o 
ldap-network.o ldap-proto.o ldap-spwd.o ldap-alias.o ldap-service.o 
ldap-schema.o ldap-ethers.o ldap-bp.o ldap-automount.o util.o ltf.o snprintf.o 
resolve.o dnsconfig.o irs-nss.o pagectrl.o ldap-sldap.o ldap-init-krb5-cache.o  
-Bstatic -lldap -llber -lsasl2 -Bstatic -lssl -lcrypto -lgssapi_krb5 -lcom_err 
-lkrb5 -lk5crypto -lkrb5support -Bdynamic -ldl -lsocket -lnsl -lresolv

        Thomas