bug-bash
[Top][All Lists]
Advanced

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

Error building bash-3.2.52 downloaded/patched from ftp.gnu.org.


From: Kevin Broadey
Subject: Error building bash-3.2.52 downloaded/patched from ftp.gnu.org.
Date: Fri, 26 Sep 2014 11:26:39 +0000

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/local/share/locale' -DPACKAGE='b\
ash' -DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -g -O2
uname output: Linux c2n2 2.4.21-40.ELsmp #1 SMP Thu Feb 2 22:22:39 EST
2006 i686 i686 i386 GNU/Linux
Machine Type: i686-pc-linux-gnu

Bash Version: 3.2
Patch Level: 52
Release Status: release


I downloaded these files from anonymous@ftp.gnu.org:/pub/gnu/bash:-

bash-3.2.48.tar.gz bash-3.2-patches/bash32-049 bash-3.2-patches/bash32-050
bash-3.2-patches/bash32-051 bash-3.2-patches/bash32-052

I then ran ³tar zxf bash-3.2.48.tar.gz² to unpack the archive and ³patch
­p0 < patchfile² for each of the patch files in turn.
I then ran ³./configure² and ³make² on a RHEL 3.7 system.
I got this error:-


gcc  -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"i686"'
-DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"i686-pc-linux-gnu"'
-DCONF_VENDOR='"pc"' -DLOCALEDIR='"/usr/local/share/locale"'
-DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib
 -g -O2 -c y.tab.c
/Users/chet/src/bash/src/parse.y: In function `decode_prompt_string':
/Users/chet/src/bash/src/parse.y:4333: too few arguments to function
`expand_prompt_string'
make: *** [y.tab.o] Error 1
[root@c2n2 bash-3.2.52]# gcc --version
gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-54)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


The patch is as follows:-

$ git diff master~1
diff --git a/y.tab.c b/y.tab.c
index f8db50d..a47a4dd 100644
--- a/y.tab.c
+++ b/y.tab.c
@@ -5660,7 +5660,7 @@ not_escape:
   if (promptvars || posixly_correct)
     {
       last_exit_value = last_command_exit_value;
-      list = expand_prompt_string (result, Q_DOUBLE_QUOTES);
+      list = expand_prompt_string (result, Q_DOUBLE_QUOTES, 0);
       free (result);
       result = string_list (list);
       dispose_words (list);


I¹ve checked parse.y and the call to expand_prompt_string is correct, so
it looks like you¹ve distributed this version without running bison first.
 My machine has bison installed so I¹m not sure why ³make² didn¹t invoke
it.

Best regards
Kevin Broadey




reply via email to

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