[MPlayer-dev-eng] [PATCH] mga_vid for 2.6 - updated
Ivan Kalvachev
ivan at cacad.com
Tue Jul 13 13:04:47 CEST 2004
Hi,
Looking at the command line and without looking at the source of mga module,
something comes into my mind. Definitly using _config_/modeversion.h is
useless. Use /lib/modules/`uname -r`/build/include/linux/modversions.h
instead.
Take a look on one other mail, it may come handy:
http://sourceforge.net/mailarchive/message.php?msg_id=6702993
Wish You Best
Ivan Kalvachev
iive
p.s. Something else. When compiling kernel - IN ALL CASES you must
compile bzImage first and THEN kernel modules.
I donno why even the current linux kernel make system allows e.g. making
everything at once (with make all) that gives unresolved symbols in half
of the modules.
Jan Knutar said:
> On Monday 12 July 2004 19:34, Ferdinand O. Tempel wrote:
>
>> without the CFLAGS, things work too. That is interresting. Can you
>> figure out for me which CFLAG is the culprit? Start with getting rid of
>> the modversions.h -include, as that looks like a good candidate
>> (conveniently eliminates some of the compile warnings too). Doesn't make
>> it any more obvious as to what is wrong, but it at least can help
>> providing a workaround for those running into it.
>
> CFLAGS = -O2 -D__KERNEL__ -DMODULE -include
> $(KERNEL_INCLUDES)/config/modversions.h -Wall
> => insmod: error inserting './mga_vid.ko': -1 Bad address
> CFLAGS = -O2 -D__KERNEL__ -DMODULE -Wall
> => insmod: error inserting './mga_vid.ko': -1 Bad address
> CFLAGS = -O2 -D__KERNEL__ -Wall
> => insmod: error inserting './mga_vid.ko': -1 Bad address
> CFLAGS = -O2 -Wall
> => insmod: error inserting './mga_vid.ko': -1 Bad address
> CFLAGS = -Wall
> => insmod: error inserting './mga_vid.ko': -1 Bad address
> CFLAGS =
> => insmod: error inserting './mga_vid.ko': -1 Bad address
> #CFLAGS =
> => Success!
>
> Hm, should I test all 31 possibilities? :-)
>
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>
More information about the MPlayer-dev-eng
mailing list