build of modules in 2.2.10-31smp
Gerald Guglielmo (firstname.lastname@example.org)
Mon, 23 Aug 1999 17:32:01 -0500
I am trying to build a module under the 2.2.10-31smp kernel and have
run into problems generating a loadable module. I have downloaded the
kernel-2.2.10-31.src.rpm and using kernel-2.2-i386-smp.config (cp it to
.config). The first round of errors is a kernel mismatch (kernel is
2.2.10-31smp and module says 2.2.10-31). If I use insmod -f to force a
load, I get a bunch of unresolved symbols. Poking around for a while and
comparing to the modules off of /lib using "nm -a", I noticed that the
ones of /lib have a "Rsmp_" inserted into their mangled names that the
newly built modules do not. I've compared the same module that comes
with the Fermi Redhat 5.2 (group Farms) install (kernel 2.2.10-31smp) to
one I rebuilt and the same difference exists.
I have tried:
but this doesn't build modules that are compatible with the kernel. It
does look as if some of the modules that are built by my attempt are not
in the installed /lib tree, so I'm guessing that I may have the RedHat
default config file and not the one used when 2.2.10-31smp was built.
The CONFIG_SMP and CONFIG_MODVERISONS and CONFIG_MODULES are all set
yes, and /sbin/genksyms exists. I haven't been able to figure out how
you were able to build the kernel and get the Rsmp_ in the names. I can
see in Rules.make something that looks rlike it might be responsible for
doing this, but I don't see how to make that happen. Connie and Dan said
that you built the 2.2.10-31smp kernel, so I thought I would contact
you. Did you use an altered .config file or toplevel Makefile that
generates these differences?
Note that I can see how to get the kernel version to be 2.2.10-31 if
I edit the version.h file and change UTS_RELEASE to 2.2.10-31smp, is
this part of what you did? I tried it and it got me past the kernel
mismatch complaint but I still had the unresolved symbols so I abandoned
that idea for the moment.
Pepe's Theory of everything: "Under the right circumstances, things