Fails to compile mga_vid for 2.6.9smp

Derek <[email protected]>
Newsgroups gmane.comp.video.mplayer.user.matrox
Message-ID <[email protected]>
Hi all,

I cannot compile the mga_vid driver in the current daily snapshots.

I include below the error messages generated when I use
the 20041118 snapshot with kernel 2.6.9smp on Fedora Core 3.

Several variables are undeclared, and it looks like the structure
pci_dev has changed.

Nevertheless, I can compile the 20040728 version of mga_vid.c on the 
same machine.

Any ideas?

-Derek




make mga_vid.ko mga_vid_test
make[1]: Entering directory `/usr/local/src/MPlayer-20041118/drivers'
make -C /lib/modules/`uname -r`/build 
SUBDIRS=/usr/local/src/MPlayer-20041118/drivers modules
make[2]: Entering directory `/lib/modules/2.6.9-1.678_FC3smp/build'
   CC [M]  /usr/local/src/MPlayer-20041118/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 /usr/local/src/MPlayer-20041118/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
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/local/src/MPlayer-20041118/drivers/mga_vid.c:38:
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/local/src/MPlayer-20041118/drivers/mga_vid.c:38:
include/asm/mpspec.h: At top level:
include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a 
function)
include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not 
in a function)
In file included from include/linux/smp.h:17,
                  from include/linux/sched.h:23,
                  from include/linux/module.h:10,
                  from /usr/local/src/MPlayer-20041118/drivers/mga_vid.c:38:
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/local/src/MPlayer-20041118/drivers/mga_vid.c:38:
include/asm/smp.h: In function `hard_smp_processor_id':
include/asm/smp.h:76: warning: implicit declaration of function 
`GET_APIC_ID'
/usr/local/src/MPlayer-20041118/drivers/mga_vid.c: At top level:
/usr/local/src/MPlayer-20041118/drivers/mga_vid.c:152: warning: static 
declaration of 'simple_strtol' follows non-static declaration
include/linux/kernel.h:85: warning: previous declaration of 
'simple_strtol' was here
/usr/local/src/MPlayer-20041118/drivers/mga_vid.c: In function 
`mga_vid_find_card':
/usr/local/src/MPlayer-20041118/drivers/mga_vid.c:1350: error: structure 
has no member named `name'
/usr/local/src/MPlayer-20041118/drivers/mga_vid.c:1355: error: structure 
has no member named `name'
/usr/local/src/MPlayer-20041118/drivers/mga_vid.c:1360: error: structure 
has no member named `name'
/usr/local/src/MPlayer-20041118/drivers/mga_vid.c:1365: error: structure 
has no member named `name'
/usr/local/src/MPlayer-20041118/drivers/mga_vid.c:1370: error: structure 
has no member named `name'
/usr/local/src/MPlayer-20041118/drivers/mga_vid.c: In function 
`mga_vid_release':
/usr/local/src/MPlayer-20041118/drivers/mga_vid.c:1497: error: 
`MOD_DEC_USE_COUNT' undeclared (first use in this function)
/usr/local/src/MPlayer-20041118/drivers/mga_vid.c:1497: error: (Each 
undeclared identifier is reported only once
/usr/local/src/MPlayer-20041118/drivers/mga_vid.c:1497: error: for each 
function it appears in.)
/usr/local/src/MPlayer-20041118/drivers/mga_vid.c: In function 
`mga_vid_open':
/usr/local/src/MPlayer-20041118/drivers/mga_vid.c:1511: error: request 
for member `value' in something not a structure or union
/usr/local/src/MPlayer-20041118/drivers/mga_vid.c:1542: error: 
`MOD_INC_USE_COUNT' undeclared (first use in this function)
make[3]: *** [/usr/local/src/MPlayer-20041118/drivers/mga_vid.o] Error 1
make[2]: *** [_module_/usr/local/src/MPlayer-20041118/drivers] Error 2
make[2]: Leaving directory `/lib/modules/2.6.9-1.678_FC3smp/build'
make[1]: *** [mga_vid.ko] Error 2
make[1]: Leaving directory `/usr/local/src/MPlayer-20041118/drivers'
make: *** [all] Error 2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.