[MPlayer-dev-eng] [PATCH] mga_vid and linux kernel 2.6

Gergely Tamas dice at mfa.kfki.hu
Mon Jun 28 21:48:36 CEST 2004


Hi!

 > Changing makefile to use /lib/modules/<version>/build instantly fixes
 > alot of things, but there are still two errors left:
 > 
 > /extra/mplayer-build/drivers/mga_vid.c: In function `mga_vid_release':
 > /extra/mplayer-build/drivers/mga_vid.c:1504: error: `MOD_DEC_USE_COUNT' undeclared (first use in this function)
 > /extra/mplayer-build/drivers/mga_vid.c:1504: error: (Each undeclared identifier is reported only once
 > /extra/mplayer-build/drivers/mga_vid.c:1504: error: for each function it appears in.)
 > /extra/mplayer-build/drivers/mga_vid.c: In function `mga_vid_open':
 > /extra/mplayer-build/drivers/mga_vid.c:1549: error: `MOD_INC_USE_COUNT' undeclared (first use in this function)

This looks strange. Where did you try to compile the driver. Did you
copy the files into mplayer tree (seems so) or standalone.

Try the following (this is how I use it):
1) extract mga_vid-2.6.tar.gz file into an empty directory
2) enter mga_vid-2.6 subdirectory
3) make
--> now you should have an mga_vid.ko file.

What is you kernel version?

Gergely




More information about the MPlayer-dev-eng mailing list