Thank you Simon,
I've rebuilt world and kernel and installed them, then I've rebuilt if_ndis.ko
too:
% kldload /modules/if_ndis.ko
link_elf: symbol malloc undefined
kldload: can't load /modules/if_ndis.ko: Exec format error
There was still a malloc() and I've replace malloc() with kmalloc() once
in if_ndis.c. Rebuilt and installed.
kldload doesn't fail to load, but it kernel panic. :-(
Bye, \fer
Simon 'corecode' Schubert wrote:
Ferruccio Zamuner wrote:
% kldload /modules/wlan.ko
% kldload /modules/ndis.ko
% kldload /modules/if_ndis.ko
link_elf: symbol kmalloc undefined
kldload: can't load /modules/if_ndis.ko: Exec format error
I hope that this report can be useful.
You shouldn't compile a module with newer sources than your kernel
actually is. please make sure that your kernel and your modules are
compiled from the same sources.
cheers
simon