[ENBD] enbd_ioctl 2.6.9 kernel fails to modprobe enbd - seg fault
scunacc
scunacc at yahoo.com
Fri Mar 3 04:53:14 MST 2006
Dear Peter,
> I'll get back on this stuff when I've done the reboot and insmod with a
> fresh dmesg.
Worked.
Whooohooo! :-)
modprobe worked too after a make install and a depmod -a
> Interestingly, - the size of the module is different now. (After I fixed
> the gcc thing again.)
>
> I think that was killing it.
This must have been it.
Here's why.
I redid the make on the hacked version I had done before starting the
thread, - the one where I'd even messed around with the #ifdef for the
userspace code, but *with* that change (cc-version thing) in the kernel
Makefile now, and it compiled to identical modules (as seen by cmp) as
we have got from the changes we just made that are now insmod'ing
cleanly.
I didn't even mess with the log2 definition. Left that as it was - as a
warning.
So, it's purely down to the gcc version thing.
That is really icky (from the perspective of the kernel and gcc).
It's also very odd. I have compiled this kernel numerous times (and with
other external module compiles, like vmware) without seeing any problem,
so there must be something else that isn't being picked up in the kernel
Makefile when it's being run here - to set that version properly.
I'll probably need to back out of that Makefile change if I recompile
the kernel again, but for the moment it has allowed this to compile and
install the module.
I'd be pleased to try anything else you suggest in the meantime as time
permits, but I am now going to actually try the thing! :-)
Kind regards
Derek.
More information about the ENBD
mailing list