Re-post: Invalid module format and version magic complaints

Randall Ross randall
Sun Apr 17 15:31:49 PDT 2005


Yes, the 2.6.10 kernel was compiled with gcc 3.2. Sometime thereafter, I 
upgraded my box to FC3 which includes gcc 3.4. And after that, I 
compiled hostap-driver.

Pursuing the theory that the compiler mismatch is causing the failure, 
is there an elegant workaround? Is there a way to disable the gcc 
version check? I would think that gcc-3.4 is a superset of gcc-3.2 and 
therefore should be backwards compatible...

Any thoughts?

Ian McDonald wrote:

>My guess here is that you've compiled your kernel with gcc 3.2 and
>your modules with gcc 3.4 or vice versa. The error message is
>indicating you should be using the same version for both...
>
>Another thing is if you have used your own kernel have you changed the
>includes away from standard fedora core for kernel as well?
>
>On 18/04/05, Randall Ross <randall at tech-executive.com> wrote:
>  
>
>>(sorry for the earlier HTML post)
>>
>>I'm trying to use hostap-driver-0.3.7. My system is Fedora Core 3 with
>>(my own) kernel 2.6.10.
>>
>>I sucessfully ran 'make' and 'make install'. Upon insertion of my
>>Netgear MA401 PC card, I get the  output below in /var/log/messages.
>>
>>Can someone shed some light on what might be going wrong here, and a
>>possible fix?
>>
>>Many thanks in advance.
>>
>>    Apr 17 14:50:24 localhost cardmgr[7394]: socket 0: Netgear MA401
>>    Apr 17 14:50:24 localhost kernel: hostap: version magic '2.6.10
>>    PENTIUMII gcc-3.4' should be '2.6.10 PENTIUMII gcc-3.2'
>>    Apr 17 14:50:24 localhost cardmgr[7394]: executing: 'modprobe hostap
>>    2>&1'
>>    Apr 17 14:50:24 localhost cardmgr[7394]: + FATAL: Error inserting
>>    hostap (/lib/modules/2.6.10/kernel/drivers/net/wireless/hostap.ko):
>>    Invalid module format
>>    Apr 17 14:50:24 localhost cardmgr[7394]: modprobe exited with status 1
>>    Apr 17 14:50:24 localhost cardmgr[7394]: module
>>    /lib/modules/2.6.10/pcmcia/hostap.o not available
>>    Apr 17 14:50:24 localhost kernel: hostap: version magic '2.6.10
>>    PENTIUMII gcc-3.4' should be '2.6.10 PENTIUMII gcc-3.2'
>>    Apr 17 14:50:24 localhost cardmgr[7394]: executing: 'modprobe
>>    hostap_cs 2>&1'
>>    Apr 17 14:50:24 localhost cardmgr[7394]: + WARNING: Error inserting
>>    hostap (/lib/modules/2.6.10/kernel/drivers/net/wireless/hostap.ko):
>>    Invalid module format
>>    Apr 17 14:50:24 localhost kernel: hostap_cs: version magic '2.6.10
>>    PENTIUMII gcc-3.4' should be '2.6.10 PENTIUMII gcc-3.2'
>>    Apr 17 14:50:24 localhost cardmgr[7394]: + FATAL: Error inserting
>>    hostap_cs
>>    (/lib/modules/2.6.10/kernel/drivers/net/wireless/hostap_cs.ko):
>>    Invalid module format
>>    Apr 17 14:50:24 localhost cardmgr[7394]: modprobe exited with status 1
>>    Apr 17 14:50:24 localhost cardmgr[7394]: module
>>    /lib/modules/2.6.10/pcmcia/hostap_cs.o not available
>>    Apr 17 14:50:24 localhost cardmgr[7394]: bind 'hostap_cs' to socket
>>    0 failed: Invalid argument
>>
>>_______________________________________________
>>HostAP mailing list
>>HostAP at shmoo.com
>>http://lists.shmoo.com/mailman/listinfo/hostap
>>
>>    
>>
>
>  
>




More information about the Hostap mailing list