Part 2:- [Wylug-help] Help I've broken my SuSE 6.2 system....can' t build kernel.

SimonWoodSimon.Wood@pace.co.uk SimonWoodSimon.Wood at pace.co.uk
Thu, 10 Aug 2000 09:45:35 +0100


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C002A7.5ABA9E2C
Content-Type: text/plain

I've checked out the awk side of things. It's correctly installed and runs (at least partially).

Heres the string (file) that passed to awk in 'scripts/Menuconfig', it seems that it fails with an 'fatal:newnode: can not allocate memory' error on line 36... I did a 'free' and that reported 53MBytes free.
 <<bugger3>> 
As it looks to be recursing is there any way that memory could be limited, and thus cause it to crash? Does it use and temporary files anywhere?

It had also created the files 'MCmenu0' through to 'MCmenu9', I guess that these will later be used in the menuing system.

Anyone else have any suggestions? I really don't know/understand awk and any help would be appreciated,
Simon Wood


------_=_NextPart_000_01C002A7.5ABA9E2C
Content-Type: application/octet-stream;
	name="bugger3"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="bugger3"

BEGIN {=0A=
	menu_no =3D 0=0A=
	comment_is_option =3D 0=0A=
	parser("arch/mips/config.in","MCmenu0")=0A=
}=0A=
=0A=
function parser(ifile,menu) {=0A=
=0A=
	while (getline <ifile) {=0A=
		if ($1 =3D=3D "mainmenu_option") {=0A=
			comment_is_option =3D "1"=0A=
		}=0A=
		else if ($1 =3D=3D "comment" && comment_is_option =3D=3D "1") {=0A=
			comment_is_option=3D "0"=0A=
			sub($1,"",$0)=0A=
			++menu_no=0A=
=0A=
			printf("submenu %s MCmenu%s\n", $0, menu_no) >>menu=0A=
=0A=
			newmenu =3D sprintf("MCmenu%d", menu_no);=0A=
			printf( "function MCmenu%s () {\n"\=0A=
				"default=3D$1\n"\=0A=
				"menu_name %s\n",\=0A=
				 menu_no, $0) >newmenu=0A=
=0A=
			parser(ifile, newmenu)=0A=
		}=0A=
		else if ($1 ~ "endmenu") {=0A=
			printf("}\n") >>menu=0A=
			return=0A=
		} =0A=
		else if ($0 ~ /^#|\$MAKE|mainmenu_name/) {=0A=
			printf("") >>menu=0A=
		}=0A=
		else if ($1 =3D=3D "source") {=0A=
			parser($2,menu)=0A=
		}=0A=
		else {=0A=
			print >>menu=0A=
		}=0A=
	}=0A=
}=0A=

------_=_NextPart_000_01C002A7.5ABA9E2C--