Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!lavaca.uh.edu!menudo.uh.edu!nuchat!kevin From: kevin@nuchat.sccsi.com (Kevin Brown) Newsgroups: comp.os.minix Subject: Re: Building kernel under MINIX-386 Message-ID: <1991Feb13.084159.11749@nuchat.sccsi.com> Date: 13 Feb 91 08:41:59 GMT References: <1991Feb12.175520.20681@ns.network.com> Organization: Teenage Mutant Ninja NiceGuys(tm) Lines: 45 In article <1991Feb12.175520.20681@ns.network.com> hgv@daphne.network.com (Harry G. Varnis) writes: > >I swear this is my last novice/startup posting! > >I've got MINIX-386 running (good stuff!) but am not setup to easily boot >a 16-bit operating environment now to use the regular cpp for kernel's .x >files. I've tried using GNU cpp but get something roughly like "unterminated >constant expression" for start.x, etc. > >Pointers/instruction on the cpp situation under MINIX-386 would be >appreciated. I ran into the very same problem. I have two versions of cpp on my system: GNU cpp and a version of cpp written by Martin Minow. That version of cpp is available via ftp from plains.nodak.edu (under pub/Minix/oz, I think). It is the latter version that I use. In order to get it to work properly, you have to change the Makefile in the kernel. You need to add -E to CPPFLAGS. That will cause it to show the "errors" it generates above, but it will return zero anyway. Presumably you could do the same thing for GNU cpp, but GNU cpp generates some other error that it considers fatal. I don't know why the people writing cpp didn't write them in such a way that an "unterminated string constant" is a WARNING instead of an error! Anyway, grab Minow's cpp, fix up cpp3.c so that the error message it prints when you give it a bad option is done with multiple fprintf()s instead of one with line continuation (I think this is necessary to get bcc to compile it), and you should be in business (I am, at least)... >Much Thanks, No problem. :-) >Harry Varnis (612) 424-4888 -- Kevin Brown Disclaimer: huh? nuchat!kevin@uunet.uu.net csci31f7@cl.uh.edu Minix -- the Unix[tm] of the 90's. System V -- the Multics of the 90's. :-)