LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   driver install problem. It's for redhat 6.2, but compiling in 7.3 (https://www.linuxquestions.org/questions/linux-software-2/driver-install-problem-its-for-redhat-6-2-but-compiling-in-7-3-a-29959/)

hardigunawan 09-09-2002 08:38 AM

driver install problem. It's for redhat 6.2, but compiling in 7.3
 
Hi,

I'm using provideo capture card. It has winbond 99200F chip and provideo has provided a Linux driver, albeit it's an old one.

The driver is for RedHat 6.2, but I'm using RedHat 7.3. when I type "make", the error below appears:

gcc -O6 -Wall -DMODULE -D__KERNEL__ -DLINUX -c init.c
In file included from init.c:17:
/usr/include/linux/interrupt.h:44:25: asm/hardirq.h: No such file or directory
/usr/include/linux/interrupt.h:45:25: asm/softirq.h: No such file or directory
In file included from init.c:24:
wkglobal.h:52:11: warning: no newline at end of file
init.c:34:55: asm/uaccess.h: No such file or directory
make: *** [init.o] Error 1

Checking my filesystem, the file is in /usr/i386-glibc21-linux/include/asm/hardirq.h

I've tried to copy those files to /usr/include/asm, but more errors appear. I guess that's not the proper way to solve problem :(

Can anyone help?

Mik 09-09-2002 09:26 AM

Well as far as I know Redhat 6.2 used the 2.2 kernel series if not an older one. There have been many changes when switching to the 2.4 kernels. So most likely the driver will have to be patched to be able to work with the newer kernels.
But all those files that are missing should be present even for a 2.4 kernel. So you probably should install the kernel rpm. I think they even have a seperate rpm just for the kernel headers which should be enough.

hardigunawan 09-09-2002 06:52 PM

I've the kernel vanilla source, not the redhat rpm. But I thought that should satisfy the compiling. Problem is, 2.4 places a few include files in different directories. Even though I copied them to wherever the compiler needs them, there are lots of errors (things being undeclared, etc) which I supposed that that is not the way to solve my problem.

hardigunawan 09-09-2002 07:01 PM

Well, I mv my /usr/include/linux and /usr/include/asm, and replaced them with softlinks to /usr/src/linux/include/linux and /usr/src/linux/include/asm

It compiles with a lot of warnings, but otherwise ok (no error). But when I try to load the module by insmod wkmpj.o, it has this error:

/usr/bin/wkmpj.o: unresolved symbol module_unregister_chrdev
/usr/bin/wkmpj.o: unresolved symbol module_register_chrdev
/usr/bin/wkmpj.o:
Hint: You are trying to load a module without a GPL compatible license
and it has unresolved symbols. Contact the module supplier for
assistance, only they can help you.


All times are GMT -5. The time now is 09:17 PM.