--On Friday, February 09, 2007 9:11 PM +0000 Gavin Henry ghenry@suretecsystems.com wrote:
<quote who="Quanah Gibson-Mount"> > > > --On Friday, February 09, 2007 3:38 PM +0000 Gavin Henry > <ghenry@suretecsystems.com> wrote: > > >>> What am I doing wrong? >> >> To define LDAP_DEPRECATED, you need to edit Makefile.PL: >> >> 113 | 'DEFINE' => '-DOPENLDAP -DLDAP_DEPRECATED', >> >> The make test still fails however: > > Just to follow up on this, 2.01 fixes the linking issues (and is now > available from CPAN), and LDAP_DEPRECATED is not a necessary flag, as the > module does not use the deprecated routines.
Hmm, I think it still is with 2.01:
Hm, I don't get those errors at all. And the only LDAP libs anywhere on my system are the OpenLDAP 2.3 ones.
I get:
LDAPapi.c: In function 'XS_Net__LDAPapi_ldap_open': LDAPapi.c:417: warning: assignment makes pointer from integer without a cast LDAPapi.xs: In function 'XS_Net__LDAPapi_ldap_init': LDAPapi.xs:396: warning: assignment makes pointer from integer without a cast LDAPapi.xs: In function 'XS_Net__LDAPapi_ldap_get_values': LDAPapi.xs:1064: warning: assignment makes pointer from integer without a cast LDAPapi.xs: In function 'XS_Net__LDAPapi_ldap_set_rebind_proc': LDAPapi.xs:1136: warning: passing argument 2 of 'ldap_set_rebind_proc' from incompatible pointer type
I've tried to reproduce what you are reporting on Solaris 8, Solaris 9, 32-bit Linux, 64-bit Linux, and both gcc 4.0.3 and gcc 4.1.1. I simply don't get the errors you report.
In any case, I'll look at ignoring the deprecated API when the SDK is OpenLDAP.
--Quanah
-- Quanah Gibson-Mount Principal Software Developer ITS/Shared Application Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html