[Ilugc] How to compile module
ashishverma1984 at gmail.com
Fri Dec 12 13:26:00 IST 2008
The problem was in the make file. I had put pcnet32.c instead of .o. The
module has now been compiled. Now I got 4 files
pcnet32.ko - I placed in /lib/modules/188.8.131.52/kernel/drivers/net
What should I do with the rest. What are these for? I found similar file
types in the /usr/src/linux-184.108.40.206/(different folders)
On Fri, Dec 12, 2008 at 12:39 PM, Santosh <ssantosh at fossix.org> wrote:
> Ashish Verma wrote:
>> I dont know why this is not working for me. I was able to compile the
>> world module without errors.
>> I got the below error:
>> make -C "/lib/modules/220.127.116.11/build" M=/root modules
>> make: Entering directory '/usr/src/linux-18.104.22.168'
>> scripts/Makefile.build:217: target '/root/pcnet32.c' doesn't match the
>> target pattern
>> Building modules, stage 2.
>> MODPOST 0 modules
>> make: leaving directory '/usr/src/linux-22.214.171.124'
>> I got the pcnet32.c file from
>> /usr/src/linux-126.96.36.199/drivers/net/pcnet32.c. 188.8.131.52 is a compiled
>> Why is it that pcnet32.c did not get compiled when the kernel was
>> or when the modules were compiled?
> I had a wrong idea, the actual error is with the makefile. Somewhere
> regexps are used, which could not match the specified pattern. Thats the
> To unsubscribe, email ilugc-request at ae.iitm.ac.in with "unsubscribe
> <password> <address>"
> in the subject or body of the message.
More information about the ilugc