On Wed, Jul 30, 2008 at 10:28:51AM -0400, Martin Dubuc wrote:
> I would like to build the madwifi RPM for a custom version of a RHEL5-based
> kernel (CentOS). I have tried the madwifi RPMs that I could find on ATrpms
> against a stock kernel and they work as expected. However, I can't load the
> RPMs that I build on my build box. When I perform the modprobe ath_pci, I
> get the following errors:
> 
> WARNING: Error inserting ath_hal
> (/lib/modules/2.6.18-92.1.6.20080721.el5/updates/net/ath_hal.ko): Invalid
> module format
> WARNING: Error inserting wlan
> (/lib/modules/2.6.18-92.1.6.20080721.el5/updates/net/wlan.ko): Invalid
> module format
> FATAL: Error inserting ath_pci
> (/lib/modules/2.6.18-92.1.6.20080721.el5/updates/net/ath_pci.ko): Invalid
> module format

This sounds like the modules having been built aginst headers of a
different kernel than the one you are running. This can be for example
the old i586 vs i686 issue. Usually the more verbose error is given in
dmesg.

> I can also see the following error messages in /var/log/messages:
> Jul 30 13:39:39 localhost kernel: ath_hal: disagrees about version of symbol
> struct_module
> Jul 30 13:39:39 localhost kernel: wlan: disagrees about version of symbol
> struct_module
> Jul 30 13:39:39 localhost kernel: ath_pci: disagrees about version of symbol
> struct_module
> 
> This is the command I am using to build the madwifi RPMs:
> 
> rpmbuild --bb --target=i686 --define "kmdl_kernelsrcdir
> /root/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.i686" --define "_kernel
> 2.6.18-92.1.6.20080721.el5" --define 'kmdl_userland 0' --define "dist .el5"
> /root/rpmbuild/SPECS/madwifi.spec

The command looks OK. Is the build host an i686 system? If it is
x86_64, then the above is not enough.

And why not build against your kernel-devel package? Is your custom
kernel rpm'ized?
-- 
Axel.Thimm at ATrpms.net

Attachment: pgpgll6rL7Od8.pgp
Description: PGP signature

_______________________________________________
atrpms-devel mailing list
[email protected]
http://lists.atrpms.net/mailman/listinfo/atrpms-devel

Reply via email to