bug-bash
[Top][All Lists]
Advanced

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

bash-2.05b minimal config not compilable


From: acli
Subject: bash-2.05b minimal config not compilable
Date: Sun, 23 Feb 2003 00:26:11 -0500

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' -DSHELL -DHAVE_CONFIG_H  -I.  -I.. -I../include -I../lib  -g 
-O2
uname output: Linux ada 2.2.23 #8 Sat Feb 22 20:58:49 EST 2003 i686
Machine Type: i686-pc-linux-gnu

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

Description:
        When --enable-minimal-config is specified, "make" of bash 2.05b
        (with bash205b-00[1234] applied) fails with the following error:

gcc  -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"i686"' -DCONF_OSTYPE='"linux-gnu"' 
-DCONF_MACHTYPE='"i686-pc-linux-gnu"' -DCONF_VENDOR='"pc"' -DSHELL 
-DHAVE_CONFIG_H -I.  -I.. -I../include -I../lib  -g -O2 -c ../execute_cmd.c
../execute_cmd.c: In function `executing_line_number':
../execute_cmd.c:290: union has no member named `Cond'
../execute_cmd.c:292: union has no member named `Arith'
../execute_cmd.c:294: union has no member named `ArithFor'
make: *** [execute_cmd.o] Error 1

Repeat-By:
        ../configure --prefix=/usr --bindir=/bin --enable-minimal-config 
--enable-static-link
        make # wait for the error to occur

Fix:
        The fix seems to be the following (but I'm not sure):

--- execute_cmd.c.dist  Mon Mar 18 13:24:22 2002
+++ execute_cmd.c       Sun Feb 23 00:16:28 2003
@@ -286,12 +286,18 @@
     {
       if (currently_executing_command->type == cm_simple)
        return currently_executing_command->value.Simple->line;
+#ifdef COND_COMMAND
       else if (currently_executing_command->type == cm_cond)
        return currently_executing_command->value.Cond->line;
+#endif
+#ifdef DPAREN_ARITHMETIC
       else if (currently_executing_command->type == cm_arith)
        return currently_executing_command->value.Arith->line;
+#endif
+#ifdef ARITH_FOR_COMMAND
       else if (currently_executing_command->type == cm_arith_for)
        return currently_executing_command->value.ArithFor->line;
+#endif
       else
        return line_number;
     }




reply via email to

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