[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: scripts/mod/modpost: No such file or directory
- From: Flavio Stanchina <flavio at stanchina dot net>
- Date: Wed, 16 Nov 2005 17:21:00 +0100
János Holányi wrote:
I unpacked the kernel tar.bz2 into /home as I didn't have enough space in
/usr/src's file system.
Then I would suggest to unpack it (or rather, to move it, in your case)
into /home/janos/src rather than /home. My opinion is that that's a
better place than /usr/src anyway, even if you have plenty of space.
Symlink shouldn't case (haven't caused) any problems I
believe:
/usr/src/linux is a symlink to /home/linux-source-2.6.14
It shouldn't, but it's not needed either. Long gone are the days when
many tools depended on having the kernel sources there. When I build
some module, I much prefer using the full path (usually something like
/home/flavio/src/linux-2.6.14) rather than asking myself "where does
/usr/src/linux point today?".
Is that kernel tree properly configured?
Yes. Among others, I did the step-by-step instructions on your site (including
make-kpkg (my blabla of append and added) configure [...]
Hmmm, then I suspect that on modern kernels you need to actually build
the tree before you can build modules. Or at least build modpost, but I
don't know if there's a target just for that. Will look.
However it seems like I cannot build deb module packages by using the
linux-headers package - is this correct?
Yes, you can, as Michel already pointed out -- or at least you are
supposed to be able to. The fglrx module wouldn't build correctly with
the kernel-headers packages, but that was fixed a few versions ago.
Ah, in case you missed it, I try to build modules for all the
kernel-headers and now linux-headers packages currently available. See
here: http://www.stanchina.net/~flavio/debian-fglrx-modules/index.html
--
Ciao, Flavio