[ATrpms-devel] madwifi package for RHEL5

Martin Dubuc martind1111 at gmail.com
Wed Jul 30 18:17:03 CEST 2008


Thanks for the advice. I was building the RPM on a server that used a
different architecture. This probably was the source of the problem. I
rebuilt the RPM on a machine that used the same architecture as my target
machine and I also used kernel-devel and I am now able to load the madwifi
RPMs for my custom kernel.

Martin

On Wed, Jul 30, 2008 at 10:54 AM, Axel Thimm <Axel.Thimm at atrpms.net> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.atrpms.net/pipermail/atrpms-devel/attachments/20080730/590a8182/attachment.html 


More information about the atrpms-devel mailing list