[Top][All Lists]

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

compilation error on execute_cmd.c line 290

From: Ahmed Masud
Subject: compilation error on execute_cmd.c line 290
Date: Mon, 30 Sep 2002 01:45:12 -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 marauder 2.4.18 #2 SMP Tue Jul 16 13:31:08 EDT 2002 i686 
Machine Type: i686-pc-linux-gnu

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

        bash fails to compile when configured with --enable-minimal-config
        configure flag on file execute_cmd.c lines 290-294.

        $ cd bash-2.05b
        $ ./configure --enable-minimal-config
        $ make

        Here is a patch to fix it.

--- bash-2.05b/execute_cmd.c    Mon Mar 18 13:24:22 2002
+++ bash-2.05b.1/execute_cmd.c  Mon Sep 30 01:26:44 2002
@@ -286,12 +286,19 @@
       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;
+#if defined (DPAREN_ARITHMETIC)
       else if (currently_executing_command->type == cm_arith)
        return currently_executing_command->value.Arith->line;
+#if defined (ARITH_FOR_COMMAND)
       else if (currently_executing_command->type == cm_arith_for)
        return currently_executing_command->value.ArithFor->line;
        return line_number;

reply via email to

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