I just posted a recent message about this and I think I solved my
initial problem. Below are the steps that I took to make this happen.
Hopefully these steps will work for you as well.

Some specs before we begin:
* Solaris 2.7
* gcc 2.95.2 (do a gcc -v from the command line)
* make 3.79 (do a make -v from the command line)
* perl 5.6.1 (do a perl -v from the command line)
* Netscape LDAP SDK 4.1 (installed in /usr/local/ldapsdkssl)
* perldap 1.4.1

** STEPS **
1. Untar package and change to that directory
# tar -zxvpf perldap-1.4.1.tar.gz
# cd perldap-1.4.1

2. Modify CPPFLAGS environment variable to include Netscape SDK
Libraries/Includes
# CPPFLAGS="-I/usr/local/ldapsdkssl/include -I/usr/local/ssl/include
-I/usr/local/include" ; export CPPFLAGS

# echo $CPPFLAGS
-I/usr/local/ldapsdkssl/include -I/usr/local/ssl/include
-I/usr/local/include

2a. Modify the LD_LIBRARY_PATH to include the directories
/usr/local/lib /usr/local/ldapsdkssl/lib /usr/local/ssl/lib /usr/lib

and for some reason do symbolic links in /usr/lib to the files in
/usr/local/ldapsdkssl/lib. In other words,

# cd /usr/lib
# ln -s /usr/local/ldapsdkssl/lib/libldapssl41.so libldapssl41.so
# ln -s /usr/local/ldapsdkssl/lib/libnspr3.so libnspr3.so
# ln -s /usr/local/ldapsdkssl/lib/libplc3.so libplc3.so
# ln -s /usr/local/ldapsdkssl/lib/libplds3.so libplds3.so 

3. Run perl Makefile.PL
# perl Makefile.PL

PerLDAP - Perl 5 Module for LDAP
================================
Directory containing 'include' and 'lib' directory of the Netscape
LDAP Software Developer Kit (default: /usr): /usr/local/ldapsdkssl
Using LDAPv3 Developer Kit (default: yes)?
Include SSL Support (default: yes)?
Libraries to link with (default: -L/usr/local/ldapsdkssl/lib
-lldapssl41):
Writing Makefile for Mozilla::LDAP::API

4. Run make
# make

5. Run make test
# make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/usr/local/lib/perl5/5.6.1/sun4-solaris -I/usr/local/lib/perl5/5.6.1
-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.02 cusr +  0.09 csys =  0.11
CPU)


6. Run make install
# make install | tee makeinstall.out

7. Test the your LDAP install with a quick test (to make sure all the
libraries are found)

#!/usr/local/bin/perl -w

use Mozilla::LDAP::Entry;

exit;

If it seg faults/core dump you can capture output via:

truss perl sample.pl 2>&1 | tee output.dat

If this loads without any seg faults, then at least it confirms
(somewhat) that the module is loaded properly

Good luck!

jm

Reply via email to