Joshua Banks
2003-Sep-08 22:26 UTC
[Shorewall-users] make: *** [menuconfig] Error 139 ????????
I successfully upgraded my kernel today from 2.4.20-gentoo-r5 to r6 using Genkernel. 1)cd /usr/src 2)dir 3)rm linux 4)ln -s linux-2.4.20-gentoo-r6 linux 5)cd linux 5)genkernel update grub.conf to reflect the new kernel revision. After I rebooted I did "uname -a" to confirm: Linux deadmeat 2.4.20-gentoo-r6 #1 Mon Sep 8 17:50:29 PDT 2003 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux Wahoooo.... So now I need to load the appropriate Netfilter modules so that I can get the Shorewall firewall working. Issue: genkernel --config ...which opens the genkernel menuconfig. I was moving around in the netfilter configuration section when the menuconfig utility disappeared and brought me back to the command line with an error. I copied the error message which follows next after the full explanation. I then issued the "genkernel --config" command again to get back into kernel menuconfig again and adjusted my kernel to follow Toms Kernel settings on the Shorewall site. Exited and saved and it got about half way through compiling and ":aborted" In the meantime I''m going to "emerge ncurses" and hope that this will fix the problem and hope that someone else has run into the same thing. ******************* There seems to be a problem with the lxdialog companion utility which is built prior to running Menuconfig. Usually this is an indicator that you have upgraded/downgraded your ncurses libraries and did not remove the old ncurses header file(s) in /usr/include or /usr/include/ncurses. It is VERY important that you have only one set of ncurses header files and that those files are properly version matched to the ncurses libraries installed on your machine. You may also need to rebuild lxdialog. This can be done by moving to the /usr/src/linux/scripts/lxdialog directory and issuing the "make clean all" command. If you have verified that your ncurses install is correct, you may email the maintainer <mec@shout.net> or post a message to <linux-kernel@vger.kernel.org> for additional assistance. make: *** [menuconfig] Error 139 Error running "make menuconfig"; exiting. : aborting. ******************************************************* Below is my second attempt. I actually make it through selecting my module changes to netfilter menu in the Kernel menuconfig and then save changes: Aborts..at the point listed below. Saving your kernel configuration... *** End of Linux kernel configuration. *** Check the top-level Makefile for additional configuration. *** Next, you must run ''make dep''. * Logging to /var/log/genkernel.log... [ ok ] * Starting 2.4.20-gentoo-r6 build... [ ok ] * Running "make dep"... [ ok ] * Running "make bzImage"... [ ok ] * Running "make modules"... : aborting. deadmeat modules.autoload.d # emerge -sp ncurses Searching... [ Results for search key : ncurses ] [ Applications found : 3 ] * app-games/mt_ncurses_client Latest version available: 0.1.98 Latest version installed: [ Not Installed ] Size of downloaded files: 94 kB Homepage: http://www.nongnu.org/maitretarot/ Description: client for the french tarot game maitretarot * dev-ruby/ncurses-ruby [ Masked ] Latest version available: 0.7.1 Latest version installed: [ Not Installed ] Size of downloaded files: 33 kB Homepage: http://ncurses-ruby.berlios.de/ Description: Ruby wrappers of ncurses and PDCurses libs * sys-libs/ncurses Latest version available: 5.3-r1 Latest version installed: 5.3-r1 Size of downloaded files: 2,019 kB Homepage: http://www.gnu.org/software/ncurses/ncurses.html Description: Linux console display library deadmeat modules.autoload.d # emerge ncurses Calculating dependencies ...done!>>> emerge (1 of 1) sys-libs/ncurses-5.3-r1 to /This is what I show before emerging the above: -rw-r--r-- 1 root root 55881 Jul 26 15:11 curses.h lrwxrwxrwx 1 root root 8 Sep 4 12:53 ncurses.h -> curses.h -rw-r--r-- 1 root root 1342 Jul 26 15:11 ncurses_dll.h __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
Joshua Banks
2003-Sep-09 05:26 UTC
[Shorewall-users] Re: [Shorewall/Gentoo-users] make: *** [menuconfig] Error 139[RESOLVED AND WORKING]
I used "genkernel" to compile "gentoo-sources" and I just upgraded from kernel-2.4.20-gentoo-r5 to r6. I''m running Shorewall version 1.4.6c which is what "portage grabbed the other day". Oh, by the way the "StartupDisabled" file wasn''t present in this download. Tom I don''t know if that changed or not. It''s been awhile sense I''ve downloaded Shorewall.. The last thing on my list to get installed on my new Gentoo box was "Shorewall" for simple security logging and having the ability to nat our ChinsEE-ass ppp 56K dialup connection so at least 2 or 3 computers can be out on the internet at the same time. (not able to do a whole lot at the same time but at least we can all be out at the same time.. :p ) Figuring out what exactly needed to be put into the Kernel was the messed up part. I hosed my box at first and got Kernel Panic: Attempting to kill init; and was basically dead in the water. Crying hee.hee... Had to boot off the Gentoo LiveCD and chroot back into the system and run "genkernel --config" and hope that I would get it right this time....I really believed that I lucked out. These are my settings. You might want to add some more modules for what your needs are, but as long as I''m able port forward ssh to my firewall from the internet and nat outbound connections for the other 2 machines, then I''m a happy camper.. I didn''t have to put any of the Netfilter modules in /etc/modules.autoload.d/Kernel-2.4 Shorewall grabs this stuff when it starts up. Gotta luv it... Let me know if you need anything... # Networking options # CONFIG_PACKET=y # CONFIG_PACKET_MMAP is not set # CONFIG_NETLINK_DEV is not set CONFIG_NETFILTER=y # CONFIG_NETFILTER_DEBUG is not set CONFIG_FILTER=y CONFIG_UNIX=y CONFIG_INET=y CONFIG_IP_MULTICAST=y CONFIG_IP_ADVANCED_ROUTER=y CONFIG_IP_MULTIPLE_TABLES=y CONFIG_IP_ROUTE_FWMARK=y CONFIG_IP_ROUTE_NAT=y CONFIG_IP_ROUTE_MULTIPATH=y CONFIG_IP_ROUTE_TOS=y CONFIG_IP_ROUTE_VERBOSE=y # CONFIG_IP_ROUTE_LARGE_TABLES is not set # CONFIG_IP_PNP is not set CONFIG_NET_IPIP=y CONFIG_NET_IPGRE=y # CONFIG_NET_IPGRE_BROADCAST is not set # CONFIG_IP_MROUTE is not set # CONFIG_ARPD is not set CONFIG_INET_ECN=y CONFIG_SYN_COOKIES=y # IP: Netfilter Configuration # CONFIG_IP_NF_CONNTRACK=m CONFIG_IP_NF_FTP=m CONFIG_IP_NF_AMANDA=m CONFIG_IP_NF_TFTP=m # CONFIG_IP_NF_TALK is not set # CONFIG_IP_NF_RSH is not set # CONFIG_IP_NF_H323 is not set # CONFIG_IP_NF_EGG is not set # CONFIG_IP_NF_CONNTRACK_MARK is not set # CONFIG_IP_NF_IRC is not set # CONFIG_IP_NF_QUAKE3 is not set # CONFIG_IP_NF_CT_PROTO_GRE is not set # CONFIG_IP_NF_PPTP is not set # CONFIG_IP_NF_MMS is not set # CONFIG_IP_NF_CUSEEME is not set # CONFIG_IP_NF_QUEUE is not set CONFIG_IP_NF_IPTABLES=m # CONFIG_IP_NF_MATCH_RPC is not set CONFIG_IP_NF_MATCH_LIMIT=m # CONFIG_IP_NF_MATCH_QUOTA is not set # CONFIG_IP_NF_POOL is not set CONFIG_IP_NF_MATCH_IPRANGE=m CONFIG_IP_NF_MATCH_MAC=m CONFIG_IP_NF_MATCH_PKTTYPE=m CONFIG_IP_NF_MATCH_MARK=m CONFIG_IP_NF_MATCH_MULTIPORT=m CONFIG_IP_NF_MATCH_MPORT=m CONFIG_IP_NF_MATCH_TOS=m # CONFIG_IP_NF_MATCH_RECENT is not set # CONFIG_IP_NF_MATCH_TIME is not set # CONFIG_IP_NF_MATCH_RANDOM is not set # CONFIG_IP_NF_MATCH_PSD is not set # CONFIG_IP_NF_MATCH_NTH is not set # CONFIG_IP_NF_MATCH_IPV4OPTIONS is not set # CONFIG_IP_NF_MATCH_FUZZY is not set # CONFIG_IP_NF_MATCH_CONDITION is not set CONFIG_IP_NF_MATCH_ECN=m CONFIG_IP_NF_MATCH_DSCP=m CONFIG_IP_NF_MATCH_AH_ESP=m CONFIG_IP_NF_MATCH_LENGTH=m # CONFIG_IP_NF_MATCH_TTL is not set CONFIG_IP_NF_MATCH_TCPMSS=m # CONFIG_IP_NF_MATCH_STEALTH is not set # CONFIG_IP_NF_MATCH_REALM is not set CONFIG_IP_NF_MATCH_HELPER=m CONFIG_IP_NF_MATCH_STATE=m CONFIG_IP_NF_MATCH_CONNLIMIT=m CONFIG_IP_NF_MATCH_CONNTRACK=m CONFIG_IP_NF_MATCH_UNCLEAN=m # CONFIG_IP_NF_MATCH_STRING is not set # CONFIG_IP_NF_MATCH_OWNER is not set CONFIG_IP_NF_FILTER=m CONFIG_IP_NF_TARGET_REJECT=m # CONFIG_IP_NF_TARGET_NETLINK is not set # CONFIG_IP_NF_TARGET_IPV4OPTSSTRIP is not set # CONFIG_IP_NF_TARGET_MIRROR is not set # CONFIG_IP_NF_TARGET_TARPIT is not set CONFIG_IP_NF_NAT=m CONFIG_IP_NF_NAT_NEEDED=y CONFIG_IP_NF_TARGET_MASQUERADE=m CONFIG_IP_NF_TARGET_REDIRECT=m CONFIG_IP_NF_NAT_AMANDA=m # CONFIG_IP_NF_TARGET_SAME is not set # CONFIG_IP_NF_TARGET_NETMAP is not set CONFIG_IP_NF_NAT_LOCAL=y # CONFIG_IP_NF_NAT_SNMP_BASIC is not set CONFIG_IP_NF_NAT_FTP=m CONFIG_IP_NF_NAT_TFTP=m CONFIG_IP_NF_MANGLE=m CONFIG_IP_NF_TARGET_TOS=m CONFIG_IP_NF_TARGET_ECN=m CONFIG_IP_NF_TARGET_DSCP=m CONFIG_IP_NF_TARGET_MARK=m # CONFIG_IP_NF_TARGET_IMQ is not set # CONFIG_IP_NF_TARGET_CLASSIFY is not set CONFIG_IP_NF_TARGET_LOG=m # CONFIG_IP_NF_TARGET_ROUTE is not set # CONFIG_IP_NF_TARGET_TTL is not set CONFIG_IP_NF_TARGET_ULOG=m CONFIG_IP_NF_TARGET_TCPMSS=m CONFIG_IP_NF_ARPTABLES=m CONFIG_IP_NF_ARPFILTER=m # CONFIG_IP_NF_COMPAT_IPCHAINS is not set # CONFIG_IP_NF_COMPAT_IPFWADM is not set JBanks --- Joshua Banks <l0f33t@yahoo.com> wrote:> I successfully upgraded my kernel today from 2.4.20-gentoo-r5 to r6 using Genkernel. > > 1)cd /usr/src > 2)dir > > 3)rm linux > 4)ln -s linux-2.4.20-gentoo-r6 linux > 5)cd linux > > 5)genkernel > > update grub.conf to reflect the new kernel revision. > > After I rebooted I did "uname -a" to confirm: > Linux deadmeat 2.4.20-gentoo-r6 #1 Mon Sep 8 17:50:29 PDT 2003 i686 Pentium III (Coppermine) > GenuineIntel GNU/Linux > > Wahoooo.... > > So now I need to load the appropriate Netfilter modules so that I can get the Shorewall firewall > working. > > Issue: genkernel --config ...which opens the genkernel menuconfig. > > I was moving around in the netfilter configuration section when the menuconfig utility > disappeared > and brought me back to the command line with an error. I copied the error message which follows > next after the full explanation. I then issued the "genkernel --config" command again to get > back > into kernel menuconfig again and adjusted my kernel to follow Toms Kernel settings on the > Shorewall site. > Exited and saved and it got about half way through compiling and ":aborted" > > In the meantime I''m going to "emerge ncurses" and hope that this will fix the problem and hope > that someone else has run into the same thing. > > ******************* > There seems to be a problem with the lxdialog companion utility which is > built prior to running Menuconfig. Usually this is an indicator that you > have upgraded/downgraded your ncurses libraries and did not remove the > old ncurses header file(s) in /usr/include or /usr/include/ncurses. > > It is VERY important that you have only one set of ncurses header files > and that those files are properly version matched to the ncurses libraries > installed on your machine. > > You may also need to rebuild lxdialog. This can be done by moving to > the /usr/src/linux/scripts/lxdialog directory and issuing the > "make clean all" command. > > If you have verified that your ncurses install is correct, you may email > the maintainer <mec@shout.net> or post a message to > <linux-kernel@vger.kernel.org> for additional assistance. > > make: *** [menuconfig] Error 139 > Error running "make menuconfig"; exiting. > : aborting. > > ******************************************************* > > Below is my second attempt. I actually make it through selecting my module changes to netfilter > menu in the Kernel menuconfig and then save changes: Aborts..at the point listed below. > > Saving your kernel configuration... > > *** End of Linux kernel configuration. > *** Check the top-level Makefile for additional configuration. > *** Next, you must run ''make dep''. > > * Logging to /var/log/genkernel.log... > > [ ok ] > * Starting 2.4.20-gentoo-r6 build... > > [ ok ] > * Running "make dep"... > > [ ok ] > * Running "make bzImage"... > > [ ok ] > * Running "make modules"... > : aborting. > > > deadmeat modules.autoload.d # emerge -sp ncurses > Searching... > [ Results for search key : ncurses ] > [ Applications found : 3 ] > > * app-games/mt_ncurses_client > Latest version available: 0.1.98 > Latest version installed: [ Not Installed ] > Size of downloaded files: 94 kB > Homepage: http://www.nongnu.org/maitretarot/ > Description: client for the french tarot game maitretarot > > * dev-ruby/ncurses-ruby [ Masked ] > Latest version available: 0.7.1 > Latest version installed: [ Not Installed ] > Size of downloaded files: 33 kB > Homepage: http://ncurses-ruby.berlios.de/ > Description: Ruby wrappers of ncurses and PDCurses libs > > * sys-libs/ncurses > Latest version available: 5.3-r1 > Latest version installed: 5.3-r1 > Size of downloaded files: 2,019 kB > Homepage: http://www.gnu.org/software/ncurses/ncurses.html > Description: Linux console display library > > > deadmeat modules.autoload.d # emerge ncurses > Calculating dependencies ...done! > >>> emerge (1 of 1) sys-libs/ncurses-5.3-r1 to / > > > > This is what I show before emerging the above: > > -rw-r--r-- 1 root root 55881 Jul 26 15:11 curses.h > lrwxrwxrwx 1 root root 8 Sep 4 12:53 ncurses.h -> curses.h > -rw-r--r-- 1 root root 1342 Jul 26 15:11 ncurses_dll.h > > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > _______________________________________________ > Shorewall-users mailing list > Post: Shorewall-users@lists.shorewall.net > Subscribe/Unsubscribe: http://lists.shorewall.net/mailman/listinfo/shorewall-users > Support: http://www.shorewall.net/support.htm > FAQ: http://www.shorewall.net/FAQ.htm__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com