Fix for include/asm-i386/elf.h in 2.1.5 (was Re: 2.5.1 asm/elf.h)

Luca Lizzeri (lizzeri@mbox.vol.it)
Tue, 22 Oct 1996 18:59:29 +0100 (MET)


On Mon, 21 Oct 1996 alvieboy@utad.pt wrote:

> Hmmm... While trying to compile the 2.0.0 modules under kernel 2.5.1 I had an
> error... It seems like that asm/elf.h doesn't define all the structures it
> needs to work ok... (something like user_regs)...
> Also I have always problems when using (after fixing the asm/elf.h) the insmod
> because it gives me UNKNOWN ERROR xxxxxxxxx
>

For the problem with insmod you need either the patch that has been
floating around the list for a while or a libc >= 5.4.9.

For asm/elf.h, the fix is this:

--- linux/include/asm-i386/elf.h.orig Fri Oct 18 15:25:45 1996
+++ linux/include/asm-i386/elf.h Fri Oct 18 15:26:29 1996
@@ -6,6 +6,7 @@
*/

#include <asm/ptrace.h>
+#include <asm/user.h>

typedef unsigned long elf_greg_t;

Bye,
Luca Lizzeri