Problem Compiling Kernel Module

Markku Kolkka markkukolkka at kolumbus.fi
Thu Jan 6 18:20:35 UTC 2005


cdlaforc at centurytel.net kirjoitti viestissään (lähetysaika 
torstai, 6. tammikuuta 2005 17:07):
> This is the gcc command I am trying at this
> time:
>
> gcc -D__Kernel__ -I/lib/modules/$(uname -r)/build/include
> -DMODULE -Wall -O2 -c hello.c -o hello.o

This is how kernel modules were built with 2.4 kernels. FC3 has a 
2.6 kernel and you should follow the current instructions: 
http://tldp.org/LDP/lkmpg/2.6/html/x209.html

-- 
 Markku Kolkka
 markku.kolkka at iki.fi




More information about the fedora-list mailing list