Thanks, that worked! I am able to compile it now, but if I enable sasl, 
it also fails:

"Modules/LDAPObject.c", line 568: Warning: String literal converted to 
char* in formal argument format in call to 
_PyObject_CallMethod_SizeT(_object*, char*, char*, ...).
"Modules/LDAPObject.c", line 614: Error: Cannot use void* to initialize 
sasl_interact*.
"Modules/LDAPObject.c", line 615: Error: Cannot use void* to initialize 
_object*.
"Modules/LDAPObject.c", line 689: Warning (Anachronism): Formal argument 
proc of type extern "C" int(*)(ldap*,unsigned,void*,void*) in call to 
ldap_sasl_interactive_bind_s(ldap*, const char*, const char*, 
ldapcontrol**, ldapcontrol**, unsigned, extern "C" 
int(*)(ldap*,unsigned,void*,void*), void*) is being passed 
int(*)(ldap*,unsigned,void*,void*).


Sounds like the same thing.


Matej Vela wrote:
> Anil <[EMAIL PROTECTED]> writes:
>
>   
>> I am trying to compile python ldap with SunStudio, I get this error. Any 
>> idea?
>>     
> [...]
>   
>> "Modules/options.c", line 108: Error: Formal argument 1 of type 
>> ldapcontrol** in call to LDAPControl_List_DEL(ldapcontrol**) is being 
>> passed void*.
>>     
>
> The type checking seems to be a bit overzealous.  Try changing line 108
> of Modules/options.c from
>
>         LDAPControl_List_DEL(ptr);
>
> to
>
>         LDAPControl_List_DEL((LDAPControl**) ptr);
>
> Cheers,
>
> Matej
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Python-LDAP-dev mailing list
> Python-LDAP-dev@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
>   


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev

Reply via email to