that directory should exist as a symbolic link to the kernal source in /usr/src.
if you do a 'uname -r' to find out the exact kernel version you are using (which should return 2.4.26-1-386 if that is what you are telling it you are using) then the source code for that exact kernel should be living in /usr/src...
if it's not there, then you have to install it (sorry to make such a patronisingly obvious statement), but more likely it *is* there but the symbolic link to it is not...
so do a 'ln -s /usr/src/`uname -r` /lib/modules`uname -r`/build
in the first bit (/usr/src/`uname -r`) it is possible that the directory might be called something else... if it is then just substitute whatever it is called, but make sure it IS the right kernel code for the running system...
hope this helps a bit... James
On Fri, 9 Jul 2004, Matthew Davidson wrote:
Hi,
I'm trying to build driver modules for a NETGEAR WG311 WiFi card, according to the instructions at http://www.marlow.dk/tech/madwifi.php.
Having been spoilt for many years by binary kernel packages, I have only a vague idea of what I"m doing.
I get to the point where I actually compile the modules thus:
# make-kpkg --append-to-version "-386" --revision 2.4.26-1 --added-modules madwifi modules_image
and make seems to spit the dummy at this point:
make -C /lib/modules/2.4.26-1-386/build SUBDIRS=/usr/src/modules/madwifi/ath_hal modules
make: *** /lib/modules/2.4.26-1-386/build: No such file or directory.
and indeed the file does not exist.
I suspect the instructions are incomplete. You are told to configure the source tree, but at no time do you actually seem to do anything that would add this build file to /lib/modules/*/.
Can anyone fill in the gaps for me?
Thanks, Matthew.
-- 0419 242 316 ... (02) 6658 1607 -- Please avoid sending me Word or PowerPoint attachments. (Save as HTML or RTF) See http://www.fsf.org/philosophy/no-word-attachments.html
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
-------------------------------Safe Stamp-----------------------------------
Your Anti-virus Service scanned this email. It is safe from known viruses.
For more information regarding this service, please contact your service provider.
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
