|
我的系统是RH9 2.4.20-8 显卡是MGA G450,已经安装了MGA的4。3驱动,按照mplayer的DOCS中说的那样,编译mga_vid.o时出现下面的错误:
cc -O2 -D__KERNEL__ -DMODULE -include /usr/src/linux/include/linux/modversions.h -I/usr/src/linux/include -c mga_vid.c
mga_vid.c: /usr/src/linux/include/linux/modversions.h: 没有那个文件或目录
In file included from /usr/include/linux/fs.h:23,
from /usr/include/linux/capability.h:17,
from /usr/include/linux/binfmts.h:5,
from /usr/include/linux/sched.h:9,
from mga_vid.c:39:
/usr/include/linux/string.h:8:2: warning: #warning Using kernel header in userland!
In file included from /usr/include/linux/sched.h:14,
from mga_vid.c:39:
/usr/include/linux/timex.h:173: field `time' has incomplete type
In file included from /usr/include/linux/bitops.h:69,
from /usr/include/asm/system.h:7,
from /usr/include/linux/sched.h:16,
from mga_vid.c:39:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:25,
from mga_vid.c:39:
/usr/include/asm/signal.h:107: parse error before "sigset_t"
/usr/include/asm/signal.h:110: parse error before '}' token
In file included from /usr/include/linux/sched.h:81,
from mga_vid.c:39:
/usr/include/linux/timer.h:45: parse error before "spinlock_t"
/usr/include/linux/timer.h:53: parse error before '}' token
/usr/include/linux/timer.h:67: parse error before "tvec_base_t"
/usr/include/linux/timer.h:101: parse error before "tvec_bases"
/usr/include/linux/timer.h: In function `init_timer':
/usr/include/linux/timer.h:105: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:105: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:106: dereferencing pointer to incomplete type
/usr/include/linux/timer.h: In function `timer_pending':
/usr/include/linux/timer.h:121: dereferencing pointer to incomplete type
mga_vid.c:64:25: asm/uaccess.h: 没有那个文件或目录
mga_vid.c: In function `mga_vid_set_config':
mga_vid.c:704: `KERN_ERR' undeclared (first use in this function)
mga_vid.c:704: (Each undeclared identifier is reported only once
mga_vid.c:704: for each function it appears in.)
mga_vid.c:704: parse error before string constant
mga_vid.c:772: parse error before string constant
mga_vid.c: At top level:
mga_vid.c:1172: warning: `struct file' declared inside parameter list
mga_vid.c:1172: warning: its scope is only this definition or declaration, which is probably not what you want
mga_vid.c:1172: warning: `struct inode' declared inside parameter list
mga_vid.c: In function `mga_vid_ioctl':
mga_vid.c:1193: `KERN_ERR' undeclared (first use in this function)
mga_vid.c:1193: parse error before string constant
mga_vid.c:1197: parse error before string constant
mga_vid.c:1202: parse error before string constant
mga_vid.c:1207: parse error before string constant
mga_vid.c:1213: parse error before string constant
mga_vid.c:1230: parse error before string constant
mga_vid.c:1268: parse error before string constant
mga_vid.c:1282: parse error before string constant
mga_vid.c:1297: parse error before string constant
mga_vid.c: In function `mga_vid_find_card':
mga_vid.c:1310: warning: assignment makes pointer from integer without a cast
mga_vid.c:1313: `KERN_INFO' undeclared (first use in this function)
mga_vid.c:1313: parse error before string constant
mga_vid.c:1315: warning: assignment makes pointer from integer without a cast
mga_vid.c:1318: parse error before string constant
mga_vid.c:1320: warning: assignment makes pointer from integer without a cast
mga_vid.c:1323: parse error before string constant
mga_vid.c:1325: warning: assignment makes pointer from integer without a cast
mga_vid.c:1328: parse error before string constant
mga_vid.c:1332: `KERN_ERR' undeclared (first use in this function)
mga_vid.c:1332: parse error before string constant
mga_vid.c:1338: dereferencing pointer to incomplete type
mga_vid.c:1341: dereferencing pointer to incomplete type
mga_vid.c:1341: warning: assignment makes pointer from integer without a cast
mga_vid.c:1342: dereferencing pointer to incomplete type
mga_vid.c:1347: parse error before string constant
mga_vid.c:1350: parse error before string constant
mga_vid.c:1356: parse error before string constant
mga_vid.c:1379: parse error before string constant
mga_vid.c:1383: dereferencing pointer to incomplete type
mga_vid.c:1384: dereferencing pointer to incomplete type
mga_vid.c:1385: dereferencing pointer to incomplete type
mga_vid.c:1387: parse error before string constant
mga_vid.c:1410: parse error before string constant
mga_vid.c:1429: parse error before string constant
mga_vid.c: At top level:
mga_vid.c:1453: warning: `struct file' declared inside parameter list
mga_vid.c:1465: warning: `struct file' declared inside parameter list
mga_vid.c:1495: warning: `struct vm_area_struct' declared inside parameter list
mga_vid.c:1495: warning: `struct file' declared inside parameter list
mga_vid.c: In function `mga_vid_mmap':
mga_vid.c:1505: dereferencing pointer to incomplete type
mga_vid.c:1506: dereferencing pointer to incomplete type
mga_vid.c:1506: dereferencing pointer to incomplete type
mga_vid.c:1506: dereferencing pointer to incomplete type
mga_vid.c:1509: `KERN_ERR' undeclared (first use in this function)
mga_vid.c:1509: parse error before string constant
mga_vid.c: At top level:
mga_vid.c:1516: warning: `struct file' declared inside parameter list
mga_vid.c:1516: warning: `struct inode' declared inside parameter list
mga_vid.c: In function `mga_vid_release':
mga_vid.c:1530: union has no member named `usecount'
mga_vid.c: At top level:
mga_vid.c:1534: warning: `struct file' declared inside parameter list
mga_vid.c:1539: warning: `struct file' declared inside parameter list
mga_vid.c:1539: warning: `struct inode' declared inside parameter list
mga_vid.c: In function `mga_vid_open':
mga_vid.c:1544: dereferencing pointer to incomplete type
mga_vid.c:1554: union has no member named `usecount'
mga_vid.c: At top level:
mga_vid.c:1559: variable `mga_vid_fops' has initializer but incomplete type
mga_vid.c:1561: unknown field `llseek' specified in initializer
mga_vid.c:1561: warning: excess elements in struct initializer
mga_vid.c:1561: warning: (near initialization for `mga_vid_fops')
mga_vid.c:1562: unknown field `read' specified in initializer
mga_vid.c:1562: warning: excess elements in struct initializer
mga_vid.c:1562: warning: (near initialization for `mga_vid_fops')
mga_vid.c:1563: unknown field `write' specified in initializer
mga_vid.c:1563: warning: excess elements in struct initializer
mga_vid.c:1563: warning: (near initialization for `mga_vid_fops')
mga_vid.c:1564: unknown field `ioctl' specified in initializer
mga_vid.c:1564: warning: excess elements in struct initializer
mga_vid.c:1564: warning: (near initialization for `mga_vid_fops')
mga_vid.c:1565: unknown field `mmap' specified in initializer
mga_vid.c:1565: warning: excess elements in struct initializer
mga_vid.c:1565: warning: (near initialization for `mga_vid_fops')
mga_vid.c:1566: unknown field `open' specified in initializer
mga_vid.c:1566: warning: excess elements in struct initializer
mga_vid.c:1566: warning: (near initialization for `mga_vid_fops')
mga_vid.c:1567: unknown field `release' specified in initializer
mga_vid.c:1568: warning: excess elements in struct initializer
mga_vid.c:1568: warning: (near initialization for `mga_vid_fops')
mga_vid.c: In function `mga_vid_initialize':
mga_vid.c:1595: `KERN_INFO' undeclared (first use in this function)
mga_vid.c:1595: parse error before string constant
mga_vid.c:1599: `KERN_ERR' undeclared (first use in this function)
mga_vid.c:1599: parse error before string constant
mga_vid.c:1624: parse error before string constant
mga_vid.c:1630: parse error before string constant
mga_vid.c:1637: `GFP_KERNEL' undeclared (first use in this function)
mga_vid.c:1637: warning: assignment makes pointer from integer without a cast
mga_vid.c: In function `cleanup_module':
mga_vid.c:1662: `KERN_INFO' undeclared (first use in this function)
mga_vid.c:1662: parse error before string constant
/usr/include/asm/io.h: At top level:
mga_vid.c:1559: storage size of `mga_vid_fops' isn't known
make: *** [mga_vid.o] Error 1 |
|