Re: Problem Compiling Kernel Module

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

 



On Thu, 2005-01-06 at 20:20 +0200, Markku Kolkka wrote:
> cdlaforc@xxxxxxxxxxxxxx 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@xxxxxx
> 

Markku,
  I tried what you said and I am still having some problems.  Please
take a look at what I'm doing.  Here is my makefile command:

make -C /usr/src/redhat/BUILD/ker*/lin*/include SUBDIRS=$PWD  modules

Here is my makefile:

obj-m += hello.o

and Here is error that I'm recieving:

make: Entering directory
`/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include'
make: *** No rule to make target `modules'.  Stop.
make: Leaving directory
`/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include'

I guess my first question is am I using the right kernel source dir.  I
don't have a /usr/scr/linux-`uname -r` dir.
Markku,
  I tried what you said and I am still having some problems.  Please
take a look at what I'm doing.  Here is my makefile command:

make -C /usr/src/redhat/BUILD/ker*/lin*/include SUBDIRS=$PWD  modules

Here is my makefile:

obj-m += hello.o

and Here is error that I'm recieving:

make: Entering directory
`/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include'
make: *** No rule to make target `modules'.  Stop.
make: Leaving directory
`/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include'

I guess my first question is am I using the right kernel source dir.  I
don't have a /usr/scr/linux-`uname -r` dir.
Markku,
  I tried what you said and I am still having some problems.  Please
take a look at what I'm doing.  Here is my makefile command:

make -C /usr/src/redhat/BUILD/ker*/lin*/include SUBDIRS=$PWD  modules

Here is my makefile:

obj-m += hello.o

and Here is error that I'm recieving:

make: Entering directory
`/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include'
make: *** No rule to make target `modules'.  Stop.
make: Leaving directory
`/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include'

I guess my first question is am I using the right kernel source dir.  I
don't have a /usr/scr/linux-`uname -r` dir.
Markku,
  I tried what you said and I am still having some problems.  Please
take a look at what I'm doing.  Here is my makefile command:

make -C /usr/src/redhat/BUILD/ker*/lin*/include SUBDIRS=$PWD  modules

Here is my makefile:

obj-m += hello.o

and Here is error that I'm recieving:

make: Entering directory
`/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include'
make: *** No rule to make target `modules'.  Stop.
make: Leaving directory
`/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include'

I guess my first question is am I using the right kernel source dir.  I
don't have a /usr/scr/linux-`uname -r` dir.
Markku,
  I tried what you said and I am still having some problems.  Please
take a look at what I'm doing.  Here is my makefile command:

make -C /usr/src/redhat/BUILD/ker*/lin*/include SUBDIRS=$PWD  modules

Here is my makefile:

obj-m += hello.o

and Here is error that I'm recieving:

make: Entering directory
`/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include'
make: *** No rule to make target `modules'.  Stop.
make: Leaving directory
`/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include'

I guess my first question is am I using the right kernel source dir.  I
don't have a /usr/scr/linux-`uname -r` dir.
Thanks,

-- 
Chris LaForce <cdlaforc@xxxxxxxxxxxxxx>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux