Bug 1516 - int assigned to pointer in winbindd_rpc
int assigned to pointer in winbindd_rpc
Status: CLOSED FIXED
Product: Samba 3.0
Classification: Unclassified
Component: winbind
3.0.5
SGI IRIX
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-07-11 11:16 UTC by Jason Mader
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
no flags Details
mkprot pick this declaration up if the whitespace is right (452 bytes, patch)
2004-07-16 02:17 UTC, James Peach (outdated mail address)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Mader 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 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 2004-07-14 06:31:56 UTC
checked in for 3.0.5 final.
Comment 3 James Peach (outdated mail address) 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 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 2005-08-24 10:19:28 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.