bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bash-2.05.0 fails to build on ULTRIX V4.5


From: Bernhard Simon
Subject: bash-2.05.0 fails to build on ULTRIX V4.5
Date: Tue, 10 Apr 2001 18:50:55 +0200 (MET DST)

Configuration Information
Machine: mips
OS: ultrix4.5
Compiler: cc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='mips' \
   -DCONF_OSTYPE='ultrix4.5' -DCONF_MACHTYPE='mips-dec-ultrix4.5' \
   -DCONF_VENDOR='dec' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include \
   -I./lib -I/usr/local/include -std1 -O
uname output: ULTRIX pmax 4.5 0 RISC
Machine Type: mips-dec-ultrix4.5

Bash Version: 2.05
Patch Level: 0
Release Status: release

Description:
   bashline.c fails to compile

Repeat-By:
   vi Makefile.in (lines 485,490: del { test ... exit 0; } || )
   vi configure   (line 2225: MAKE_SHELL=${MAKE_SHELL-/bin/sh})
   MAKE_SHELL=/bin/sh5 CC=cc CFLAGS="-std1 -O" ./configure
   make
    :
   cc  -DPROGRAM='"bash"' ... -std1 -O -c bashline.c
   cfe: Error: ./lib/readline/rltypedefs.h, line 51: \
        Incompatible type for the function parameter (3.5.4.3(15))
    typedef char *rl_compentry_func_t (const char *, int) ;
    -----------------------------------^
   cfe: Warning: bashline.c, line 904: \
        Incompatible pointer type assignment (3.3.16.1, 3.5.4.1(21))
             matches = rl_completion_matches (text, prog_complete_return);
           -----------------------------------------^

Fix:
   These are the diffs to make the compiler happy:
 
*** bashline.c.ORIG     Tue Mar  6 19:36:07 2001
--- bashline.c  Tue Apr 10 16:27:33 2001
***************
*** 782,788 ****
  
  static char *
  prog_complete_return (text, matchnum)
!      char *text;
       int matchnum;
  {
    static int ind;
--- 782,788 ----
  
  static char *
  prog_complete_return (text, matchnum)
!      const char *text;
       int matchnum;
  {
    static int ind;
***************
*** 1959,1969 ****
  
  static char *
  history_completion_generator (hint_text, state)
!      char *hint_text;
       int state;
  {
    static int local_index, len;
!   static char *text;
  
    /* If this is the first call to the generator, then initialize the
       list of strings to complete over. */
--- 1959,1969 ----
  
  static char *
  history_completion_generator (hint_text, state)
!      const char *hint_text;
       int state;
  {
    static int local_index, len;
!   static const char *text;
  
    /* If this is the first call to the generator, then initialize the
       list of strings to complete over. */

--
Bernhard Simon, TU Wien, ZID/StS          address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]