Newsgroup: it.comp.os.linux.software
Titolo: mplayer compilazione moduli

Ciao a tutti,
Sto installando Mplayer sul mio nuovo portatile mi sono imbattuto in una
serie di errori di compilazione dei drivers della scheda video.
La versione di mplayer e quella attualmente disponibile sul sito ufficiale:
MPlayer-1.0pre7try2.
Il kernel è l'ultimissimo 2.6.16.19 ma nn cambia nulla se sul sistema carico
il vecchio kernel 2.4.
Ho installato una debian sarge
La mia scheda video e una ATI radeon x700 PCI
Ecco gli errori di compilazione:
include/asm/system.h: In function `__set_64bit_var':
include/asm/system.h:210: warning: dereferencing type-punned pointer will
break strict-aliasing rules
include/asm/system.h:210: warning: dereferencing type-punned pointer will
break strict-aliasing rules
/root/MPlayer-1.0pre7try2/drivers/mga_vid.c: At top level:
/root/MPlayer-1.0pre7try2/drivers/mga_vid.c:152: warning: static declaration
for `simple_strtol' follows non-static
/root/MPlayer-1.0pre7try2/drivers/mga_vid.c: In function
`mga_vid_find_card':
/root/MPlayer-1.0pre7try2/drivers/mga_vid.c:1350: error: structure has no
member named `slot_name'
/root/MPlayer-1.0pre7try2/drivers/mga_vid.c:1350: error: structure has no
member named `name'
/root/MPlayer-1.0pre7try2/drivers/mga_vid.c:1355: error: structure has no
member named `slot_name'
/root/MPlayer-1.0pre7try2/drivers/mga_vid.c:1355: error: structure has no
member named `name'
/root/MPlayer-1.0pre7try2/drivers/mga_vid.c:1360: error: structure has no
member named `slot_name'
/root/MPlayer-1.0pre7try2/drivers/mga_vid.c:1360: error: structure has no
member named `name'
/root/MPlayer-1.0pre7try2/drivers/mga_vid.c:1365: error: structure has no
member named `slot_name'
/root/MPlayer-1.0pre7try2/drivers/mga_vid.c:1365: error: structure has no
member named `name'
/root/MPlayer-1.0pre7try2/drivers/mga_vid.c:1370: error: structure has no
member named `slot_name'
/root/MPlayer-1.0pre7try2/drivers/mga_vid.c:1370: error: structure has no
member named `name'
/root/MPlayer-1.0pre7try2/drivers/mga_vid.c: In function `mga_vid_mmap':
/root/MPlayer-1.0pre7try2/drivers/mga_vid.c:1465: warning: implicit
declaration of function `remap_page_range'
/root/MPlayer-1.0pre7try2/drivers/mga_vid.c: In function `mga_vid_release':
/root/MPlayer-1.0pre7try2/drivers/mga_vid.c:1497: error: `MOD_DEC_USE_COUNT'
undeclared (first use in this function)
/root/MPlayer-1.0pre7try2/drivers/mga_vid.c:1497: error: (Each undeclared
identifier is reported only once
/root/MPlayer-1.0pre7try2/drivers/mga_vid.c:1497: error: for each function
it appears in.)
/root/MPlayer-1.0pre7try2/drivers/mga_vid.c: In function `mga_vid_open':
/root/MPlayer-1.0pre7try2/drivers/mga_vid.c:1511: error: request for member
`value' in something not a structure or union
/root/MPlayer-1.0pre7try2/drivers/mga_vid.c:1542: error: `MOD_INC_USE_COUNT'
undeclared (first use in this function)
make[3]: *** [/root/MPlayer-1.0pre7try2/drivers/mga_vid.o] Error 1
make[2]: *** [_module_/root/MPlayer-1.0pre7try2/drivers] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.16.19'
make[1]: *** [mga_vid.ko] Error 2
make[1]: Leaving directory `/root/MPlayer-1.0pre7try2/drivers'
make: *** [all] Error 2
Se rinuncio a compilare i driver specifici, mplayer si compila lo stesso ma
non sono molto soddisfatto delle prestazioni.
Qualcuno dei voi ha qualche suggerimento su che cosa può essere la causa di
tali errori?
Grazie a tutti,
Carmelo.

 puo' sapere? Cui prodest?
... va bene lo ammetto, non sono molto ferrato sull'argomento...
... mi sembrava di avere capito che un bel "make" nella directory dei driver
avrebbe portato ad avere tutti i moduli.
In seguito avrei caricato il modulo che mi interessa e creato il dispositivo
mknod /dev/radeon_vid c 178 o
nella directory dei driver, c'è anche subdirecory radeon con il suo bel
Makefile, se procedo con la compilazione ottengo:
In file included from /usr/src/linux/include/linux/rwsem.h:27,
                 from /usr/src/linux/include/asm/semaphore.h:42,
                 from /usr/src/linux/include/linux/sched.h:20,
                 from /usr/src/linux/include/linux/module.h:10,
                 from radeonfb.c:64:
/usr/src/linux/include/asm/rwsem.h: In function `__down_read':
/usr/src/linux/include/asm/rwsem.h:105: error: syntax error before
"KBUILD_BASENAME"
/usr/src/linux/include/asm/rwsem.h: In function `__down_write':
/usr/src/linux/include/asm/rwsem.h:157: error: syntax error before
"KBUILD_BASENAME"
/usr/src/linux/include/asm/rwsem.h: In function `__up_read':
/usr/src/linux/include/asm/rwsem.h:194: error: syntax error before
"KBUILD_BASENAME"
/usr/src/linux/include/asm/rwsem.h: In function `__up_write':
/usr/src/linux/include/asm/rwsem.h:220: error: syntax error before
"KBUILD_BASENAME"
/usr/src/linux/include/asm/rwsem.h: In function `__downgrade_write':
/usr/src/linux/include/asm/rwsem.h:245: error: syntax error before
"KBUILD_BASENAME"
In file included from /usr/src/linux/include/linux/sched.h:20,
                 from /usr/src/linux/include/linux/module.h:10,
                 from radeonfb.c:64:
/usr/src/linux/include/asm/semaphore.h: In function `down':
/usr/src/linux/include/asm/semaphore.h:105: error: syntax error before
"KBUILD_BASENAME"
/usr/src/linux/include/asm/semaphore.h: In function `down_interruptible':
/usr/src/linux/include/asm/semaphore.h:130: error: syntax error before
"KBUILD_BASENAME"
/usr/src/linux/include/asm/semaphore.h: In function `down_trylock':
/usr/src/linux/include/asm/semaphore.h:155: error: syntax error before
"KBUILD_BASENAME"
/usr/src/linux/include/asm/semaphore.h: In function `up':
/usr/src/linux/include/asm/semaphore.h:179: error: syntax error before
"KBUILD_BASENAME"
radeonfb.c:82:26: video/fbcon.h: No such file or directory
radeonfb.c:83:30: video/fbcon-cfb8.h: No such file or directory
radeonfb.c:84:31: video/fbcon-cfb16.h: No such file or directory
radeonfb.c:85:31: video/fbcon-cfb24.h: No such file or directory
radeonfb.c:86:31: video/fbcon-cfb32.h: No such file or directory
radeonfb.c: At top level:
radeonfb.c:346: error: field `disp' has incomplete type
radeonfb.c: In function `_INPLL':
radeonfb.c:430: warning: passing arg 2 of `writeb' makes pointer from
integer without a cast
radeonfb.c:431: warning: passing arg 1 of `readl' makes pointer from integer
without a cast
radeonfb.c: In function `radeon_engine_flush':
radeonfb.c:501: warning: passing arg 1 of `readl' makes pointer from integer
without a cast
radeonfb.c:501: warning: passing arg 2 of `writel' makes pointer from
integer without a cast
radeonfb.c:505: warning: passing arg 1 of `readl' makes pointer from integer
without a cast
radeonfb.c: In function `_radeon_fifo_wait':
.
.
.
e così via
Qualche sugegrimento?
Grazie, Carmelo.