int assigned to pointer in winbindd_rpc

Gerald (Jerry) Carter jerry at samba.org
Mon Jul 19 12:04:57 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

James Peach wrote:
| 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;

This will break the build on ystsmes without LDAP headers.
I've already manually added the fix t6o includes.h in svn.


jerry-who-already-broke-thje-build-this-way

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFA+7joIR7qMdg1EfYRAtM7AKCULas2XbO7ft106QhG93XZ71gNLwCgsy0M
a0v2U/IUtMPLWE4yTBehEOo=
=sim/
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list