Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Can someone help me determine were I'm going wrong with this install. I'm trying to install this module on perl 5.8.3 O/S Solaris 9 (2.9). TIA!
mitchm@isfe:/home/mitchm/perl/modules/perldap-1.4> /home/utils/perl/bi +n/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/lib/ldapsdk4.1 +E Using LDAPv3 Developer Kit (default: yes)? n Include SSL Support (default: yes)? n Libraries to link with (default: -L/usr/local/lib/ldapsdk4.1E/lib -lld +apssl41): Checking if your kit is complete... Looks good Writing Makefile for Mozilla::LDAP::API mitchm@isfe:/home/mitchm/perl/modules/perldap-1.4> make cp Conn.pm blib/lib/Mozilla/LDAP/Conn.pm cp Utils.pm blib/lib/Mozilla/LDAP/Utils.pm cp Entry.pm blib/lib/Mozilla/LDAP/Entry.pm cp LDIF.pm blib/lib/Mozilla/LDAP/LDIF.pm cp API.pm blib/lib/Mozilla/LDAP/API.pm AutoSplitting blib/lib/Mozilla/LDAP/API.pm (blib/lib/auto/Mozilla/LDAP +/API) cp oldtest.pl blib/lib/Mozilla/LDAP/oldtest.pl /home/utils/perl/bin/perl /home/utils/perl/lib/perl5/5.8.0/ExtUtils/xs +ubpp -nolinenumbers -typemap /home/utils/perl/lib/perl5/5.8.0/ExtUti +ls/typemap -typemap typemap API.xs > API.xsc && mv API.xsc API.c gcc -c -I/usr/local/lib/ldapsdk4.1E/include -I/home/utils/perl/inclu +de -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.4\" + -DXS_VERSION=\"1.4\" -fPIC "-I/home/utils/perl/lib/perl5/5.8.0/sun4 +-solaris/CORE" API.c API.c: In function `avref2charptrptr': API.c:205: `na' undeclared (first use in this function) API.c:205: (Each undeclared identifier is reported only once API.c:205: for each function it appears in.) API.c: In function `avref2berptrptr': API.c:235: `na' undeclared (first use in this function) API.c: In function `parse1mod': API.c:377: `na' undeclared (first use in this function) API.c: In function `XS_Mozilla__LDAP__API_ldap_result': API.c:2546: `na' undeclared (first use in this function) API.c: In function `XS_Mozilla__LDAP__API_ldap_search_st': API.c:2777: `na' undeclared (first use in this function) API.c: In function `XS_Mozilla__LDAP__API_ldap_url_parse': API.c:3057: `sv_undef' undeclared (first use in this function) API.c: In function `XS_Mozilla__LDAP__API_ldap_url_search_st': API.c:3122: `na' undeclared (first use in this function) *** Error code 1 make: Fatal error: Command failed for target `API.o'
Edited by ysth: chg pre tags to code tags

Replies are listed 'Best First'.
Re: Help compiling perldap1.4
by PodMaster (Abbot) on Jul 07, 2004 at 23:27 UTC

      That patch is broken. You need to do s/NA/na/g to get it to apply properly. This will work:

Re: Help compiling perldap1.4
by Anonymous Monk on Jul 07, 2004 at 23:37 UTC
    Thanks for the information, I downloaded the patch, but have another question. Where do I find information on how to apply this patch?

      The patch itself is broken and needs s/NA/na/g to work. Either do that in your favourite editor or with perl -pi -e 's/NA/na/g' patch.1 or use the patched patch above. You apply it using patch(1)

      [root@devel3 perldap-1.4]# patch -l -i patch.1 patching file typemap patching file API.xs [root@devel3 perldap-1.4]#

      cheers

      tachyon

        Thank you all for the help on this. I was able to patch, make and install this module. Note: I had to use the ldapsdk3.0E libraries instead of the 4.1E libraries, since I continued to get errors on the make. Again thank you.
      You use the patch program. If you had scrolled down on the same page you got the patch you'd have seen
      [guest - Thu Feb 7 14:58:24 2002]: > Due to changes in the PERL XS variable naming scheme (presumed to ha +ve > happened with 5.6), > several changes to the typemap and API.xs files are needed to build > perldap with perl v5.6.1. > > The attached patch provides those fixes and the result has been > successfully tested both with > the test package provided as well as against several current LDAP > servers I have access to. > > --Kurt Andersen This patch needs s/NA/na/g to work properly. Apply like this if you don't know already. # patch -l -i patch.1 patching file typemap patching file API.xs #

      update: Didn't notice the date (Wed Jul 7 23:59:21 2004 ) on that comment, I guess it wasn't there before. Good work tachyon.

      MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
      I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
      ** The third rule of perl club is a statement of fact: pod is sexy.