Compilation warning on AIX

samba-technical at thewrittenword.com samba-technical at thewrittenword.com
Fri Dec 28 08:45:04 GMT 2001


On Fri, Dec 28, 2001 at 10:34:02AM -0000, Ewan Leith wrote:
> Just a minor issue this, but someone might want to clear it up - when
> compiling Samba 3 alpha 12 on AIX 4.3.3, almost every file produces this
> warning during the "make" stage.
> 
> Im using the GNU make and gcc.
> 
>                        
> Compiling smbd/close.c
> In file included from include/includes.h:363,
>                  from smbd/close.c:22:
> /usr/include/rpcsvc/yp_prot.h:342: warning: `struct ypall_callback' declared
> ins
> ide parameter list
> /usr/include/rpcsvc/yp_prot.h:342: warning: its scope is only this
> definition or
>  declaration, which is probably not what you want.
> 
> Everything compiles fine and runs fine, but does anyone know if this is a
> real problem or just another one of AIX's wonderful "almost but not quite
> compatible with everything else" C header files?

Does the following patch help?

-- 
albert chin (china at thewrittenword.com)

-- snip snip
--- source/lib/util.c.orig	Tue Oct 16 13:58:07 2001
+++ source/lib/util.c	Tue Oct 16 13:58:19 2001
@@ -45,10 +45,6 @@
 
 #include <rpcsvc/nis.h>
 
-#else /* !WITH_NISPLUS_HOME */
-
-#include "rpcsvc/ypclnt.h"
-
 #endif /* WITH_NISPLUS_HOME */
 #endif /* HAVE_NETGROUP && WITH_AUTOMOUNT */
 




More information about the samba-technical mailing list