Note: I'm adding this bug here as I'm not sure if it's caused by a kernel problem or a bad gentoo patch. Reproducible: yes - with make menuconfig: shows an error message when parsing: Preparing scripts: functions, parsing............scripts/Menuconfig: ./MCmenu19: line 162: syntax error near unexpected token `fi' scripts/Menuconfig: ./MCmenu19: line 162: `fi' ....... etc. Furthermore, when entering 'Networking options', script exits with message: Menuconfig has encountered a possible error in one of the kernel's configuration files and is unable to continue. Here is the error report: Q> scripts/Menuconfig: line 832: MCmenu19: command not found Please report this to the maintainer <mec@shout.net>. You may also send a problem report to <linux-kernel@vger.kernel.org>. Please indicate the kernel version you are trying to configure and which menu you were trying to enter when this error occurred. make: *** [menuconfig] Error 1 - with make config: also fails after selecting ipsec option. - with make xconfig: not tested, should also fail Cause: net/ipsec/Config.in: line 34 is commented out, which causes the interpreter to fail parsing the file. Workaround: comment out the 'if ... fi' lines around that one.
*** This bug has been marked as a duplicate of 37668 ***