Re: Problem Linking to LDAP C SDK and Oracle

Milan Jurik <[email protected]>
Newsgroups gmane.comp.mozilla.devel.directory
Organization Sun Microsystems - Prague Czech Republic
Message-ID <1215597055.2147.58.camel@xylabone>
Hi,

V út, 08. 07. 2008 v 23:37, Rich Megginson píše:
> Dennis Darch wrote:
> > I want to enable our application to function as an LDAP client that can 
> > connect to servers either with SSL or without it.  The program also accesses 
> > a database using either Oracle 10g, Oracle 9i, or SQL Server 2005 native API 
> > libraries.  This program is built for MS Windows (2000, XP, and 2003), Sun 
> > Solaris (8, 9, and 10), and HP-UX (11i).  I am using the Mozilla LDAP C SDK 
> > 6.0.4, NSS 3.11.9 and NSPR 4.7.
> > 
> > This works fine when I build it for Windows and Oracle 10g.  But when I 
> > build for Solaris and Oracle 10g, the LDAP API does not work.
> > 
> > To isolate the problem I have built a simple LDAP demo program that calls 
> > ldap_init() (or ldapssl_client_init() followed by ldapssl_init() ), then 
> > ldap_simple_bind_s() followed by ldap_unbind().  If I just link my test 
> > program to the LDAP C SDK shared objects, it works fine (both with and 
> > without SSL).
> > 
> > But if I also link (but do not call) a single Oracle ProC module and the 
> > relevant Oracle 10g libraries (all of which are *.a archives, not shared 
> > *.so objects), then the test program fails.  It appears that the calls to 
> > ldap_init(), ldapssl_client_init(), ldapssl_init(), ldap_err2string(), and 
> > ldapssl_err2string() never enter the code in the SDK *.so objects but always 
> > return a zero value.  Both debug fprintf(stderr) calls inserted into the SDK 
> > code and Sun Workshop 6.0 (Forte Developer 6) attempts to step into the SDK 
> > routines show that they are bypassed.  This happens whether everything is 
> > built for debug or optimized.
> > 
> > Is this a known problem?  Is there some way to work around it?
> 
> Is it possible that the oracle libraries define these functions?  I know 
> oracle has their own ldap support.
> 

Yes, it seems that Oracle binaries have statically linked some copy of
libldap. No idea why.

Look at nm output from those binaries.

Best regards,

Milan

_______________________________________________
dev-tech-ldap mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-ldap
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.