I'm running OpenLDAP 2.0.18 in a secure mode and I'm setting up PerLDAP for the connection. I have successfully build it - no error in compilation + all the tests passed - and the connection in unsecure mode works fine. However, when I try to connect in a secure mode I get the following:
ld.so.1: /usr/bin/perl: fatal: relocation error: file /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/Mozilla/LDAP/API/API.so: symbol ldapssl_client_init: referenced symbol not found While building PerLDAP, I did chose ssl support and I did have a C SDK with the correct libraries. Also the ldapssl_client_init function is defined in the ldap_ssl.h which is in the C SDK and the libraries are in the correct lib directory which I indicated when building PerLDAP. I looked at the old archives and found mention of using the -shared and -r flag during compilation. I have tried that but I still run in the same problem. Does anybody have suggestions? I have added the output of my compile for reference at the end, Thanks, Giulia PerLDAP - Perl 5 Module for LDAP ================================ Directory containing 'include' and 'lib' directory of the Netscape LDAP Software Developer Kit (default: /usr): /data/_n/ldapCSDK5.0 Using LDAPv3 Developer Kit (default: yes)? no Include SSL Support (default: yes)? Located multiple libraries: - libldap50.so - libssldap50.so - libprldap50.so Libraries to link with (default: -L/data/_n/ldapCSDK5.0/lib -lldap50): Checking if your kit is complete... Looks good Writing Makefile for Mozilla::LDAP::API /home/ghill/perldap/perldap-1.4.1 50: make mkdir blib mkdir blib/lib mkdir blib/lib/Mozilla mkdir blib/lib/Mozilla/LDAP mkdir blib/arch mkdir blib/arch/auto mkdir blib/arch/auto/Mozilla mkdir blib/arch/auto/Mozilla/LDAP mkdir blib/arch/auto/Mozilla/LDAP/API mkdir blib/lib/auto mkdir blib/lib/auto/Mozilla mkdir blib/lib/auto/Mozilla/LDAP mkdir blib/lib/auto/Mozilla/LDAP/API mkdir blib/man3 cp Conn.pm blib/lib/Mozilla/LDAP/Conn.pm cp LDIF.pm blib/lib/Mozilla/LDAP/LDIF.pm cp Utils.pm blib/lib/Mozilla/LDAP/Utils.pm cp API.pm blib/lib/Mozilla/LDAP/API.pm AutoSplitting blib/lib/Mozilla/LDAP/API.pm (blib/lib/auto/Mozilla/LDAP/API) cp Entry.pm blib/lib/Mozilla/LDAP/Entry.pm /bin/perl -I/usr/local/lib/perl5/5.00503/sun4-solaris -I/usr/local/lib/perl5/5.00503 /usr/local/lib/perl5/5.00503/ExtUtils/xsubpp -nolinenumbers -typemap /usr/local/lib/perl5/5.00503/ExtUtils/typemap -typemap typemap API.xs >xstmp.c && mv xstmp.c API.c gcc -B/usr/ccs/bin/ -c -I/data/_n/ldapCSDK5.0/include -I/usr/local/include -O -shared -r -DVERSION=\"1.41\" -DXS_VERSION=\"1.41\" -fPIC -I/usr/local/lib/perl5/5.00503/sun4-solaris/CORE -DUSE_SSL API.c Running Mkbootstrap for Mozilla::LDAP::API () chmod 644 API.bs LD_RUN_PATH="/data/_n/ldapCSDK5.0/lib" gcc -B/usr/ccs/bin/ -o blib/arch/auto/Mozilla/LDAP/API/API.so -R/data/_n/ldapCSDK5.0/lib -G -L/usr/local/lib API.o -L/data/_n/ldapCSDK5.0/lib -lldap50 gcc: file path prefix `/usr/ccs/bin/' never used chmod 755 blib/arch/auto/Mozilla/LDAP/API/API.so cp API.bs blib/arch/auto/Mozilla/LDAP/API/API.bs chmod 644 blib/arch/auto/Mozilla/LDAP/API/API.bs Manifying blib/man3/Mozilla::LDAP::Conn.3 Manifying blib/man3/Mozilla::LDAP::LDIF.3 Manifying blib/man3/Mozilla::LDAP::Utils.3 Manifying blib/man3/Mozilla::LDAP::Entry.3 Manifying blib/man3/Mozilla::LDAP::API.3 /home/ghill/perldap/perldap-1.4.1 51: make test PERL_DL_NONLAZY=1 /bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.00503/sun4-solaris -I/usr/local/lib/perl5/5.00503 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/api...............ok t/conn..............ok t/entry.............ok t/ldif..............ok t/utils.............ok All tests successful. Files=5, Tests=5, 0 wallclock secs ( 0.04 cusr + 0.05 csys = 0.09 CPU)
