iBCS with 2.2.19 kernel
On 2001-03-27 08:39:32 PST Bob Schreibmaier [email protected] write to comp.os.linux.misc
Quoted 11 lines
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_userundefined.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.
iBCSemul/binfmt_lib.c +3 -0
@@ -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)
include/ibcs/ibcs.h +3 -1
@@ -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[];