bug-bash
[Top][All Lists]
Advanced

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

bash-2.05b: problem with optional features.


From: Marc Beuchat
Subject: bash-2.05b: problem with optional features.
Date: Wed, 4 Sep 2002 10:38:25 +0200

I have two bugs to report regarding problems when disabling optional
features:

(1) The following generates a compile-time error:

    ./configure --enable-minimal-config
    make
    .
    .
    .




gcc  -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"i686"' -DCONF_OSTYPE='"linux-gnu"'
 -DCONF_MACHTYPE='"i686-pc-linux-gnu"' -DCONF_VENDOR='"pc"' -DSHELL -DHAVE_C
ONFIG_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

    You will find attached a patch that fixes this problem by adding the
appropriate #if defined ... #endif statements in execute_cmd.c.

(2) The following generates a compile-time error:

    make clean
    rm -f y.tab.*
    ./configure --enable-minimal-config --enable-dparen-arithmetic
    make
    .
    .
    .




gcc  -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"i686"' -DCONF_OSTYPE='"linux-gnu"'
 -DCONF_MACHTYPE='"i686-pc-linux-gnu"' -DCONF_VENDOR='"pc"' -DSHELL -DHAVE_C
ONFIG_H  -I.  -I. -I./include -I./lib  -g -O2 -c y.tab.c
    /usr/homes/chet/src/bash/src/parse.y:155: parse error before `alias_t'
    make: *** [y.tab.o] Error 1

    Line 154 - 158 of parse.y reveals the following:

        #if defined (ALIAS) || defined (DPAREN_ARITHMETIC)
        static void push_string __P((char *, int, alias_t *));
        static void pop_string __P((void));
        static void free_string_list __P((void));
        #endif

    In other words, we need to enable aliases as well as dparen_arithmetic.
Thus, one solution would be to run
./configure --enable-minimal-config --enable-dparen-arithmetic --enable-alia
s. Another would be to define ALIAS if DPAREN_ARITHMETIC is defined and
vis-versa. I will leave it to you to decide on the definitive solution to
this issue.

Thanks for taking note of the above two points.

Marc Beuchat

Attachment: bash-2.05b-p1.diff
Description: Binary data


reply via email to

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