Discussion:
mga_vid don't compil
Gregoire Favre
2004-08-06 08:03:57 UTC
Permalink
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:***@freesurf.ch
Attila Kinali
2004-08-06 08:17:49 UTC
Permalink
Post by Gregoire Favre
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...
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 ?
you forgot the most important information: that you are using
a 2.6 kernel.

It's not supported yet, work ongoing.
Put there was a patch on -dev-eng recently which might be applied.

Attila Kinali
Gregoire Favre
2004-08-06 08:45:39 UTC
Permalink
Post by Attila Kinali
you forgot the most important information: that you are using
a 2.6 kernel.
No, it's in the log of the compilation :-)
Post by Attila Kinali
It's not supported yet, work ongoing.
Put there was a patch on -dev-eng recently which might be applied.
My message wasn't clear : I have tested three patches from -dev-eng but
then my computer crash when I insmod the module...

http://zebra.fh-weingarten.de/~maxi/html/mplayer-dev-eng/2004-06/msg00517.html

and

http://georgi.unixsol.org/programs/mga_vid-kernel-2.6.diff

Both without success

I am sorry, I was thinking the above message should already have gone in
some way to the CVS . I'll then wait a little more :-)

Thank for your answer,
--
Grégoire Favre
________________________________________________________________________
http://magma.epfl.ch/greg ICQ:16624071 mailto:***@freesurf.ch
Loading...