cvs-20020521 lib/util.c on AIX

2002-05-22 Thread Harald Koenig

Hi,

compiling yesterday's CVS version of samba on AIX 4.3 breaks in lib/util.c
with the following error message (warnings removed)

Compiling lib/util.c
 from /soft/samba/samba-pre3/samba-pre3-20020521/source/lib/util.c:23:
/usr/include/rpcsvc/yp_prot.h:342: warning: `struct ypall_callback' declared inside 
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.
In file included from /soft/samba/samba-pre3/samba-pre3-20020521/source/lib/util.c:50:
/usr/include/rpcsvc/ypclnt.h:64: redefinition of `struct ypall_callback'
/soft/samba/samba-pre3/samba-pre3-20020521/source/lib/util.c: In function 
`automount_lookup':
/soft/samba/samba-pre3/samba-pre3-20020521/source/lib/util.c:992: warning: passing arg 
3 of `yp_match' discards qualifiers from pointer target type
gmake: *** [lib/util.o] Error 1

because rpcsvc/yp_prot.h is included before/without rpcsvc/ypclnt.h
(IMHO that's a bug in AIX include files ?!).

my easy fix within samba is the patch below...


Index: util.c
===
RCS file: /cvsroot/samba/source/lib/util.c,v
retrieving revision 1.365
diff -u -r1.365 util.c
--- util.c  17 May 2002 14:51:22 -  1.365
+++ util.c  22 May 2002 08:09:21 -
@@ -20,8 +20,6 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include includes.h
-
 #if (defined(HAVE_NETGROUP)  defined (WITH_AUTOMOUNT))
 #ifdef WITH_NISPLUS_HOME
 #ifdef BROKEN_NISPLUS_INCLUDE_FILES
@@ -51,6 +49,8 @@
 
 #endif /* WITH_NISPLUS_HOME */
 #endif /* HAVE_NETGROUP  WITH_AUTOMOUNT */
+
+#include includes.h
 
 int Protocol = PROTOCOL_COREPLUS;
 


Harald Koenig
-- 
I hope to die  ___   _
before I *have* to use Microsoft Word.,   0--,|/OOO\
Donald E. Knuth, 02-Oct-2001 in Tuebingen._/  /  /OOO\
\  \/OOO\
  \ O|//
Harald Koenig  \/\/\/\/\/\/\/\/\/
science+computing ag//  / \\  \
[EMAIL PROTECTED]^   ^




Re: patch for samba-2.2.4 on Solaris

2002-05-10 Thread Harald Koenig

On May 09, Gerald Carter wrote:

  my ugly workaround patch for Solaris right now is:
 
 Thanks for the patch, but I'm afraid is it wrong.
 Apply this patch to configure.in, rerun autoconf,
 recompile and let me know.

ACK! your patch looks much better and (more important;) 
still works fine for Solaris.


thanks,

Harald Koenig
-- 
I hope to die  ___   _
before I *have* to use Microsoft Word.,   0--,|/OOO\
Donald E. Knuth, 02-Oct-2001 in Tuebingen._/  /  /OOO\
\  \/OOO\
  \ O|//
Harald Koenig  \/\/\/\/\/\/\/\/\/
science+computing ag//  / \\  \
[EMAIL PROTECTED]^   ^




2.2.3a-CVS HPUX 10.20 and source/nsswitch/hp_nss_common.h

2002-04-23 Thread Harald Koenig

Hi,

the current 2.2.3x CVS sources don't compile on HPUX 10.20
while 2.2.3b is ok.  reason is the change in nsswitch/hp_nss_common.h
after 2.2.3b which is still needed for HPUX 10.20.

please undo that minor change or just apply the attached patch.


thanks,

Harald Koenig
-- 
I hope to die  ___   _
before I *have* to use Microsoft Word.,   0--,|/OOO\
Donald E. Knuth, 02-Oct-2001 in Tuebingen._/  /  /OOO\
\  \/OOO\
  \ O|//
Harald Koenig  \/\/\/\/\/\/\/\/\/
science+computing ag//  / \\  \
[EMAIL PROTECTED]^   ^


Index: source/nsswitch/hp_nss_common.h
===
RCS file: /cvsroot/samba/source/nsswitch/hp_nss_common.h,v
retrieving revision 1.1.2.3
diff -u -r1.1.2.3 hp_nss_common.h
--- source/nsswitch/hp_nss_common.h 22 Mar 2002 00:03:48 -  1.1.2.3
+++ source/nsswitch/hp_nss_common.h 23 Apr 2002 11:06:02 -
@@ -23,8 +23,12 @@
Boston, MA  02111-1307, USA.
 */
  
+#ifdef HAVE_SYNCH_H
 #include synch.h
+#endif
+#ifdef HAVE_PTHREAD_H
 #include pthread.h
+#endif
  
 typedef enum {
NSS_SUCCESS,