Kernel v2.4.21
gcc 3.2.2
I get this any time I try to compile the drivers.
cc -I/lib/modules/2.4.21-0.13mdk/build/drivers/usb
-I/lib/modules/2.4.21-0.13mdk/build/include -include
/lib/modules/2.4.21-0.13mdk/build/include/linux/config.h
-O3 -Wall -Wstrict-prototypes -fomit-frame-pointer
-pipe -DMODULE -D__KERNEL__ -c quickcam.c
<command line>:137971671:18400:
/lib/modules/2.4.21-0.13mdk/build/include/linux/config.h:
No such file or directory
In file included from /usr/include/linux/prefetch.h:13,
from /usr/include/linux/list.h:6,
from /usr/include/linux/wait.h:14,
from /usr/include/linux/fs.h:11,
from /usr/include/linux/capability.h:17,
from /usr/include/linux/binfmts.h:6,
from /usr/include/linux/sched.h:8,
from quickcam.c:39:
/usr/include/asm/processor.h:55:
`CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a
function)
/usr/include/asm/processor.h:55: requested alignment is
not a constant
In file included from quickcam.c:41:
/usr/include/linux/version.h:2:2: #error
"======================================================="
/usr/include/linux/version.h:3:2: #error "You should
not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files
directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now
uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working
kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files
are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently
running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via
other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs
should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as
well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build
kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the
kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure
that the symbolic link"
/usr/include/linux/version.h:19:2: #error "
/lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the
matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy
/boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error "
/lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When
compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler
option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error "
-I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error "
-I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please
adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error
"======================================================="
quickcam.c:42:41: missing binary operator before '('
In file included from quickcam.c:45:
/usr/include/linux/malloc.h:4:2: warning: #warning
linux/malloc.h is deprecated, use linux/slab.h instead.
In file included from /usr/include/linux/videodev.h:5,
from quickcam.c:50:
/usr/include/linux/version.h:2:2: #error
"======================================================="
/usr/include/linux/version.h:3:2: #error "You should
not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files
directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now
uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working
kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files
are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently
running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via
other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs
should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as
well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build
kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the
kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure
that the symbolic link"
/usr/include/linux/version.h:19:2: #error "
/lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the
matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy
/boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error "
/lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When
compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler
option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error "
-I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error "
-I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please
adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error
"======================================================="
In file included from quickcam.c:50:
/usr/include/linux/videodev.h:34:40: missing binary
operator before '('
In file included from /usr/include/linux/module.h:297,
from quickcam.c:53:
/usr/include/linux/version.h:2:2: #error
"======================================================="
/usr/include/linux/version.h:3:2: #error "You should
not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files
directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now
uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working
kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files
are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently
running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via
other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs
should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as
well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build
kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the
kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure
that the symbolic link"
/usr/include/linux/version.h:19:2: #error "
/lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the
matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy
/boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error "
/lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When
compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler
option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error "
-I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error "
-I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please
adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error
"======================================================="
In file included from quickcam.c:53:
/usr/include/linux/module.h:299: parse error before
"UTS_RELEASE"
In file included from /usr/include/linux/usb.h:136,
from quickcam.c:55:
/usr/include/linux/version.h:2:2: #error
"======================================================="
/usr/include/linux/version.h:3:2: #error "You should
not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files
directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now
uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working
kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files
are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently
running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via
other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs
should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as
well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build
kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the
kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure
that the symbolic link"
/usr/include/linux/version.h:19:2: #error "
/lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the
matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy
/boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error "
/lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When
compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler
option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error "
-I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error "
-I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please
adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error
"======================================================="
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:46,
from /usr/include/linux/usb.h:139,
from quickcam.c:55:
/usr/include/linux/irq.h:65:
`CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a
function)
/usr/include/linux/irq.h:65: requested alignment is not
a constant
In file included from /usr/include/linux/interrupt.h:46,
from /usr/include/linux/usb.h:139,
from quickcam.c:55:
/usr/include/asm/hardirq.h:16:
`CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a
function)
/usr/include/asm/hardirq.h:16: requested alignment is
not a constant
In file included from /usr/include/linux/usb.h:139,
from quickcam.c:55:
/usr/include/linux/interrupt.h:129:
`CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a
function)
/usr/include/linux/interrupt.h:129: requested alignment
is not a constant
quickcam.c:81:41: missing binary operator before '('
quickcam.c:93:41: missing binary operator before '('
quickcam.c:99:41: missing binary operator before '('
quickcam.c:121:41: missing binary operator before '('
quickcam.c:136:41: missing binary operator before '('
quickcam.c:183:41: missing binary operator before '('
quickcam.c:1357:41: missing binary operator before '('
quickcam.c: In function `quickcam_mmap':
quickcam.c:2099: warning: passing arg 1 of
`remap_page_range' makes integer from pointer without a
cast
quickcam.c:2099: incompatible type for argument 4 of
`remap_page_range'
quickcam.c:2099: too many arguments to function
`remap_page_range'
quickcam.c: At top level:
quickcam.c:2120: unknown field `initialize' specified
in initializer
quickcam.c:2120: warning: initialization makes integer
from pointer without a cast
quickcam.c:2121: unknown field `open' specified in
initializer
quickcam.c:2121: warning: initialization from
incompatible pointer type
quickcam.c:2122: unknown field `close' specified in
initializer
quickcam.c:2123: unknown field `read' specified in
initializer
quickcam.c:2123: warning: initialization makes integer
from pointer without a cast
quickcam.c:2124: unknown field `write' specified in
initializer
quickcam.c:2124: warning: missing braces around initializer
quickcam.c:2124: warning: (near initialization for
`quickcam_template.lock')
quickcam.c:2124: warning: initialization makes integer
from pointer without a cast
quickcam.c:2125: unknown field `ioctl' specified in
initializer
quickcam.c:2125: warning: initialization from
incompatible pointer type
quickcam.c:2126: unknown field `mmap' specified in
initializer
quickcam.c:2126: warning: excess elements in struct
initializer
quickcam.c:2126: warning: (near initialization for
`quickcam_template')
quickcam.c:2173:41: missing binary operator before '('
quickcam.c: In function `usb_quickcam_configure':
quickcam.c:2176: too few arguments to function
`video_register_device'
quickcam.c:2227:41: missing binary operator before '('
quickcam.c:2249:40: missing binary operator before '('
quickcam.c:2308:41: missing binary operator before '('
quickcam.c:2348:41: missing binary operator before '('
quickcam.c: At top level:
quickcam.c:2351: warning: initialization from
incompatible pointer type
quickcam.c:2357:41: missing binary operator before '('
quickcam.c:2367:41: missing binary operator before '('
make: *** [quickcam.o] Error 1
Logged In: YES
user_id=1202632
hai
i am fino,i have an error in make.pls give me an solution
I/lib/modules/2.4.21-4.EL/build/include -nostdinc
-iwithprefix include -DMODULE -D__KERNEL__ -DNOKERNEL -O2
-fomit-frame-pointer -fno-strict-aliasing -fno-common -Wall
-Wstrict-prototypes -Wno-trigraphs -pipe -c qc-formats.c
cc -I/lib/modules/2.4.21-4.EL/build/include -nostdinc
-iwithprefix include -DMODULE -D__KERNEL__ -DNOKERNEL -O2
-fomit-frame-pointer -fno-strict-aliasing -fno-common -Wall
-Wstrict-prototypes -Wno-trigraphs -pipe -c qc-mjpeg.c
cc -I/lib/modules/2.4.21-4.EL/build/include -nostdinc
-iwithprefix include -DMODULE -D__KERNEL__ -DNOKERNEL -O2
-fomit-frame-pointer -fno-strict-aliasing -fno-common -Wall
-Wstrict-prototypes -Wno-trigraphs -pipe -c qc-memory.c
qc-memory.c: In function `qc_remap_page_range':
qc-memory.c:66: warning: passing arg 1 of
`remap_page_range_R5a76d065' makes pointer from integer
without a cast
qc-memory.c:66: incompatible type for argument 4 of
`remap_page_range_R5a76d065'qc-memory.c:66: too few
arguments to function `remap_page_range_R5a76d065'
make: *** [qc-memory.o] Error 1