[MPlayer-dev-eng] mga_vid.c smp problem

Peter Magnusson iocc at mplayer.lists.flashdance.cx
Tue Apr 5 11:37:15 CEST 2005


On Mon, 4 Apr 2005, Ismail Donmez wrote:

> On Monday 04 April 2005 22:45, Peter Magnusson wrote:
>> include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
>
> You miss includes.

Are you really sure about that? I got the includes in
/lib/modules/2.6.10-1.770_FC3smp/build/include/asm

[iocc at flashdance asm]$ ll */mach_mpspec.h
-rw-r--r--  3 root 145 Dec 24 22:35 mach-bigsmp/mach_mpspec.h
-rw-r--r--  3 root 145 Dec 24 22:35 mach-default/mach_mpspec.h
-rw-r--r--  3 root 146 Dec 24 22:34 mach-es7000/mach_mpspec.h
-rw-r--r--  3 root 289 Dec 24 22:35 mach-generic/mach_mpspec.h
-rw-r--r--  3 root 145 Dec 24 22:35 mach-numaq/mach_mpspec.h
-rw-r--r--  3 root 214 Dec 24 22:34 mach-summit/mach_mpspec.h

It just wont find them. As I said I tried to link them, with no luck.
If I miss includes, do you have any idea what the rpm packet that have 
them could be named? Or what its named it whatever distro you use?

It seems that Im not the only one with this problem. These persons got the
_exactly_ the same problem with SMP and mga_vid:
http://article.gmane.org/gmane.comp.video.mplayer.user.matrox/174
http://article.gmane.org/gmane.comp.video.mplayer.user.matrox/212

Hmm.. If I edit mpspec.h and smp.h to point right to these files, #include 
<asm/mach-generic/mach_mpspec.h> and so on... I get no missing files errors 
but it wont compile anyway :/

[root at flashdance mga-vid-2.6.10]# make
make mga_vid.ko mga_vid_test
make[1]: Entering directory `/usr/src/mga-vid-2.6.10'
make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/mga-vid-2.6.10 
modules
make[2]: Entering directory `/lib/modules/2.6.10-1.770_FC3smp/build'
   CC [M]  /usr/src/mga-vid-2.6.10/mga_vid.o
In file included from include/asm/processor.h:18,
                  from include/asm/thread_info.h:17,
                  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 /usr/src/mga-vid-2.6.10/mga_vid.c:48:
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
In file included from /usr/src/mga-vid-2.6.10/mga_vid.c:52:
include/linux/cdev.h: At top level:
include/linux/cdev.h:24: warning: "struct inode" declared inside parameter 
list
include/linux/cdev.h:24: warning: its scope is only this definition or 
declaration, which is probably not what you want
/usr/src/mga-vid-2.6.10/mga_vid.c: In function `mga_vid_mmap':
/usr/src/mga-vid-2.6.10/mga_vid.c:952: warning: `remap_page_range' is 
deprecated (declared at include/linux/mm.h:778)
   Building modules, stage 2.
   MODPOST
   CC      /usr/src/mga-vid-2.6.10/mga_vid.mod.o
   LD [M]  /usr/src/mga-vid-2.6.10/mga_vid.ko
make[2]: Leaving directory `/lib/modules/2.6.10-1.770_FC3smp/build'
make[1]: *** No rule to make target `mga_vid_test.c', needed by 
`mga_vid_test'.  Stop.
make[1]: Leaving directory `/usr/src/mga-vid-2.6.10'
make: *** [all] Error 2
[root at flashdance mga-vid-2.6.10]#




More information about the MPlayer-dev-eng mailing list