iBCS with 2.2.19 kernel

From: Andrew V. Samoilov (sav@bcs.zp.ua)
Date: Wed Apr 11 2001 - 02:29:22 EST


On 2001-03-27 08:39:32 PST Bob Schreibmaier k3ph@dxis.monroe.pa.us write
to comp.os.linux.misc

> I just compiled the 2.2.19 kernel with gcc 2.95.3.
> Compiles and runs just fine. I recompiled the
> iBCS 2.1 module and it compiles just fine, too.
> However, when I try to insmod iBCS it complains
> about variable strlen_user undefined.
>
> Everything works fine under 2.2.18.
>
> Anybody else see this? Anybody know how to fix this?
>
> TIA.

This night I also had same problem. But iBCS does not work for me from 2.2.18.

I write a patch, and it seems everithing works fine for me.

Can you test this patch ?

With best wishes,
Andrew.

diff -rup ibcs/iBCSemul/binfmt_lib.c ibcs-2219/iBCSemul/binfmt_lib.c
--- ibcs/iBCSemul/binfmt_lib.c Sat Jul 4 01:22:11 1998
+++ ibcs-2219/iBCSemul/binfmt_lib.c Wed Apr 11 02:08:12 2001
@@ -12,6 +12,9 @@
 
 #include <asm/pgtable.h>

+#if LINUX_VERSION_CODE > 0x020212 /* > 2.2.18 */
+#define strlen_user(p) strnlen_user((p), LONG_MAX)
+#endif
 
 unsigned long *
 create_ibcs_tables(char *p, struct linux_binprm *bprm, int ibcs)
diff -rup ibcs/include/ibcs/ibcs.h ibcs-2219/include/ibcs/ibcs.h
--- ibcs/include/ibcs/ibcs.h Thu Nov 5 23:50:32 1998
+++ ibcs-2219/include/ibcs/ibcs.h Wed Apr 11 02:07:40 2001
@@ -43,9 +43,11 @@ do_revalidate(struct dentry *dentry)
         return 0;
 }
 
-
 typedef int (*sysfun_p)();
 
+#if LINUX_VERSION_CODE > 0x020212 /* > 2.2.18 */
+#define strlen_user(p) strnlen_user ((p), LONG_MAX)
+#endif
 
 extern sysfun_p sys_call_table[];
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 15 2001 - 21:00:15 EST