home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / bash / bug / 716 next >
Encoding:
Text File  |  1993-01-05  |  4.4 KB  |  127 lines

  1. Newsgroups: gnu.bash.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!rrz.uni-koeln.DE!clauberg
  3. From: clauberg@rrz.uni-koeln.DE (Axel Clauberg)
  4. Subject: Patches for DEC Alpha running OSF/1
  5. Message-ID: <199301041422.AA65131@rs1.rrz.Uni-Koeln.DE>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Mon, 4 Jan 1993 16:22:34 GMT
  10. Approved: bug-bash@prep.ai.mit.edu
  11. Lines: 114
  12.  
  13. Here is a first set of patches to make bash-1.12 compile and run on DEC
  14. Alpha machines running OSF/1 (we are running DEC OSF/1 T1.2-2  (Rev. 5)).
  15. There are still some problems, but at least you can use bash for further
  16. debugging work.
  17. This machine has 64 bit pointers, 64 bit longs and 32 bit ints, which makes 
  18. some ugly parts of bash fail. I didn't clean up the code in make_redirection,
  19. but instead used a long in the redirectee union. Caution: there are for sure 
  20. more of these "bad" parts in bash where either a function returning a pointer 
  21. isn't declared or some bad int/pointer unions are used...
  22. Be sure to use GNU make (which compiled without problems), else you will
  23. be hit by the DEC make internal definition of MACHINE.
  24.  
  25. diff -cr ./command.h /vol/src/alpha/gnu/bash-1.12/command.h
  26. *** ./command.h    Tue Jan 21 19:08:40 1992
  27. --- /vol/src/alpha/gnu/bash-1.12/command.h    Mon Jan  4 12:28:21 1993
  28. ***************
  29. *** 48,54 ****
  30.     int flags;            /* Flag value for `open'. */
  31.     enum r_instruction  instruction; /* What to do with the information. */
  32.     union {
  33. !     int dest;            /* Place to redirect REDIRECTOR to, or ... */
  34.       WORD_DESC *filename;    /* filename to redirect to. */
  35.     } redirectee;
  36.     char *here_doc_eof;        /* The word that appeared in <<foo. */
  37. --- 48,54 ----
  38.     int flags;            /* Flag value for `open'. */
  39.     enum r_instruction  instruction; /* What to do with the information. */
  40.     union {
  41. !     long dest;            /* Place to redirect REDIRECTOR to, or ... */
  42.       WORD_DESC *filename;    /* filename to redirect to. */
  43.     } redirectee;
  44.     char *here_doc_eof;        /* The word that appeared in <<foo. */
  45. diff -cr ./machines.h /vol/src/alpha/gnu/bash-1.12/machines.h
  46. *** ./machines.h    Fri Jan 17 22:42:24 1992
  47. --- /vol/src/alpha/gnu/bash-1.12/machines.h    Mon Jan  4 14:51:53 1993
  48. ***************
  49. *** 1121,1126 ****
  50. --- 1121,1138 ----
  51.   #undef HAVE_GETWD
  52.   #endif /* MagicStation */
  53.   
  54. + #if defined(__alpha) || defined(alpha)
  55. + #define M_MACHINE "ALPHA"
  56. + #define M_OS OSF1
  57. + #define HAVE_SYS_SIGLIST
  58. + #define HAVE_SETLINEBUF
  59. + #define HAVE_VFPRINTF
  60. + #define VOID_SIGHANDLER
  61. + #define USE_TERMCAP_EMULATION
  62. + #define HAVE_GETGROUPS
  63. + #define SYSDEP_CFLAGS -DNLS -D_BSD
  64. + #undef USE_GNU_MALLOC
  65. + #endif
  66.   /* **************************************************************** */
  67.   /*                                    */
  68.   /*            Generic Entry                   */
  69. diff -cr ./make_cmd.c /vol/src/alpha/gnu/bash-1.12/make_cmd.c
  70. *** ./make_cmd.c    Tue Jan 28 06:59:22 1992
  71. --- /vol/src/alpha/gnu/bash-1.12/make_cmd.c    Mon Jan  4 12:28:56 1993
  72. ***************
  73. *** 411,416 ****
  74. --- 411,417 ----
  75.      and DEST is an INT or a WORD_DESC *. */
  76.   REDIRECT *
  77.   make_redirection (source, instruction, dest)
  78. +      long dest;
  79.        enum r_instruction instruction;
  80.   {
  81.     REDIRECT *temp = (REDIRECT *)xmalloc (sizeof (REDIRECT));
  82. diff -cr ./subst.c /vol/src/alpha/gnu/bash-1.12/subst.c
  83. *** ./subst.c    Tue Nov 26 20:58:59 1991
  84. --- /vol/src/alpha/gnu/bash-1.12/subst.c    Mon Jan  4 14:42:18 1993
  85. ***************
  86. *** 32,37 ****
  87. --- 32,39 ----
  88.   #include <readline/history.h>
  89.   #include <glob/fnmatch.h>
  90.   
  91. + extern GENERIC_LIST *reverse_list();
  92.   /* The size that strings change by. */
  93.   #define DEFAULT_ARRAY_SIZE 512
  94.   
  95. diff -cr ./support/getcppsyms.c /vol/src/alpha/gnu/bash-1.12/support/getcppsyms.c
  96. *** ./support/getcppsyms.c    Thu Jan  9 09:33:05 1992
  97. --- /vol/src/alpha/gnu/bash-1.12/support/getcppsyms.c    Sun Jan  3 18:57:26 1993
  98. ***************
  99. *** 305,310 ****
  100. --- 305,319 ----
  101.   #if defined (vax)
  102.     printf (" -Dvax");
  103.   #endif /* vax */
  104. + #if defined (alpha)
  105. +   printf (" -Dalpha");
  106. + #endif
  107. + #if defined (__alpha)
  108. +   printf (" -D__alpha");
  109. + #endif
  110. + #if defined (__osf__)
  111. +   printf (" -D__osf__");
  112. + #endif
  113.   
  114.     printf ("\n");
  115.     exit (0);
  116.  
  117. Best regards, Axel
  118.  
  119. -- 
  120. Axel Clauberg,    Regional Computing Center, University of Cologne
  121.                   Robert-Koch Str. 10, D- 5000 Koeln 41, Germany
  122.                   Phone:+49 (221) 478-5589  FAX:+49 (221) 478-5590
  123.                   Internet: clauberg@rrz.Uni-Koeln.DE
  124.           X.400: s=clauberg; ou=rrz; p=uni-koeln; a=dbp; c=de
  125.  
  126.