Dear sirs,
I'm sorry for my bad english. I have a little problem
with the ABI and the kernel 2.4.18 on the
Slackware Distribution 8.1
I have to use ABI for an old software of the Unesco
(isis) compiled on SCO. In the past I used ibcs2.
Since you advice against the compilation as a module i
compiled the software in the kernel. I had to apply
the patch:
--- abi/svr4/sysi86.c~ Tue Apr 9 14:34:36 2002
+++ abi/svr4/sysi86.c Tue Apr
9 14:33:55 2002
@@ -7,6 +7,7 @@
#include
#include
+#include
#include
#include
#include
@@ -129,7 +130,7 @@
* least. For
now let's lie...
* (actually
SCO Unix 3.4 gives me -1...)
*/
- return
put_user(FP_387, arg1);
+ return
put_user(FP_387, (unsigned long *)arg1);
case STIME:
/*
* Set the
system time. The argument is a long,
but I had to change sysinfo.c in svr4 too,
the line :
#include <linux/compile.h>
in
#include <linux/compiler.h>
I changed the kernel and the old software isis runs
very well but in the file /usr/adm/debug
I find a lot of lines:
Jul 8 09:55:02 cisadu4 kernel: [isisx:4388]: set
personality to 7000003
Jul 8 09:55:02 cisadu4 kernel: [isisx:4389]: set
personality to 0
Jul 8 09:55:02 cisadu4 kernel: [isisx:4390]: set
personality to 0
Jul 8 09:55:02 cisadu4 kernel: [isisx:4391]: set
personality to 0
Jul 8 09:55:02 cisadu4 kernel: [isisx:4392]: set
personality to 0
Jul 8 09:55:02 cisadu4 kernel: [isisx:4393]: set
personality to 0
Jul 8 09:55:02 cisadu4 kernel: [isisx:4394]: set
personality to 0
Jul 8 09:55:02 cisadu4 kernel: [isisx:4395]: set
personality to 0
Jul 8 09:55:02 cisadu4 kernel: [isisx:4396]: set
personality to 0
Jul 8 09:55:02 cisadu4 kernel: [isisx:4397]: set
personality to 0
Jul 8 09:55:02 cisadu4 kernel: [isisx:4398]: set
personality to 0
Jul 8 09:55:02 cisadu4 kernel: [isisx:4399]: set
personality to 0
The /usr/adm/debug in an hour is growth of 300 Kb.
3 Mb in a half day. The system passes a lot of time
writing the log.
I searched in the documentation, but a solution for
a similar problem is for ABI builded as a
module.
I searched if there was a debugging defined but I
had not be able to find it.
Can you help me?
Best regards
Lanfranco Fabriani
CISADU
University of Rome Italy
Logged In: NO
Ciao anche Io, che utilizzo Slackware, non sono riuscito a
compilare il modulo ABI nonostante ho seguito le note trovate
sul sito.
Mentre ho provato con RedHat 7.3 e funziona benissimo.
Se riesci a risolvere il problema puoi farmi sapere qualcosa ??
Vorrei continuare ad usare la mia bella Slcak.
gianluca.conti@siteam.it
Logged In: YES
user_id=750762
compile the abi as module, but first download the egcs
compiler from slackware 8.0, and change the link from gcc to
go to egcs
then compile the kernel and you will have good results I think.
Regards
p.s. do not forget to make gcc point back to the current gcc
binary.
Logged In: NO
You can simply write the output to a console terminal, like I
do. It can mean you miss some debug messages but I've
never had need to look.
just modify syslog.conf with
kern.debug /dev/tty7
this will log the personality output to tty7 which is normally
an unused console virtual terminal - you can always access it
with ctrl-alt-f7 to read whats going on if you need to.
Alternatively, after applying the patch have a look in
kernel/exec_domain.c in your source tree. You'll see
printk(KERN_DEBUG "[%s:%d]: set personality to %lx\n",
current->comm, current->pid, personality);
You can comment this line out to remove the messages if you
want. Of course if its doing funny things you wont see it (at
all), but it will allow you to keep logging other kernel debug
events without filling your filesystem