2.2.2 - nsswitch/wb_common.c broken on ReliantUNIX with large files again

Borsenkow Andrej Andrej.Borsenkow at mow.siemens.ru
Tue Oct 16 05:46:02 GMT 2001


It was fixed in 2.2.1a. Any reason it got broken in 2.2.2?:

Compiling nsswitch/wb_common.c
/usr/include/unistd.h   298: [error]:   CFE1020 identifier "off64_t" is
undefined
  extern int ftruncate64(int, off64_t);
                              ^
 
/usr/include/unistd.h   351: [error]:   CFE1020 identifier "off64_t" is
undefined
  extern int lockf64(int, int, off64_t);
                               ^
 
/usr/include/unistd.h   360: [error]:   CFE1020 identifier "off64_t" is
undefined
  extern off64_t lseek64(int, off64_t, int);
         ^
 
/usr/include/unistd.h   360: [error]:   CFE1020 identifier "off64_t" is
undefined
  extern off64_t lseek64(int, off64_t, int);
                              ^
 
/usr/include/unistd.h   390: [error]:   CFE1020 identifier "off64_t" is
undefined
  extern ssize_t pread64(int, void *, size_t, off64_t);
                                              ^
 
/usr/include/unistd.h   458: [error]:   CFE1020 identifier "off64_t" is
undefined
  extern int truncate64(const char *, off64_t);
                                      ^
 
/usr/include/unistd.h   479: [error]:   CFE1020 identifier "off64_t" is
undefined
  extern ssize_t pwrite64(int, void *, size_t, off64_t);
                                               ^
 
/usr/include/sys/stat.h   152: [error]:   CFE1020 identifier "off64_t"
is undefined
        off64_t st_size;
        ^
 
/tools/src/samba-2.2.2/source/nsswitch/wb_common.c   185: [warning]:
CFE1550 variable "selret" was set but never used
                int selret;
                    ^
 
gmake: *** [nsswitch/wb_common.o] Error 1


--- samba-2.2.1a/source/nsswitch/winbind_nss_config.h   Fri Jul  6
06:01:43 2001
+++ samba-2.2.2/source/nsswitch/winbind_nss_config.h    Sun Oct 14
01:09:29 2001
@@ -22,23 +22,13 @@
    Boston, MA  02111-1307, USA.   
 */
 
-#ifndef _NTDOM_CONFIG_H
-#define _NTDOM_CONFIG_H
+#ifndef _WINBIND_NSS_CONFIG_H
+#define _WINBIND_NSS_CONFIG_H
 
 /* Include header files from data in config.h file */
 
 #include <config.h>
 
-#ifdef RELIANTUNIX
-/*
- * <unistd.h> has to be included before any other to get
- * large file support on Reliant UNIX. Yes, it's broken :-).
- */
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
... etc

-andrej




More information about the samba-technical mailing list