[MPlayer-matrox] mga_vid with udev on Debian 3.1r3 sarge

Lurkos lurkos at gmail.com
Mon Oct 23 01:16:04 CEST 2006


On 10/21/06, Attila Kinali <attila at kinali.ch> wrote:
> Oops, sorry. Missed that one.
> add following line:
> static int mga_max_cards = MGA_MAX_CARDS;
> above the module_param_array calls.

I have added that line and now it compiles, but the driver doesn't work.
These are the errors brought back by make, modprobe and dmesg.
How I can solve these errors?
Thanks!

** compiling errors **
make -C /lib/modules/`uname -r`/build M=`pwd` modules
make[1]: Entering directory `/usr/src/kernel-source-2.6.8'
  CC [M]  /home/lurkos/mgavid/mga_vid-2.6.18/mga_vid.o
/home/lurkos/mgavid/mga_vid-2.6.18/mga_vid.c: In function `mga_vid_mmap':
/home/lurkos/mgavid/mga_vid-2.6.18/mga_vid.c:965: warning: implicit
declaration of function `remap_pfn_range'
/home/lurkos/mgavid/mga_vid-2.6.18/mga_vid.c: In function `mga_vid_initialize':
/home/lurkos/mgavid/mga_vid-2.6.18/mga_vid.c:1146: warning: implicit
declaration of function `class_create'
/home/lurkos/mgavid/mga_vid-2.6.18/mga_vid.c:1146: warning: assignment
makes pointer from integer without a cast
/home/lurkos/mgavid/mga_vid-2.6.18/mga_vid.c:1149: warning: implicit
declaration of function `class_device_create'
/home/lurkos/mgavid/mga_vid-2.6.18/mga_vid.c: In function `mga_cleanup_module':
/home/lurkos/mgavid/mga_vid-2.6.18/mga_vid.c:1204: warning: implicit
declaration of function `class_device_destroy'
/home/lurkos/mgavid/mga_vid-2.6.18/mga_vid.c:1206: warning: implicit
declaration of function `class_destroy'
  Building modules, stage 2.
  MODPOST
*** Warning: "class_device_destroy"
[/home/lurkos/mgavid/mga_vid-2.6.18/mga_vid.ko] undefined!
*** Warning: "class_destroy"
[/home/lurkos/mgavid/mga_vid-2.6.18/mga_vid.ko] undefined!
*** Warning: "class_device_create"
[/home/lurkos/mgavid/mga_vid-2.6.18/mga_vid.ko] undefined!
*** Warning: "class_create"
[/home/lurkos/mgavid/mga_vid-2.6.18/mga_vid.ko] undefined!
*** Warning: "remap_pfn_range"
[/home/lurkos/mgavid/mga_vid-2.6.18/mga_vid.ko] undefined!
  CC      /home/lurkos/mgavid/mga_vid-2.6.18/mga_vid.mod.o
  LD [M]  /home/lurkos/mgavid/mga_vid-2.6.18/mga_vid.ko
make[1]: Leaving directory `/usr/src/kernel-source-2.6.8'
cc     mga_vid_test.c   -o mga_vid_test

** modprobe error **
FATAL: Error inserting mga_vid (/lib/modules/2.6.8/misc/mga_vid.ko):
Unknown symbol in module, or unknown parameter (see dmesg)

** dmesg errors **
mga_vid: Unknown symbol class_destroy
mga_vid: Unknown symbol remap_pfn_range
mga_vid: Unknown symbol class_create
mga_vid: Unknown symbol class_device_create
mga_vid: Unknown symbol class_device_destroy
mga_vid: Unknown symbol class_destroy
mga_vid: Unknown symbol remap_pfn_range
mga_vid: Unknown symbol class_create
mga_vid: Unknown symbol class_device_create
mga_vid: Unknown symbol class_device_destroy

-- 
Bye, Lurkos



More information about the MPlayer-matrox mailing list