Solved

"make" errors for installing Net::LDAP

Posted on 2002-06-07
9
342 Views
Last Modified: 2012-06-27
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 !!!
0
Comment
Question by:chazhs
  • 4
  • 3
  • 2
9 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7067800
AFAIK Net::LDAP requires Netscape/iPlanet's ldapsdk. Did you install the ldapsdk?
0
 

Author Comment

by:chazhs
ID: 7068219
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!
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 200 total points
ID: 7068291
check at http://developer.iplanet.com/
search for ldapsdk
You need to download and install it
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

Expert Comment

by:rrbf
ID: 7069819
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.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7070537
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)
0
 

Author Comment

by:chazhs
ID: 7070561
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!
0
 

Author Comment

by:chazhs
ID: 7070839
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!  
0
 

Expert Comment

by:rrbf
ID: 7071781
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.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7072152
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 ..
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

808 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