|
From: Zoltan B. <zb...@fr...> - 2004-12-11 15:48:18
|
Helge Hafting =EDrta:
> I've used ruby for i386 successfully. But I've got an opteron
> now, so I want to compile a 64-bit kernel. I followed debian's
> guide for setting up cross-compiling, but the compile itself
> ended like this:
>=20
> In file included from arch/x86_64/ia32/ia32_ioctl.c:19:
> fs/compat_ioctl.c: In function `do_fontx_ioctl':
> fs/compat_ioctl.c:1616: error: `cfdarg' undeclared (first use in this f=
unction)
> fs/compat_ioctl.c:1616: error: (Each undeclared identifier is reported =
only=20
> once
> fs/compat_ioctl.c:1616: error: for each function it appears in.)
> In file included from arch/x86_64/ia32/ia32_ioctl.c:19:
> fs/compat_ioctl.c: In function `do_kdfontop_ioctl':
> fs/compat_ioctl.c:1655: warning: unused variable `vt'
> make[1]: *** [arch/x86_64/ia32/ia32_ioctl.o] Error 1
> make: *** [arch/x86_64/ia32] Error 2
>=20
>=20
> I need to have 32-bit emulation so I can switch to a 64-bit
> kernel first and change over userspace gradually as the next step.
>=20
> Any ideas? =20
> Or is 2.6.9 "too old" now?
>=20
> Helge Hafting
There's a chunk in ruby-2.6.9-20041021, that's wrong.
It causes the compile error in line 1616. Here's the correct chunk.
It's the line after 'case GIO_FONTX:'.
------------------------------------------------------------------
diff -Nurp --exclude-from=3Dexclude linux-2.6.9/fs/compat_ioctl.c=20
r269/fs/compat_ioctl.c
--- linux-2.6.9/fs/compat_ioctl.c 2004-10-19 00:55:27.000000000 +03=
00
+++ r269/fs/compat_ioctl.c 2004-10-20 19:31:58.000000000 +0300
@@ -1609,8 +1611,10 @@ static int do_fontx_ioctl(unsigned int f
get_user(data, &user_cfd->chardata))
return -EFAULT;
op.data =3D compat_ptr(data);
- return con_font_op(fg_console, &op);
+ return con_font_op(vc, &op);
case GIO_FONTX:
+ if (!user_cfd->chardata)
+ return 0;
op.op =3D KD_FONT_OP_GET;
op.flags =3D 0;
op.width =3D 8;
------------------------------------------------------------------
Best regards,
Zolt=E1n B=F6sz=F6rm=E9nyi
|