Re: Linux 2.4.26-rc1 - SCTP 'make xconfig' issue

From: Sridhar Samudrala
Date: Wed Mar 31 2004 - 19:50:13 EST


On Sun, 28 Mar 2004, Peter Osterlund wrote:

> Marcelo Tosatti <marcelo.tosatti@xxxxxxxxxxxx> writes:
>
> > Sridhar Samudrala:
> > o [SCTP] Avoid the use of hacking CONFIG_IPV6_SCTP__ option
> >
> > Please test!
>
> I get an error when selecting save and exit in "make xconfig":
>
> ERROR - Attempting to write value for unconfigured variable (CONFIG_IP_SCTP)

Vladislav Yasevich did some investigation into this issue and he came
out with the conclusion that this is due to a bug in the parser for
'make xconfig'(tkparse). 'make menuconfig' and 'make oldconfig' should work
fine.

The parser for 'make xconfig' (tkparse) does not handle correctly
conditionals that redefine the same variable to be of two
different types. This is particularly pronounce when one
is a dependancy variable and the other is not. For each
[dep_]tristate definition, the parser generates lines in
the tk script that set the variable. Whe TK interprets it,
the end result is that the variable is set incorrectly. I was
able to modify the TK script by hand to fix this, but the
problem seems to realy be in the tkparse parser.

He came up with the following patch that works around this issue with
tkparse. Could you please verify if this works for you?

diff -Nru a/net/sctp/Config.in b/net/sctp/Config.in
--- a/net/sctp/Config.in Wed Mar 31 14:22:45 2004
+++ b/net/sctp/Config.in Wed Mar 31 14:22:45 2004
@@ -4,10 +4,10 @@
mainmenu_option next_comment
comment ' SCTP Configuration (EXPERIMENTAL)'

-if [ "$CONFIG_IPV6" = "n" ]; then
- tristate ' The SCTP Protocol (EXPERIMENTAL)' CONFIG_IP_SCTP
-else
- dep_tristate ' The SCTP Protocol (EXPERIMENTAL)' CONFIG_IP_SCTP $CONFIG_IPV6
+tristate ' The SCTP Protocol (EXPERIMENTAL)' CONFIG_IP_SCTP
+
+if [ "$CONFIG_IP_SCTP" = "y" -a "$CONFIG_IPV6" = "m" ]; then
+ define_tristate CONFIG_IP_SCTP m
fi

if [ "$CONFIG_IP_SCTP" != "n" ]; then

Thanks
Sridhar
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/