Perlmodul perldap 1.4 einbinden klappt nicht

Post Reply
Message
Author
Jakob

Perlmodul perldap 1.4 einbinden klappt nicht

#1 Post by Jakob »

Hallo zusammen,

ich habe ein Problem mit dem Perlmodul perldap 1.4. Ich brauche das Perlmodul um
ldap-users unter webmin zum laufen zu bekommen.

Leider kann ich es nicht kompilieren, der 'make' hat was zu meckern:

---

ldap:/usr/local/src/perldap-1.4 # perl Makefile.PL

PerLDAP - Perl 5 Module for LDAP
================================
Directory containing 'include' and 'lib' directory of the Netscape
LDAP Software Developer Kit (default: /usr):
Using LDAPv3 Developer Kit (default: yes)?
Include SSL Support (default: yes)? no
Located multiple libraries:
- libldap.a
- libnss_ldap.so
- libldap_r.so
- libldap_r.a
- libldap.so
Libraries to link with (default: -L/usr/lib -lldap -llber):
Checking if your kit is complete...
Looks good
Writing Makefile for Mozilla::LDAP::API
ldap:/usr/local/src/perldap-1.4 # make

---schnipp---

API.c:3040: `LDAPVersion' undeclared (first use in this function)
API.c:3040: `ver' undeclared (first use in this function)
API.c:3040: parse error before `)'
API.c:3041: parse error before `int'
API.c:3044: `RETVAL' undeclared (first use in this function)
API.c:3045: `targ' undeclared (first use in this function)
make: *** [API.o] Fehler 1
ldap:/usr/local/src/perldap-1.4 #

---

Das ist der Block, welcher bemaengelt wird: (API.c):

---

XS(XS_Mozilla__LDAP__API_ldap_version)
{
dXSARGS;
if (items != 1)
Perl_croak(aTHX_ "Usage: Mozilla::LDAP::API::ldap_version(ver)");
{
LDAPVersion * ver = INT2PTR(LDAPVersion *,SvIV(ST(0)));
int RETVAL;
dXSTARG;

RETVAL = ldap_version(ver); #Zeile 3044
XSprePUSH; PUSHi((IV)RETVAL);
}
XSRETURN(1);
}

---

Ueber Tipps bin ich wirklich sehr dankbar.

Gruss,

Jakob

Post Reply