Bug 1516 - int assigned to pointer in winbindd_rpc
Summary: int assigned to pointer in winbindd_rpc
Status: CLOSED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: winbind (show other bugs)
Version: 3.0.5
Hardware: SGI IRIX
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-11 11:16 UTC by Jason Mader (mail bounces back)
Modified: 2005-08-24 10:19 UTC (History)
0 users

See Also:


Attachments
manually declare ldap_open_with_timeout() (683 bytes, patch)
2004-07-14 06:31 UTC, Gerald (Jerry) Carter (dead mail address)
no flags Details
mkprot pick this declaration up if the whitespace is right (452 bytes, patch)
2004-07-16 02:17 UTC, James Peach
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Mader (mail bounces back) 2004-07-11 11:16:46 UTC
Compiling nsswitch/winbindd_rpc.c
cc-1515 cc: ERROR File = nsswitch/winbindd_rpc.c, Line = 726
  A value of type "int" cannot be assigned to an entity of type "LDAP *".

        if ((ldp = ldap_open_with_timeout(server, port, lp_ldap_timeout())) == NULL)
                 ^

1 error detected in the compilation of "nsswitch/winbindd_rpc.c".
*** Error code 2 (bu21)
Comment 1 Gerald (Jerry) Carter (dead mail address) 2004-07-14 06:31:18 UTC
Created attachment 566 [details]
manually declare ldap_open_with_timeout()

This is a problem with proto.h.  ldap_open_with_timeout() does in fact
return LDAP* but is not being included in proto.h so as to prevent build 
problems on platforms without LDAP headers.
Comment 2 Gerald (Jerry) Carter (dead mail address) 2004-07-14 06:31:56 UTC
checked in for 3.0.5 final.
Comment 3 James Peach 2004-07-16 02:17:18 UTC
Created attachment 572 [details]
mkprot pick this declaration up if the whitespace is right
Comment 4 Gerald (Jerry) Carter (dead mail address) 2005-02-07 09:56:05 UTC
originally against 3.0.5rc1 (which was 34.0.6rc1 due to the security release).
Comment 5 Gerald (Jerry) Carter (dead mail address) 2005-08-24 10:19:28 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.