mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* iBCS with 2.2.19 kernel
@ 2001-04-11  7:29 Andrew V. Samoilov
  0 siblings, 0 replies; only message in thread
From: Andrew V. Samoilov @ 2001-04-11  7:29 UTC (permalink / raw)
  To: k3ph, linux-kernel

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[];
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-04-11  7:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-11  7:29 iBCS with 2.2.19 kernel Andrew V. Samoilov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®