Russell_Shapiro
asked on
ldap_simple_bind_s problem with 64 bit compiled LDAP C SDK on Solaris 5.8
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.
Thanks in advance.
ASKER
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?
No, I have not tried it.
ldap_simple_bind_s shipped with Solaris OS, SUNWcsl (32-bit), SUNWcslx (64-bit).
ldap_simple_bind_s shipped with Solaris OS, SUNWcsl (32-bit), SUNWcslx (64-bit).
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
isainfo -vk
isainfo -v
ldd ldap_simple_bind_s
elfdump ldap_simple_bind_s # just the relevant parts here
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
the PE will koin soon, I'd suggest PAQ and refund
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.