Bug 141376
Summary: | not a "how do I compile kernel" question (Invalid module format) | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | ezekiel das <zeek> |
Component: | kernel | Assignee: | Dave Jones <davej> |
Status: | CLOSED CANTFIX | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3 | CC: | pfrields, wtogami |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-10-03 01:01:07 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
ezekiel das
2004-11-30 19:24:47 UTC
if you type dmesg, it'll tell you why it mismatched. Right, something like this: lirc_dev: version magic '2.6.9 586 REGPARM gcc-3.4' should be '2.6. 9-1.681_FC3 586 REGPARM 4KSTACKS gcc-3.4' But my question is how to resolve this? What is it that one must do with the kernel sources to allow module builds to get the right vermagic? building external modules doesn't actually require you to have the kernel source installed. See the section in the release notes. If the lirc documentation tells you otherwise, it's incorrect. The lirc docs aren't saying otherwise, but I'm finding this method noted in the release notes to be obtuse and difficult. That is, I'm confident with my ability to build C code, etc. but I'm not expert with autoconf or make. The section in the release notes you're referring to is this: http://fedora.redhat.com/docs/release-notes/fc3/x86/ Note An exploded source tree is not required to build kernel modules against the currently in-use kernel. For example, to build the foo.ko module, create the following file (named Makefile) in the directory containing the foo.c file: obj-m := foo.o KDIR := /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) default: $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules ---- Do you have a working example of how to apply this? That is, how would one work this into the root directory "sh configure; make" of a source package? Any pointers to additional resources would be appreciated. Cheers, -zeek An update has been released for Fedora Core 3 (kernel-2.6.12-1.1372_FC3) which may contain a fix for your problem. Please update to this new kernel, and report whether or not it fixes your problem. If you have updated to Fedora Core 4 since this bug was opened, and the problem still occurs with the latest updates for that release, please change the version field of this bug to 'fc4'. Thank you. This bug has been automatically closed as part of a mass update. It had been in NEEDINFO state since July 2005. If this bug still exists in current errata kernels, please reopen this bug. There are a large number of inactive bugs in the database, and this is the only way to purge them. Thank you. |