bug-bash
[Top][All Lists]
Advanced

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

compilation failure


From: Piotr Wiszowaty
Subject: compilation failure
Date: Sun, 4 Jan 2004 05:22:39 +0100 (CET)

Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H   -I.  
-I/home/doko/packages/bash/bash-2.05a 
-I/home/doko/packages/bash/bash-2.05a/include 
-I/home/doko/packages/bash/bash-2.05a/lib -g -O2
uname output: Linux siekiera 2.4.23 #2 Sun Dec 21 00:02:47 CET 2003 i586 unknown
Machine Type: i386-pc-linux-gnu

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

Description:

Bash doesn't compile after configuring with the --enable-minimal-config
flag:

        $ ./configure --enable-minimal-config
          ...
        $ make
          ...
          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

Patch:

--- execute_cmd.c       Mon Mar 18 19:24:22 2002
+++ ../execute_cmd.c    Sun Jan  4 05:19:47 2004
@@ -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;
     }

---

Piotr Wiszowaty




reply via email to

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