[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Question about Net-LDAPapi-1.43

At 12:54 PM 3/5/00 +0700, Asfira Sagitri wrote:
>I have a problem in installing Net-LDAPapi-1.43

>ldap_compat.h:17: warning: `LDAP_OPT_REFERRALS' redefined
>/usr/local/openldap-1.2.9/include/ldap.h:464: warning: this is the
>location of the previous definition

ldap_compat.h shouldn't be redefining LDAP_OPT_REFERRALS.
As LDAP_OPT_REFERRALS is same (2) under U-Mich LDAP 3.3 and
OpenLDAP 1.2, I suspect this is a Net-LDAPapi bug... likely
breaking referral option handling.

You might contact the author... but don't be surprised if the
response is: "Net-LDAPapi is deprecated in favor of PerLDAP
(http://www.mozilla.org/directory/)."  Also note that net::LDAP
is also available (http://www.gbarr.demon.co.uk/perl-ldap/).

>After that, when I did a 'make test', the compilation abborted and output
>this message :
>PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
>-I/usr/lib/perl5/5.00503/i386-linux -I/usr/lib/perl5/5.00503 test.pl
>Can't load 'blib/arch/auto/Net/LDAPapi/LDAPapi.so' for module
>Net::LDAPapi: blib/arch/auto/Net/LDAPapi/LDAPapi.so: undefined symbol:
>res_search at /usr/lib/perl5/5.00503/i386-linux/DynaLoader.pm line 169.

>My question is, which file should I modify ?

Hack the Makefile and add -lresolv (or whatever) to EXTRALIBS
such that res_search will be found.