Closed GoogleCodeExporter closed 9 years ago
Looks like you are missing kernel packages needed to build any kernel module.
On
Fedora, these are 'kernel-devel' and 'kernel-headers'. Please check if you have
corresponding packages installed (pkg names depend on distro).
Original comment by nitingupta910@gmail.com
on 29 Jan 2010 at 11:31
Package kernel-headers is already installed.
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-1-pve' - here is it.
Also I have created a follow symlink:
lrwxrwxrwx 1 root src 27 Jan 28 20:42 linux -> linux-headers-2.6.32-1-pve/
drwxr-xr-x 24 root root 4096 Jan 29 12:06 linux-headers-2.6.32-1-pve
kernel-devel package-name is used in redhat-based distros.
E: Couldn't find package kernel-devel
Proxmox VE - is debian-based product.
Original comment by ivanov.v...@gmail.com
on 29 Jan 2010 at 11:54
I tried it on fresh-installed debian 5.0 amd64, the same:
s2:~/compcache-0.6.2# make
make -C "/lib/modules/2.6.26-2-amd64/build" M=/root/compcache-0.6.2 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.26-2-amd64'
CC [M] /root/compcache-0.6.2/ramzswap_drv.o
/root/compcache-0.6.2/ramzswap_drv.c: In function
‘ramzswap_ioctl_init_device’:
/root/compcache-0.6.2/ramzswap_drv.c:1187: error: implicit declaration of
function ‘blk_queue_nonrot’
/root/compcache-0.6.2/ramzswap_drv.c:1188: error: ‘QUEUE_FLAG_NONROT’
undeclared (first use in this
function)
/root/compcache-0.6.2/ramzswap_drv.c:1188: error: (Each undeclared identifier
is reported only once
/root/compcache-0.6.2/ramzswap_drv.c:1188: error: for each function it appears
in.)
/root/compcache-0.6.2/ramzswap_drv.c: At top level:
/root/compcache-0.6.2/ramzswap_drv.c:1236: error: expected declaration
specifiers or ‘...’ before ‘fmode_t’
/root/compcache-0.6.2/ramzswap_drv.c:1346: warning: initialization from
incompatible pointer type
make[2]: *** [/root/compcache-0.6.2/ramzswap_drv.o] Ошибка 1
make[1]: *** [_module_/root/compcache-0.6.2] Ошибка 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.26-2-amd64'
make: *** [all] Ошибка 2
Original comment by ivanov.v...@gmail.com
on 29 Jan 2010 at 12:26
compcache-0.6.2 compiles correctly with vanilla kernel 2.6.32. I'm not sure
what is
the problem with your setup but we may note that only headers inside asm/ are
not
found, throwing out all sorts of errors.
----
> make[1]: Leaving directory `/usr/src/linux-headers-2.6.26-2-amd64'
compcache-0.6.x requires kernel 2.6.28, at least (as mentioned on
CompilingAndUsingNew page). For 2.6.26 you can use compcache-0.5.4.
Original comment by nitingupta910@gmail.com
on 29 Jan 2010 at 3:27
Ok, I understand this only after posting here, sorry :)
compcache 0.5 has compiled, but:
insmod: error inserting 'ramzswap.ko': -1 Invalid module format
Where is this asm/ directory must be located?
Original comment by ivanov.v...@gmail.com
on 29 Jan 2010 at 4:34
[deleted comment]
On ubuntu 9.10 system, following kernel packages are installed:
linux-headers-2.6.31-14 Header files related to Linux kernel version
linux-headers-2.6.31-14-generic Linux kernel headers for version 2.6.31 on x
of these, linux-headers-2.6.31-14 provides required asm/ headers:
$ dpkg --listfiles linux-headers-2.6.31-14 | grep cacheflush.h
/usr/src/linux-headers-2.6.31-14/arch/x86/include/asm/cacheflush.h
<snip>
So, make sure that both of these packages are installed and check that asm/
headers
as present as shown above.
Original comment by nitingupta910@gmail.com
on 30 Jan 2010 at 4:00
I hope it works now.
Original comment by nitingupta910@gmail.com
on 20 Feb 2010 at 4:37
Original issue reported on code.google.com by
ivanov.v...@gmail.com
on 29 Jan 2010 at 10:44