From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <6bb1990070066d15e438e940c9120963.axp-list@archive.invalid> X-Archive-Original-Message-ID: Date: Sun, 11 Aug 1996 18:48:57 -0600 (MDT) From: Michal Jaegermann Subject: Re: Fun with modules - 2.0.12 Following my own posting (which one should not do :-): it looks like that setting CONFIG_MODVERSIONS to y helps with modules problem. At least insmod from modules-1.2.8-8.axp.rpm seems to work OK. Trying insmod from modules-2.0.0 runs into the same gotcha (i.e. "kernel_version needed, but can't be found"). Calling the same executable as lsmod or rmmod does not exhibit any problems. Oh, well... Trying to get all this stuff to compile I stumbled into two problems in 2.0.12 sources. On Alpha NCR_IOMAPPED is defined even if SCSI_NCR_IOMAPPED is not and a.out.h uses non-existent (on Alpha) structure fields instead of macros which were obviously provided to prevent this from happenning. Here are patches: --- linux-2.0.12/drivers/scsi/ncr53c8xx.c~ Tue Jul 23 01:26:41 1996 +++ linux-2.0.12/drivers/scsi/ncr53c8xx.c Sun Aug 11 15:19:50 1996 @@ -8142,7 +8142,7 @@ copy_info(&info, " IO port address 0x%lx, ", (u_long) np->port); copy_info(&info, "IRQ number %d\n", (int) np->irq); -#ifndef SCSI_NCR_IOMAPPED +#ifndef NCR_IOMAPPED if (np->use_mmio) copy_info(&info, " Using memory mapped IO at virtual address 0x%lx\n", (u_long) np->reg_remapped); --- linux-2.0.12/include/linux/a.out.h~ Mon May 6 03:44:32 1996 +++ linux-2.0.12/include/linux/a.out.h Sun Aug 11 16:49:17 1996 @@ -94,15 +94,15 @@ #endif #if !defined (N_DRELOFF) -#define N_DRELOFF(x) (N_TRELOFF(x) + (x).a_trsize) +#define N_DRELOFF(x) (N_TRELOFF(x) + N_TRSIZE(x)) #endif #if !defined (N_SYMOFF) -#define N_SYMOFF(x) (N_DRELOFF(x) + (x).a_drsize) +#define N_SYMOFF(x) (N_DRELOFF(x) + N_DRSIZE(x)) #endif #if !defined (N_STROFF) -#define N_STROFF(x) (N_SYMOFF(x) + (x).a_syms) +#define N_STROFF(x) (N_SYMOFF(x) + N_SYMSIZE(x)) #endif /* Address of text segment in memory after it is loaded. */ Other than that is seems that I have to mount a Toshiba SCSI CD-ROM twice. The first attempt ends in an error. More of annoyance than a show-stopper, but... Michal -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null