int assigned to pointer in winbindd_rpc

James Peach jpeach at sgi.com
Fri Jul 16 09:11:53 GMT 2004


On Wed, Jul 14, 2004 at 08:10:17AM -0400, Jason Mader wrote:
> I've reported this to Bugzilla as bug #1516.  I encounter the following 
> errors on when compiling on Irix 6.5.23f with MIPSpro 7.4.2m compilers. 
>  The configure syntax I used was:
> 	env CC=cc CFLAGS="-O" ./configure --with-quotas --with-acl-support 
> --with-libiconv=/opt
> 
> 
> 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)

This is due to proto.h not getting a declaration of
ldap_open_with_timeout. The following patch should do the trick (you'll
need to make proto again).

--- samba-3.0.5rc1/source/libads/ldap.c Fri Jul  9 03:06:16 2004
+++ work/source/libads/ldap.c   Fri Jul 16 18:53:23 2004
@@ -48,7 +48,7 @@
        gotalarm = 1;
 }
                                                                                                                    
- LDAP *ldap_open_with_timeout(const char *server, int port, unsigned int to)
+LDAP *ldap_open_with_timeout(const char *server, int port, unsigned int to)
 {
        LDAP *ldp = NULL;
-- 
James Peach | jpeach at sgi.com | SGI Australian Software Group
I don't speak for SGI.


More information about the samba-technical mailing list