Solved

ldap_simple_bind_s problem with 64 bit compiled LDAP C SDK on Solaris 5.8

Posted on 2004-10-07
7
403 Views
Last Modified: 2013-12-21
I've downloaded the ldap c sdk for 64 bits from the Sun site and am trying to run the examples. I've built them with the flags in the Makefile for Solaris 64 bits. When running the csearch example the ldap_simple_bind_s call fails. If I run the same example in 32 bit mode with the 32 bit libraries it works fine. Has anyone been able to get ldap_simple_bind_s to work in 64 bit mode with the ldap c sdk kit? If so, what compiler did you use and what were the options? I'm using Forte 6.2.

Thanks in advance.
0
Comment
Question by:Russell_Shapiro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
7 Comments
 
LVL 38

Expert Comment

by:yuzh
ID: 12255621
I have not used Forte 6.2. to build 64 bit ldap_simple_bind_s bianry myself.

To use Forte compilers to build 64 bit binary, you need to complie with "-xarch=v9"
to produces 64 bit bianry. eg, setting CXXFLAGS to -xarch=v9 before   running configure .

see "Solaris 64 bit Developer's FAQ":
http://docs.sun.com/db/doc/806-0477/6j9r2e2bq?a=view

"Solaris 64-bit Developer's Guide"
http://docs.sun.com/db/doc/806-0477

If you want to use gcc to produce 64 bit binary, you need to use "-mcpu=v9 -m64" with gcc.
0
 

Author Comment

by:Russell_Shapiro
ID: 12257571
Thanks I am already using the -xarch=v9 flag with the Forte compiler. Have you gotten ldap_simple_bind_s to work with gcc with the 64 bit flags?
0
 
LVL 38

Expert Comment

by:yuzh
ID: 12283795
No, I have not tried it.

ldap_simple_bind_s shipped with Solaris OS, SUNWcsl (32-bit), SUNWcslx (64-bit).
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 51

Expert Comment

by:ahoffmann
ID: 12312001
can you please post results of:
  isainfo -vk
  isainfo -v
  ldd ldap_simple_bind_s
  elfdump ldap_simple_bind_s   # just the relevant parts here
0
 

Accepted Solution

by:
Russell_Shapiro earned 0 total points
ID: 12312154

I have found out that this is an existing bug in Solaris 5.8 ldap C SDK 64 bit libraries. Note: this is the downloaded ldap C SDK that has more functionality than the ldap libs that Sun provides with Solaris which are quite old.

The call to ldap_simple_bind_s is broken with this configuration.

If you are in this situation you can either upgrade to Solaris 9 which doesn't have this problem with the 64 bit libraries or call prldap_init instead of ldap_init as a workaround. This workaround will make the ldap_simple_bind_s call work. Sun may come out with a patch for the Solaris 5.8 64 bit libs but not sure if/when that will happen.

Do I get a discount for answering my own question? :-)
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 12312370
the PE will koin soon, I'd suggest PAQ and refund
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AIX Server 10 91
Linux "time" command output redirection 16 227
Adding a continue option in a script 9 66
Equivalent of WSUS for Solaris, AIX and Cisco devices 11 78
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question