Bug 3437 - incompatible prototype for krb5_locate_kdc
incompatible prototype for krb5_locate_kdc
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
3.0.21a
All Other
: P3 normal
: none
Assigned To: Tim Potter
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-01-23 12:48 UTC by Peter Eisentraut
Modified: 2008-12-29 05:47 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Eisentraut 2006-01-23 12:48:03 UTC
Samba uses the following prototype for krb5_locate_kdc (source/include/includes.h):

krb5_error_code
krb5_locate_kdc(krb5_context ctx, const krb5_data *realm,
                struct sockaddr **addr_pp,
                int *naddrs, int get_masters);

The actual prototype used by the Kerberos library (http://web.mit.edu/kerberos/, krb5 1.4.3) is:

krb5_error_code
krb5_locate_kdc(krb5_context context, const krb5_data *realm,
                struct addrlist *addrlist,
                int get_masters, int socktype, int family)

So this code cannot work.
Comment 1 Debian samba package maintainers (PUBLIC MAILING LIST) 2008-12-29 05:47:45 UTC
The 3.2 source code now shows:
krb5_error_code smb_krb5_locate_kdc(krb5_context ctx, const krb5_data *realm, struct sockaddr **addr_pp, int *naddrs, int get_masters);

I very much suspect this bug report can be closed but being technically indigent here, I can take that responsibility.

Christian Perrier (in name of Samba package maintainers in Debian)