[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: MOL Modules Compilation weirdness



The usual junk: some people mistakenly think that /usr/include/linux
is supposed to contain a link into /usr/src/linux and that that is
supposed to be source code for the kernel you are running.

Reality:

The /usr/include/linux files are derived from kernel source when
the glibc package is created. Don't touch them. They get upgraded
when you upgrade glibc. Treat /usr/include/asm the same way.

That's just the way it is. Linus said so. IMHO these files
ought to be a separate package, but that isn't the case.

You should not have a /usr/src/linux directory. You might put
something there to help you avoid temptation:

rm -rf /usr/src/linux
echo "never use this" > /usr/src/linux
chmod 444 /usr/src/linux
chattr +i /usr/src/linux

If you need kernel source, put it in your home directory.

Now look in the MOL source. If you see /usr/src/linux or
/usr/src/asm, then MOL is most likely broken. Fix it by
adding a -I option to the gcc command line, by editing
the source, or by doing both. You'll need to point MOL to
the kernel source in your home directory.



Reply to: