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

Re: Compiling Net::LDAPapi

The successor to Net::LDAPapi is Mozilla's PerLDAP (see http://www.perldap.org).
Net::LDAPapi is no longer being developed.  I've used Net::LDAPapi in the distant
past (with OpenLDAP 1.1 or something)... I don't know if it will still build with
the newer OpenLDAP releases.

PerLDAP [which is pretty dandy], however, adds the complexity that it needs the
Mozilla LDAP C-SDK (basicly Mozilla's version of the ldap and lber libraries).  If
you're doing your devel work on the same system where you have the OpenLDAP
libraries installed you may run into a library name conflict (depending, perhaps, on
your OS platform).

The solution I'm using to this with FreeBSD is to rename the Mozilla libraries to
mozldap and mozlber and doing minor tweaks to PerLDAP itself so it compiles against
the newly named libraries.  The affected FreeBSD ports (.../net/perldap and
.../net/ldapsdk) will, I believe, be updated shortly along these lines.


Hans Lohmander wrote:

> Hi,
> I'm new to this list and did not find any postings
> regarding this issue in the archive.
> Trying to compile Net::LDAPapi for use with OpenCA
> Perl 5.6 on i586-linux
> RedHat 6.2
> OpenLDAP 1.2.0 and 1.2.11 tested
> Net::LDAPapi 1.42
> I used option: 2.  University of Michigan
> (option 1 - Netscape renedered "ldap_ssl.h" missing)
> Anyone else had the same problem?
> Please advice on how to proceed.
>     Hans
> Details below ------
> In file included from LDAPapi.xs:21:
> ldap_compat.h:17: warning: `LDAP_OPT_REFERRALS' redefined
> /usr/local/include/ldap.h:461: warning: this is the location of the previous def
> inition
> 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)
> make: *** [LDAPapi.o] Error 1
> --
> _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
> Hans Lohmander -- Sigma Exallon Information AB
> Internet & Intranet solutions
> Talkto:+46 (0)40 247636
> Faxto:+46 (0)40 24 99 50
> Mobile# +46 (0)709-898636
> mailto:hans.lohmander@ei.sigma.se
> http://www.ei.sigma.se/
> ICQ# 9319123
> _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

  Charles N. Owens                               Email: owensc@enc.edu
  Network & Systems Administrator
  Information Technology Services  "Outside of a dog, a book is a man's
  Eastern Nazarene College         best friend.  Inside of a dog it's
                                   too dark to read." - Groucho Marx