Solved

"make" errors for installing Net::LDAP

Posted on 2002-06-07
9
328 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
Comment Utility
AFAIK Net::LDAP requires Netscape/iPlanet's ldapsdk. Did you install the ldapsdk?
0
 

Author Comment

by:chazhs
Comment Utility
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
Comment Utility
check at http://developer.iplanet.com/
search for ldapsdk
You need to download and install it
0
 

Expert Comment

by:rrbf
Comment Utility
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now