bug-bash
[Top][All Lists]
Advanced

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

bash 3.1 does not compile for ./configure --disable-readline


From: Adam Buraczewski
Subject: bash 3.1 does not compile for ./configure --disable-readline
Date: Wed, 21 Dec 2005 10:50:04 +0100

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -O2 -march=pentium2
uname output: Linux localhost 2.6.14.1 #1 Thu Nov 10 20:41:24 CET 2005 i686 
unknown unknown GNU/Linux
Machine Type: i686-pc-linux-gnu

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

Description:

Bash 3.1 does not compile without readline support.  The problem can
be narrowed to file variables.c, routine sh_set_lines_and_columns,
which checks variable winsize_assignment, declared only when readline
support is enabled.  It looks as this check can be ommitted entirely,
when READLINE symbol is not defined.  This bug prevents also building
bash with "./configure --enable-minimal-config".

The exact error message generated by GCC is:

variables.c: In function `sh_set_lines_and_columns':
variables.c:864: error: `winsize_assignment' undeclared (first use in this 
function)

Repeat-By:

cd bash-3.1
./configure --disable-readline
make

Fix:

*** variables.c.orig    Sun Nov 13 03:22:37 2005
--- variables.c Mon Dec 19 11:36:24 2005
***************
*** 860,868 ****
--- 860,870 ----
  {
    char val[INT_STRLEN_BOUND(int) + 1], *v;
  
+ #if defined (READLINE)
    /* If we are currently assigning to LINES or COLUMNS, don't do anything. */
    if (winsize_assignment)
      return;
+ #endif
  
    v = inttostr (lines, val, sizeof (val));
    bind_variable ("LINES", v, 0);





reply via email to

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