[RADIATOR] Net::LDAPapi error

Vicaretti Vincenzo (Guest) vincenzo.vicaretti at guest.telecomitalia.it
Fri Apr 5 09:25:19 CDT 2013


hello to all,
I'm having trouble to compile the module Net :: LDAPapi (required by <AuthBy LDAP>)

I installed all the dependencies, but I keep getting errors in completing the form, you have any suggestions?

Thanks

- My perl version is: v5.10.1 (*) built for x86_64-linux-thread-multi 

- My OS is: Red Hat Enterprise Linux Server release 6.4 (Santiago) 

- This is the error that I visualize with cpan:

cpan[1]> install Net::LDAPapi
CPAN: Storable loaded ok (v2.20)
Reading '/root/.cpan/Metadata'
  Database was generated on Fri, 05 Apr 2013 09:07:49 GMT Running install for module 'Net::LDAPapi'
Running make for M/MI/MISHIKAL/Net-LDAPapi-3.0.3.tar.gz
CPAN: Digest::SHA loaded ok (v5.84)
CPAN: Compress::Zlib loaded ok (v2.02)
Checksum for /root/.cpan/sources/authors/id/M/MI/MISHIKAL/Net-LDAPapi-3.0.3.tar.gz ok Scanning cache /root/.cpan/build for sizes ............................................................................DONE
Net-LDAPapi-3.0.3/
Net-LDAPapi-3.0.3/Todo
Net-LDAPapi-3.0.3/Changes
Net-LDAPapi-3.0.3/LDAPapi.xs
Net-LDAPapi-3.0.3/typemap
Net-LDAPapi-3.0.3/examples/
Net-LDAPapi-3.0.3/examples/ldap_mod_attr.pl
Net-LDAPapi-3.0.3/examples/ldapwalk2.pl
Net-LDAPapi-3.0.3/examples/www-ldap.pl
Net-LDAPapi-3.0.3/examples/updatepw.pl
Net-LDAPapi-3.0.3/examples/web500.pl
Net-LDAPapi-3.0.3/examples/ldapwalk.pl
Net-LDAPapi-3.0.3/examples/testwrite.pl
Net-LDAPapi-3.0.3/test.pl
Net-LDAPapi-3.0.3/constant.gen
Net-LDAPapi-3.0.3/MANIFEST
Net-LDAPapi-3.0.3/ldap_compat.h
Net-LDAPapi-3.0.3/README
Net-LDAPapi-3.0.3/META.yml
Net-LDAPapi-3.0.3/Makefile.PL
Net-LDAPapi-3.0.3/LDAPapi.pm
Net-LDAPapi-3.0.3/Credits
CPAN: File::Temp loaded ok (v0.22)
CPAN: Parse::CPAN::Meta loaded ok (v1.4404)
CPAN: CPAN::Meta loaded ok (v2.130880)

  CPAN.pm: Building M/MI/MISHIKAL/Net-LDAPapi-3.0.3.tar.gz



Net::LDAPapi Perl5 Module - by Quanah Gibson-Mount <mishikal at yahoo.com>

OpenLDAP support by Symas Corporation -- http://www.symas.com Updated by Quanah Gibson-Mount to match modern products and vendors.
Updated by Dmitri Priimak to use the v3 OpenLDAP API.

Originally by Clayton Donley <donley at cig.mcel.mot.com>


Select your Development Kit:
  1.  OpenLDAP (default)
  2.  Mozilla
Choose: [1]
Location of LDAP include files: [/usr/include] Location of LDAP library files: [/usr/lib] Location of SASL include files if needed:  
Checking if your kit is complete...
Looks good
Warning (mostly harmless): No library found for -lldap Warning (mostly harmless): No library found for -llber Writing Makefile for Net::LDAPapi Writing MYMETA.yml and MYMETA.json cp LDAPapi.pm blib/lib/Net/LDAPapi.pm AutoSplitting blib/lib/Net/LDAPapi.pm (blib/lib/auto/Net/LDAPapi) /usr/bin/perl constant.gen >constant.h /usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp  -typemap /usr/share/perl5/ExtUtils/typemap -typemap typemap  LDAPapi.xs > LDAPapi.xsc && mv LDAPapi.xsc LDAPapi.c
gcc -c  -I/usr/include -I/usr/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic   -DVERSION=\"3.0.3\" -DXS_VERSION=\"3.0.3\" -fPIC "-I/usr/lib64/perl5/CORE"  -DOPENLDAP LDAPapi.c
LDAPapi.xs:16:18: error: lber.h: No such file or directory
LDAPapi.xs:17:18: error: ldap.h: No such file or directory

[.......]

LDAPapi.c:3019: error: 'RETVAL' undeclared (first use in this function)
LDAPapi.c:3022: warning: implicit declaration of function 'ber_alloc_t'
make: *** [LDAPapi.o] Error 1
  MISHIKAL/Net-LDAPapi-3.0.3.tar.gz
  /usr/bin/make -- NOT OK
CPAN: YAML loaded ok (v0.84)
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible Failed during this command:
 MISHIKAL/Net-LDAPapi-3.0.3.tar.gz            : make NOhttps://mail.telecomitalia.it/owa/?ae=Item&t=IPM.Note&a=New#

cpan[2]> m Net::LDAPapi
Module id = Net::LDAPapi
    DESCRIPTION  Interface to OpenLDAP and Mozilla LDAP C API
    CPAN_USERID  MISHIKAL (Quanah Gibson-Mount <mishikal at yahoo.com>)
    CPAN_VERSION 3.000003
    CPAN_FILE    M/MI/MISHIKAL/Net-LDAPapi-3.0.3.tar.gz
    UPLOAD_DATE  2008-08-21
    DSLIP_STATUS bdcfp (beta,developer,C,functions,Standard-Perl)
    MANPAGE      Net::LDAPapi - Perl5 Module Supporting LDAP API
    INST_FILE    (not installed)


More information about the radiator mailing list