Error while installing DVB card in Redhat
Hello All,
I am trying to install DVB card receiver of Pentamedia in my redhat 8.0 linux box. When ever I try to compile the driver following errors comes. Can anyone identify what's wrong in my linux box?
----------------------------------------------------------------------
[root@abc-proxy pentanet-RHx-2.3.1]# make
cd . && autoheader
autoheader: `config.h.in' is unchanged
touch ./config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make all-recursive
make[1]: Entering directory `/usr/local/src/pentanet-RHx-2.3.1'
Making all in driver
make[2]: Entering directory `/usr/local/src/pentanet-RHx-2.3.1/driver'
gcc -march=i486 -DCPU=486 -D__SMP__ -DMODVERSIONS -DMODULE -D__KERNEL__ -O2 -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -pipe -malign-loops=2 -malign-jumps=2 -malign-functions=2 -I/usr/src/linux/include -c pentaif.c
cc1: warning: -malign-loops is obsolete, use -falign-loops
cc1: warning: -malign-jumps is obsolete, use -falign-jumps
cc1: warning: -malign-functions is obsolete, use -falign-functions
In file included from pentaif.c:9:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an appropriate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
In file included from /usr/include/linux/fs.h:23,
from /usr/include/linux/capability.h:17,
from /usr/include/linux/binfmts.h:5,
from /usr/include/linux/sched.h:9,
from /usr/include/linux/delay.h:12,
from pentaif.c:14:
/usr/include/linux/string.h:8:2: warning: #warning Using kernel header in userland!
In file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/delay.h:12,
from pentaif.c:14:
/usr/include/linux/timex.h:173: field `time' has incomplete type
In file included from /usr/include/linux/bitops.h:69,
from /usr/include/asm/system.h:7,
from /usr/include/linux/sched.h:16,
from /usr/include/linux/delay.h:12,
from pentaif.c:14:
/usr/include/asm/bitops.h:333:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:334:2: warning: #warning Using kernel headers in userspace.
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:25,
from /usr/include/linux/delay.h:12,
from pentaif.c:14:
/usr/include/asm/signal.h:107: parse error before "sigset_t"
/usr/include/asm/signal.h:110: parse error before '}' token
In file included from /usr/include/linux/sched.h:81,
from /usr/include/linux/delay.h:12,
from pentaif.c:14:
/usr/include/linux/timer.h:45: parse error before "spinlock_t"
/usr/include/linux/timer.h:53: parse error before '}' token
/usr/include/linux/timer.h:67: parse error before "tvec_base_t"
/usr/include/linux/timer.h:101: parse error before "tvec_bases"
/usr/include/linux/timer.h: In function `init_timer':
/usr/include/linux/timer.h:105: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:105: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:106: dereferencing pointer to incomplete type
/usr/include/linux/timer.h: In function `timer_pending':
/usr/include/linux/timer.h:121: dereferencing pointer to incomplete type
In file included from pentaif.c:14:
/usr/include/linux/delay.h:13:23: asm/delay.h: No such file or directory
pentaif.c:15:56: asm/uaccess.h: No such file or directory
pentaif.c: In function `if_kmalloc':
pentaif.c:28: warning: implicit declaration of function `kmalloc'
pentaif.c:28: warning: return makes pointer from integer without a cast
pentaif.c: In function `if_kfree':
pentaif.c:38: warning: implicit declaration of function `kfree'
pentaif.c:38: warning: `return' with a value, in function returning void
pentaif.c: In function `if_copy_from_user':
pentaif.c:48: warning: implicit declaration of function `copy_from_user'
pentaif.c: In function `if_udelay':
pentaif.c:68: warning: implicit declaration of function `udelay'
pentaif.c: In function `if_readb':
pentaif.c:88: warning: implicit declaration of function `readb'
pentaif.c: In function `if_readw':
pentaif.c:98: warning: implicit declaration of function `readw'
pentaif.c: In function `if_readl':
pentaif.c:108: warning: implicit declaration of function `readl'
pentaif.c: In function `if_writeb':
pentaif.c:118: warning: implicit declaration of function `writeb'
pentaif.c: In function `if_writew':
pentaif.c:128: warning: implicit declaration of function `writew'
pentaif.c: In function `if_writel':
pentaif.c:138: warning: implicit declaration of function `writel'
make[2]: *** [pentaif.o] Error 1
make[2]: Leaving directory `/usr/local/src/pentanet-RHx-2.3.1/driver'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/pentanet-RHx-2.3.1'
make: *** [all] Error 2
==================================================
|