[MPlayer-users] Problems at driver-install - answer not in the FAQ

Thomas Barth th.barth at mail.isis.de
Thu Jun 6 23:20:02 CEST 2002


Hi,

I get problems to install the mga_vid-driver.
I am using the new RedHat7.3

----------------------------------------------------------------------------------
[root at linux drivers]# dir
3dfx.h  Makefile  mga_vid.c  mga_vid.h  mga_vid_test.c  radeon  README  
sis_vid.c  sis_vid.h
[root at linux drivers]# make
cc -g -O2  -Wall -D__KERNEL__  -DMODULE          -include 
/usr/src/linux/include/linux/modversions.h -I/usr/src/linux/include -c 
mga_vid.c
mga_vid.c:1:8: /usr/src/linux/include/linux/modversions.h: Datei oder 
Verzeichnis nicht gefunden
In file included from /usr/include/linux/timex.h:152,
                 from /usr/include/linux/sched.h:14,
                 from mga_vid.c:39:
/usr/include/asm/timex.h:10:21: asm/msr.h: Datei oder Verzeichnis nicht 
gefunden
mga_vid.c:64:25: asm/uaccess.h: Datei oder Verzeichnis nicht gefunden
make: *** [mga_vid.o] Fehler 1
------------------------------------------------------------------------------------

Makefile doesnt find the file modversion.h. This file is in 
/usr/include/linux. I changed the directory in the Makefile to 
KERNEL_INCLUDES = /usr/include

Now I get other error-messages

------------------------------------------------------------------------------------
[root at linux drivers]# make
cc -g -O2  -Wall -D__KERNEL__  -DMODULE          -include 
/usr/include/linux/modversions.h -I/usr/include -c mga_vid.c
In file included from mga_vid.c:1:
/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 mga_vid.c:39:
/usr/include/linux/string.h:8:2: warning: #warning Using kernel header in 
userland!
In file included from /usr/include/linux/timex.h:152,
                 from /usr/include/linux/sched.h:14,
                 from mga_vid.c:39:
/usr/include/asm/timex.h:10:21: asm/msr.h: Datei oder Verzeichnis nicht 
gefunden
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 mga_vid.c:39:
/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 mga_vid.c:45:
/usr/include/linux/malloc.h:3:2: warning: #warning The Use of linux/malloc.h 
is deprecated, use linux/slab.h
mga_vid.c:64:25: asm/uaccess.h: Datei oder Verzeichnis nicht gefunden
make: *** [mga_vid.o] Fehler 1
---------------------------------------------------------------------------------

Do you have an idea, how I can install the drivers?

Thanks in advance,

Thomas B.






More information about the MPlayer-users mailing list