bug-bash
[Top][All Lists]
Advanced

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

Compile error in execute_cmd.c with --enable-minimal-config


From: jsberg
Subject: Compile error in execute_cmd.c with --enable-minimal-config
Date: Tue, 23 Jul 2002 16:38:22 -0400

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 jsberg1 2.4.18 #1 SMP Fri May 17 19:53:05 EDT 2002 i686 
unknown
Machine Type: i686-pc-linux-gnu

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

Description:
        With --enable-minimal-config option to configure, compilation
        of execute_cmd.c fails, since Cond, Arith, and ArithFor members
        of COMMAND are not defined.

Repeat-By:
        ./configure --enable-minimal-config
        make

Fix:
--- execute_cmd.c~      2002-03-18 13:24:22.000000000 -0500
+++ execute_cmd.c       2002-07-23 16:04:26.000000000 -0400
@@ -286,12 +286,18 @@
     {
       if (currently_executing_command->type == cm_simple)
        return currently_executing_command->value.Simple->line;
+#if defined (COND_COMMAND)
       else if (currently_executing_command->type == cm_cond)
        return currently_executing_command->value.Cond->line;
+#endif
+#if defined (DPAREN_ARITHMETIC)
       else if (currently_executing_command->type == cm_arith)
        return currently_executing_command->value.Arith->line;
+#endif
+#if defined (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]