Ian King - 2009-02-10

I was trying to build this on OS X 10.4 and got a linker error that _console_chan was an undefined symbol.  Digging a bit, I discovered that in io/console.c, there is a line that declares:

int console_chan;

but does not make any use of it.  My suspicion was that because this value is not bound to a value in the module, it doesn't get allocated any storage and so GCC throws it away, even with -O0.  I tried simply assigning zero to it:

int console_chan = 0;

and now things built and the validation suite ran successfully. 

I decided to just send a message rather than perhaps submit a change in SVN since I built from the tarball - oh, and the fact that no one here has any idea who I am.  :-)  It seemed more polite. 

Cheers -- Ian