Re: scull driver from ldd3 book , insmod , error

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

 



> > iman@tux ~/programming/ldd3/examples/scull $ make
> > make -C /lib/modules/2.6.22.9/build
> > M=/home/iman/programming/ldd3/examples/scull
> > LDDINC=/home/iman/programming/ldd3/examples/scull/../include modules
> > make[1]: Entering directory `/home/iman/linux- 2.6.22.9'
> >   CC [M]  /home/iman/programming/ldd3/examples/scull/main.o
> > /home/iman/programming/ldd3/examples/scull/main.c:17:26:* error:
> > linux/config.h: No such file or directory*
> > make[2]: *** [/home/iman/programming/ldd3/examples/scull/main.o] Error
> > 1 make[1]: *** [_module_/home/iman/programming/ldd3/examples/scull]
> > Error 2 make[1]: Leaving directory `/home/iman/linux- 2.6.22.9'
> > make: *** [modules] Error 2
> > and this is common , because there is no config.h header file in
> > 2.6.22 ( but there is one in 2.6.10 ) .
> > after removing config.h from scull's source , you get lots of new
> > errors ... .

you should not remove anything. There isn't linux/config.h because you 
should compile that kernel.

that file is generated when you get your kernel configured.

bye!
-- 
-gaspa-
-----------------------------------------------
------ HomePage: iogaspa.altervista.org -------
-Il lunedi'dell'arrampicatore: www.lunedi.org -

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux