Eddie Chen wrote:
>I am getting error in compiling "ibm.c" in ebdic.h function
>"codepage_convert" when I try to rebuild the kernel.
I would not recommend building kernel 2.4.7 with gcc 3.2, because
the kernel is rather sensitive w.r.t. compiler version, and there are
several cases where old kernels contain constructs that old compilers
accepted, but cause either compile-time errors or (worse!) run-time
problems when building with a more recent compiler.
With the 2.4.17 and 2.4.19 kernel patches we provide on developerWorks,
we have removed those cases and have actually tested kernels built
with the new compiler, so we can recommend to do so.
However, nobody has tested a 2.4.7 built with gcc 3.2, so even
if you get it to compile, there is the possibility of lurking
run-time problems. (And this is quite real, we had such problems
ourselves initially when building kernels with gcc 3.x for the
first time!)
Now, if you really want to try it, you can backport the fixes
from later kernels yourself. In particular, if you look at the
implementation of codepage_convert in 2.4.17 / 2.4.19, this will
not have the bug ("invalid lvalue in asm statement"), so you can
just use that version (it should work for 2.4.7 as well).
Bye,
Ulrich
--
Dr. Ulrich Weigand
[EMAIL PROTECTED]