Link to home
Start Free TrialLog in
Avatar of chazhs
chazhs

asked on

"make" errors for installing Net::LDAP

I am getting some errors while installing perl module Net::LDAP
I am installing according to perl documentation mentioned in http://cpan.org/modules/INSTALL.html

1. gunzip *.gz
2. tar xvf *.tar
3. perl Makefile.PL
4. make

Steps 1-3 executed without errors.
step4 yielded this error

nev# /usr/ccs/bin/make
gcc -c -I /iplanet/suitespot/plugins/include/ldapsdk31 -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O      -DVERSION=\"1.42\"  -DXS_VERS
ION=\"1.42\" -fPIC -I /perl/lib/5.6.0/sun4-solaris/CORE -DNETSCAPE_LDAP LDAP
api.c
LDAPapi.xs: In function `av2modvals':
LDAPapi.xs:95: `na' undeclared (first use in this function)
LDAPapi.xs:95: (Each undeclared identifier is reported only once
LDAPapi.xs:95: for each function it appears in.)
LDAPapi.xs: In function `parse1mod':
LDAPapi.xs:197: `na' undeclared (first use in this function)
LDAPapi.xs: In function `XS_Net__LDAPapi_ldap_search':
LDAPapi.xs:578: `na' undeclared (first use in this function)
LDAPapi.xs: In function `XS_Net__LDAPapi_ldap_search_s':
LDAPapi.xs:614: `na' undeclared (first use in this function)
LDAPapi.xs: In function `XS_Net__LDAPapi_ldap_search_st':
LDAPapi.xs:660: `na' undeclared (first use in this function)
LDAPapi.xs: In function `XS_Net__LDAPapi_ldap_url_parse':
LDAPapi.xs:1137: `sv_undef' undeclared (first use in this function)
LDAPapi.xs: In function `XS_Net__LDAPapi_ldap_multisort_entries':
LDAPapi.xs:1221: `na' undeclared (first use in this function)
*** Error code 1
make: Fatal error: Command failed for target `LDAPapi.o'  

Can you tell me why this error is happening?
p.s Im using Iplanet webserver.

Here is my perl makefile.pl output
 perl Makefile.PL

****************************************
Net::LDAPapi Perl5 Module - by Clayton Donley <donley@cig.mcel.mot.com>

Enter How I Should Run Perl5 (ex. /usr/bin/perl, c:\perl\bin\perl),
 (default:/perl/bin/perl)?

Select your Development Kit:
  1.  Netscape (default)
  2.  University of Michigan
  3.  ISODE (compiled with LDAP)
Choose: Iplanet
Location of LDAP Include Files (default: /usr/include): (i typed)  /iplanet/suitespot/plugins/include/ldapsdk31
Location of LDAP Library Files (default: /usr/lib): (i left it default)
Using Netscape's NEW LDAPv3 Development Kit (default: n)? n (not sure?)
Note (probably harmless): No library found for -lldap10
Writing Makefile for Net::LDAPapi  



thanks a lot,


************************************
p.s I did try doing "make install" , that also gave same errors ,and  my perl program that uses ldap module gave compilation error

nev# perl phone.cgi
Can't locate Convert/BER.pm in @INC (@INC contains:/perl/lib/5.6.0/sun4-so
laris /perl/lib/5.6.0 /perl/lib/site_perl/5.6.0/sun4-solaris /per
l/lib/site_perl/5.6.0 /snps/perl/lib/site_perl .) at  /perl/lib/site_perl/5.
6.0/Net/LDAP/BER.pm line 7.
BEGIN failed--compilation aborted at /perl/lib/site_perl/5.6.0/Net/LDAP/BER
.pm line 7.
Compilation failed in require at /perl/lib/site_perl/5.6.0/Net/LDAP.pm line
 10.
BEGIN failed--compilation aborted at /perl/lib/site_perl/5.6.0/Net/LDAP.pm
line 10.
Compilation failed in require at phone.cgi line 3.
BEGIN failed--compilation aborted at phone.cgi line 3.  


Any help is appreciated!!

Thanks !!!
Avatar of ahoffmann
ahoffmann
Flag of Germany image

AFAIK Net::LDAP requires Netscape/iPlanet's ldapsdk. Did you install the ldapsdk?
Avatar of chazhs
chazhs

ASKER

No I have not installed the sdk. Where can I find it ?

couldnt find at http://cpan.org/modules/01modules.index.html

Thanks for your time!
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
www.openldap.org also works fine with Net::LDAP.
Other usefull toys going well along Net::LDAP:
XML::Parser, URI, IO::Socket::SSL,
Digest::MD5, Convert::ASN1, Net::SSLeay.
take care !
Net::LDAP builds .so libraries which depend on the installed SDK.
AFAIK you cannot build with Netscape SDK and run against openldap (I'm not absolutely shure, it's way too long when I installed my Net::LDAP)
Avatar of chazhs

ASKER

Thanks. I did install ldapsdk, still got some fatal errors. Today I am going to install Convert::ASN1 module also.
Will let you know how it goes.
Thanks again!
Avatar of chazhs

ASKER

I installed ldapsdk, Convert::ASN1,Digest::MD5,URI::ldap and XML::Parser
and my program runs perfectly.
Thank you ahoffman and rrbf for your valuable time!  
to compile with openldap, choose 'university of michigan',
The openldap code is but a branch from it.
it sure does work, as I use it.
rrbf, didn't say that Net::LDAP does not work with openldap, just said that I'm not shure if it works with openldap when Net::LDAP was compiled with ldapsdk from Netscape. It might work, but I'm not shure ..