$ ls -l /dev/null
-rw-rw-rw-  1 root  wheel  274 Nov  3 18:10 /dev/null

Hmm.

# cd /dev
# ./MAKEDEV std
# ls -l /dev/null
crw-rw-rw-  1 root  wheel    2,   2 Nov  3 18:12 /dev/null

So now:
# cd /usr/src/sys/arch/i386/conf/
# config GENERIC
Don't forget to run "make depend"
Kernel options have changed -- you must run "make clean"

I have no idea what I did to have /dev/null changed. And I never would have thought that config parses /dev/null. Then again I didn't read the man page. The 4.2 kernel is now building.

Thanks for the help.

On 3-Nov-07, at 4:51 PM, Philip Guenther wrote:

On 11/3/07, Jason Murray <[EMAIL PROTECTED]> wrote:
I'm just a bit surprised that no one can give me any clues as to what
that error is. It's almost as if /dev/null is trying to execute, but
how can that be? I'm stumped, hence my post here.

config is reporting that its parser saw invalid syntax when it tried
to open and parse the contents of /dev/null.  /dev/null is _supposed_
to appear as an empty file when opened.  An empty file would be valid
for what config is parsing at that point.  That suggests that your
/dev/null is not actually set up correctly.  Indeed, I can reproduce
the error  message by replacing /dev/null with a non-empty file:

# cd /dev
# mv null n
# (umask 0; echo blah balh > null)
# suspend
$ config GENERIC
/dev/null:1: syntax error
*** Stop.
$ fg
# mv n null
# suspend
$ config GENERIC
Don't forget to run "make depend"
$

So, what's the output of "ls -l /dev/null" ?  It _should_ be:
   crw-rw-rw-  1 root  wheel    2,   2 Nov  3 14:12 /dev/null

If not, then do "cd /dev && MAKEDEV std" as root, then try to track
down what you did as root that remove the original correct /dev/null
to begin with.


(I sent you a short version of the above off-list, but apparently it
didn't though.)

Philip Guenther


--
Jason Murray
 IMBA Durham Region Rep - www.imba.com/canada
 DMBA President - www.durhammountainbiking.ca
 TORBG Exec - www.torbg.org

Reply via email to