[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
coreutils-5.0.90 problems on Crays
From: |
Wendy Palm |
Subject: |
coreutils-5.0.90 problems on Crays |
Date: |
Fri, 08 Aug 2003 16:10:29 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
i've run into a few problems while testing coreutils-5.0.90 and 5.0.1 on the
Crays.
please consider these small patches:
lib/md5.h and src/shred.c need additions to account for the cray's wordsize
old crays have the return value int for endusershell and setusershell
(incorrect,
i know, but nothing's going to get changed at this point in the OS cycle)
so src/su.c has a small problem.
cray's also have a problem with "[" being in the declaration of a makefile,
so src/Makefile.in keeps failing. adding a "\" solves the problem.
thanks,
wendy
--
wendy palm
Cray Open Software Development, Cray Inc.
wendyp at cray.com, 651-605-9154
# diff -c ./lib/md5.h.orig ./lib/md5.h
*** ./lib/md5.h.orig Fri Aug 8 15:11:59 2003
--- ./lib/md5.h Fri Aug 8 15:12:35 2003
***************
*** 63,71 ****
# if ULONG_MAX == UINT_MAX_32_BITS
typedef unsigned long md5_uint32;
# else
! /* The following line is intended to evoke an error.
! Using #error is not portable enough. */
! "Cannot determine unsigned 32-bit data type."
# endif
# endif
# endif
--- 63,75 ----
# if ULONG_MAX == UINT_MAX_32_BITS
typedef unsigned long md5_uint32;
# else
! # if UINT_MAX == _UINT_MAX_64
! typedef unsigned int md5_uint32;
! # else
! /* The following line is intended to evoke an error.
! Using #error is not portable enough. */
! "Cannot determine unsigned 32-bit data type."
! # endif
# endif
# endif
# endif
#
#
# diff -c ./src/Makefile.in.orig ./src/Makefile.in
*** ./src/Makefile.in.orig Fri Aug 8 15:17:33 2003
--- ./src/Makefile.in Fri Aug 8 15:18:04 2003
***************
*** 159,165 ****
EXTRA_PROGRAMS = chroot df hostid nice pinky stty su uname uptime users who
bin_SCRIPTS = groups
! bin_PROGRAMS = [ chgrp chown chmod cp dd dircolors du \
ginstall link ln dir vdir ls mkdir \
mkfifo mknod mv nohup readlink rm rmdir shred stat sync touch unlink \
cat cksum comm csplit cut expand fmt fold head join md5sum \
--- 159,165 ----
EXTRA_PROGRAMS = chroot df hostid nice pinky stty su uname uptime users who
bin_SCRIPTS = groups
! bin_PROGRAMS = \[ chgrp chown chmod cp dd dircolors du \
ginstall link ln dir vdir ls mkdir \
mkfifo mknod mv nohup readlink rm rmdir shred stat sync touch unlink \
cat cksum comm csplit cut expand fmt fold head join md5sum \
***************
*** 296,302 ****
EXTRA_PROGRAMS = chroot$(EXEEXT) df$(EXEEXT) hostid$(EXEEXT) \
nice$(EXEEXT) pinky$(EXEEXT) stty$(EXEEXT) su$(EXEEXT) \
uname$(EXEEXT) uptime$(EXEEXT) users$(EXEEXT) who$(EXEEXT)
! bin_PROGRAMS = [$(EXEEXT) chgrp$(EXEEXT) chown$(EXEEXT) chmod$(EXEEXT) \
cp$(EXEEXT) dd$(EXEEXT) dircolors$(EXEEXT) du$(EXEEXT) \
ginstall$(EXEEXT) link$(EXEEXT) ln$(EXEEXT) dir$(EXEEXT) \
vdir$(EXEEXT) ls$(EXEEXT) mkdir$(EXEEXT) mkfifo$(EXEEXT) \
--- 296,302 ----
EXTRA_PROGRAMS = chroot$(EXEEXT) df$(EXEEXT) hostid$(EXEEXT) \
nice$(EXEEXT) pinky$(EXEEXT) stty$(EXEEXT) su$(EXEEXT) \
uname$(EXEEXT) uptime$(EXEEXT) users$(EXEEXT) who$(EXEEXT)
! bin_PROGRAMS = \[$(EXEEXT) chgrp$(EXEEXT) chown$(EXEEXT) chmod$(EXEEXT) \
cp$(EXEEXT) dd$(EXEEXT) dircolors$(EXEEXT) du$(EXEEXT) \
ginstall$(EXEEXT) link$(EXEEXT) ln$(EXEEXT) dir$(EXEEXT) \
vdir$(EXEEXT) ls$(EXEEXT) mkdir$(EXEEXT) mkfifo$(EXEEXT) \
#
#
# diff -c ./src/shred.c.orig ./src/shred.c
*** ./src/shred.c.orig Fri Aug 8 15:36:00 2003
--- ./src/shred.c Fri Aug 8 15:36:32 2003
***************
*** 259,265 ****
# if UCHAR_MAX == UINT_MAX_32_BITS
typedef unsigned char word32;
# else
! "No 32-bit type available!"
# endif
# endif
# endif
--- 259,269 ----
# if UCHAR_MAX == UINT_MAX_32_BITS
typedef unsigned char word32;
# else
! # if UINT_MAX == _UINT_MAX_64
! typedef unsigned int word32;
! # else
! "No 32-bit type available!"
! # endif
# endif
# endif
# endif
#
#
# diff -c ./src/su.c.orig ./src/su.c
*** ./src/su.c.orig Fri Aug 8 15:41:35 2003
--- ./src/su.c Fri Aug 8 15:41:56 2003
***************
*** 144,151 ****
--- 144,156 ----
char *crypt ();
char *getpass ();
char *getusershell ();
+ #ifdef _UNICOS
+ int endusershell ();
+ int setusershell ();
+ #else
void endusershell ();
void setusershell ();
+ #endif /* _UNICOS */
extern char **environ;
#
# exit
#
Script finished on Fri Aug 8 15:45:59 2003
- coreutils-5.0.90 problems on Crays,
Wendy Palm <=