[MPlayer-dev-eng] mga_vid.c smp problem
Peter Magnusson
iocc at mplayer.lists.flashdance.cx
Mon Apr 4 21:45:27 CEST 2005
Hi.
I use MPlayer-1.0pre6a. Compiled with:
./configure --enable-gui --enable-menu --enable-mga --enable-xmga
--with-reallibdir=/usr/lib/win32 --with-xanimlibdir=/usr/lib/win32
I use gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
I use FC3 with kernel 2.6.10-1.770_FC3smp. I dont have smp but got a HT
processor so thats the reason that I use smp.
mga-vid-2.6.10-2005-01-11.tar.gz wont build on my smp box :(
[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 include/asm/smp.h:18,
from include/linux/smp.h:17,
from include/linux/sched.h:23,
from include/linux/module.h:10,
from /usr/src/mga-vid-2.6.10/mga_vid.c:48:
include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
In file included from include/asm/smp.h:18,
from include/linux/smp.h:17,
from include/linux/sched.h:23,
from include/linux/module.h:10,
from /usr/src/mga-vid-2.6.10/mga_vid.c:48:
include/asm/mpspec.h: At top level:
include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a
functio
n)
include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a
func
tion)
In file included from include/linux/smp.h:17,
from include/linux/sched.h:23,
from include/linux/module.h:10,
from /usr/src/mga-vid-2.6.10/mga_vid.c:48:
include/asm/smp.h:72:26: mach_apicdef.h: No such file or directory
In file included from include/linux/smp.h:17,
from include/linux/sched.h:23,
from include/linux/module.h:10,
from /usr/src/mga-vid-2.6.10/mga_vid.c:48:
include/asm/smp.h: In function `hard_smp_processor_id':
include/asm/smp.h:76: warning: implicit declaration of function `GET_APIC_ID'
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
declarati
on, 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)
make[3]: *** [/usr/src/mga-vid-2.6.10/mga_vid.o] Error 1
make[2]: *** [_module_/usr/src/mga-vid-2.6.10] Error 2
make[2]: Leaving directory `/lib/modules/2.6.10-1.770_FC3smp/build'
make[1]: *** [mga_vid.ko] Error 2
make[1]: Leaving directory `/usr/src/mga-vid-2.6.10'
make: *** [all] Error 2
[root at flashdance mga-vid-2.6.10]#
However, mga-vid-2.6.11-2005-03-06.tar.gz will build just fine. But later it
wont work, probably because its not the right kernel :)
I have tried to rewrite the Makefile and link files where it expect them to be.
Like in /lib/modules/2.6.10-1.770_FC3smp/build/include/asm I tried
to link:
lrwxrwxrwx 1 root 26 Mar 31 06:57 mach_apicdef.h ->
mach-bigsmp/mach_apicdef.h
lrwxrwxrwx 1 root 25 Mar 31 06:58 mach_mpspec.h ->
mach-bigsmp/mach_mpspec.h
but it didnt help either :(
Help?
More information about the MPlayer-dev-eng
mailing list