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

Re: scull driver from ldd3 book , insmod , error





On Nov 1, 2007 9:48 PM, Andrea Gasparini <gaspa@xxxxxxxxxxx> wrote:
Iman Darabi spiffera, alle Thursday 01 November 2007 circa:
> i got scull driver from http://examples.oreilly.com/linuxdrive3/
> it needs linux-2.6.10 , but i've gentoo with linux-2.6.22.9 ( and gcc
> version 4.1.1 )
>
> so i used 2.6.10 header files to compile scull like this :

No, you must compile it against a 2.6.22 kernel, so you have to:
- download the 2.6.22 version sources,
- modify the makefile in order to point to the right sources.
- try to compile it again ;)
 
yes, this is the right way , and i've 2.6.22 source ...
but the problem is that scull driver dose not compile against 2.6.22 . ( api changes ??? )
ldd3 book uses version 2.6.10 . and when try to compile 2.6.10 get lots of errors , maybe because  my gcc version is  4.1.1 and is  so  new to compile  it .