Re: mga_vid with udev on Debian 3.1r3 sarge
Lurkos <[email protected]> Wed, 18 Oct 2006 19:23:17 +0200
| Newsgroups | gmane.comp.video.mplayer.user.matrox |
|---|---|
| Message-ID | <[email protected]> |
On 10/17/06, Attila Kinali <[email protected]> wrote: > and compile it. If it compiles, then type "make install", > do what's written in the README.udev and you are done. I applied the patch with "cat patchattila | patch -p1". Then I tried to compile, but there were some errors: debian:/home/lurkos/mga_vid-2.6.18# make 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/mga_vid-2.6.18/mga_vid.o /home/lurkos/mga_vid-2.6.18/mga_vid.c:309: error: `mga_max_cards' undeclared here (not in a function) /home/lurkos/mga_vid-2.6.18/mga_vid.c:309: error: initializer element is not constant /home/lurkos/mga_vid-2.6.18/mga_vid.c:309: error: (near initialization for `__param_arr_mga_ram_size.num') /home/lurkos/mga_vid-2.6.18/mga_vid.c:310: error: `mga_max_cards' undeclared here (not in a function) /home/lurkos/mga_vid-2.6.18/mga_vid.c:310: error: initializer element is not constant /home/lurkos/mga_vid-2.6.18/mga_vid.c:310: error: (near initialization for `__param_arr_mga_top_reserved.num') /home/lurkos/mga_vid-2.6.18/mga_vid.c:311: error: `mga_max_cards' undeclared here (not in a function) /home/lurkos/mga_vid-2.6.18/mga_vid.c:311: error: initializer element is not constant /home/lurkos/mga_vid-2.6.18/mga_vid.c:311: error: (near initialization for `__param_arr_mga_brightness.num') /home/lurkos/mga_vid-2.6.18/mga_vid.c:312: error: `mga_max_cards' undeclared here (not in a function) /home/lurkos/mga_vid-2.6.18/mga_vid.c:312: error: initializer element is not constant /home/lurkos/mga_vid-2.6.18/mga_vid.c:312: error: (near initialization for `__param_arr_mga_contrast.num') /home/lurkos/mga_vid-2.6.18/mga_vid.c: In function `mga_vid_mmap': /home/lurkos/mga_vid-2.6.18/mga_vid.c:964: warning: implicit declaration of function `remap_pfn_range' /home/lurkos/mga_vid-2.6.18/mga_vid.c: In function `mga_vid_initialize': /home/lurkos/mga_vid-2.6.18/mga_vid.c:1145: warning: implicit declaration of function `class_create' /home/lurkos/mga_vid-2.6.18/mga_vid.c:1145: warning: assignment makes pointer from integer without a cast /home/lurkos/mga_vid-2.6.18/mga_vid.c:1148: warning: implicit declaration of function `class_device_create' /home/lurkos/mga_vid-2.6.18/mga_vid.c: In function `mga_cleanup_module': /home/lurkos/mga_vid-2.6.18/mga_vid.c:1203: warning: implicit declaration of function `class_device_destroy' /home/lurkos/mga_vid-2.6.18/mga_vid.c:1205: warning: implicit declaration of function `class_destroy' make[2]: *** [/home/lurkos/mga_vid-2.6.18/mga_vid.o] Error 1 make[1]: *** [_module_/home/lurkos/mga_vid-2.6.18] Error 2 make[1]: Leaving directory `/usr/src/kernel-source-2.6.8' make: *** [mga_vid] Error 2 How can I solve this problem? Thanks. -- Lurkos