[Mplayer-matrox] mga_vid don't compil

Gregoire Favre Gregoire.Favre at freesurf.ch
Fri Aug 6 10:03:57 CEST 2004


Hello,

I am new to this list, I have looked with google to find a solution, but
the one I found just hang my computer when I load the mga_vid module...

With the current CVS, without any patch, it doesn't compil :


-- _vid.ko mga_vid_test
make[1]: Entering directory `/tmp/drivers'
make -C /lib/modules/`uname -r`/build SUBDIRS=/tmp/drivers modules
make[2]: Entering directory `/usr/src/linux-2.6.8-rc3'
  CC [M]  /tmp/drivers/mga_vid.o
In file included from include/asm/processor.h:18,
                 from include/asm/thread_info.h:16,
                 from include/linux/thread_info.h:21,
                 from include/linux/spinlock.h:12,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:7,
                 from include/linux/module.h:10,
                 from /tmp/drivers/mga_vid.c:38:
include/asm/system.h: In function `__set_64bit_var':
include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
/tmp/drivers/mga_vid.c: At top level:
/tmp/drivers/mga_vid.c:152: warning: static declaration of 'simple_strtol' follows non-static declaration
include/linux/kernel.h:75: warning: previous declaration of 'simple_strtol' was here
/tmp/drivers/mga_vid.c: In function `mga_vid_find_card':
/tmp/drivers/mga_vid.c:1350: error: structure has no member named `name'
/tmp/drivers/mga_vid.c:1355: error: structure has no member named `name'
/tmp/drivers/mga_vid.c:1360: error: structure has no member named `name'
/tmp/drivers/mga_vid.c:1365: error: structure has no member named `name'
/tmp/drivers/mga_vid.c:1370: error: structure has no member named `name'
/tmp/drivers/mga_vid.c: In function `mga_vid_release':
/tmp/drivers/mga_vid.c:1497: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at include/linux/module.h:567)
/tmp/drivers/mga_vid.c: In function `mga_vid_open':
/tmp/drivers/mga_vid.c:1511: error: request for member `value' in something not a structure or union
/tmp/drivers/mga_vid.c:1542: warning: `MOD_INC_USE_COUNT' is deprecated (declared at include/linux/module.h:555)
make[3]: *** [/tmp/drivers/mga_vid.o] Error 1
make[2]: *** [_module_/tmp/drivers] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.8-rc3'
make[1]: *** [mga_vid.ko] Error 2
make[1]: Leaving directory `/tmp/drivers'
make: *** [all] Error 2

My gcc is :

Reading specs from /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-clocale=gnu --disable-libunwind-exceptions --enable-languages=c,c++,ada,f77,objc,java --host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.4.1 (Mandrakelinux (Alpha 3.4.1-3mdk)

Does anyone have a solution ?

Thank you very much,

	Grégoire Favre
________________________________________________________________________
http://magma.epfl.ch/greg ICQ:16624071 mailto:Gregoire.Favre at freesurf.ch




More information about the MPlayer-matrox mailing list