QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 850|回复: 2

为什么我 的模块编译不过?

[复制链接]
发表于 2003-10-19 12:14:08 | 显示全部楼层 |阅读模式
我在redhat8.0x下编译2.6的内核,内核是编译过去了,可是模块编译不过,信息如下,请大家帮忙看一下,为什么会出这个错误.
# make modules
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
  CC [M]  drivers/video/pm2fb.o
drivers/video/pm2fb.c:44:25: video/fbcon.h: No such file or directory
drivers/video/pm2fb.c:45:30: video/fbcon-cfb8.h: No such file or directory
drivers/video/pm2fb.c:46:31: video/fbcon-cfb16.h: No such file or directory
drivers/video/pm2fb.c:47:31: video/fbcon-cfb24.h: No such file or directory
drivers/video/pm2fb.c:48:31: video/fbcon-cfb32.h: No such file or directory
drivers/video/pm2fb.c:163: user_mode causes a section type conflict
drivers/video/pm2fb.c:258: field `gen' has incomplete type
drivers/video/pm2fb.c:287: field `disp' has incomplete type
drivers/video/pm2fb.c:403: variable `pm2fb_hwswitch' has initializer but incompl
ete type
drivers/video/pm2fb.c:404: warning: excess elements in struct initializer
drivers/video/pm2fb.c:404: warning: (near initialization for `pm2fb_hwswitch')
drivers/video/pm2fb.c:404: warning: excess elements in struct initializer
drivers/video/pm2fb.c:404: warning: (near initialization for `pm2fb_hwswitch')
drivers/video/pm2fb.c:404: warning: excess elements in struct initializer
drivers/video/pm2fb.c:404: warning: (near initialization for `pm2fb_hwswitch')
drivers/video/pm2fb.c:405: warning: excess elements in struct initializer
drivers/video/pm2fb.c:405: warning: (near initialization for `pm2fb_hwswitch')
drivers/video/pm2fb.c:405: warning: excess elements in struct initializer
drivers/video/pm2fb.c:405: warning: (near initialization for `pm2fb_hwswitch')
drivers/video/pm2fb.c:405: warning: excess elements in struct initializer
drivers/video/pm2fb.c:405: warning: (near initialization for `pm2fb_hwswitch')
drivers/video/pm2fb.c:406: warning: excess elements in struct initializer
drivers/video/pm2fb.c:406: warning: (near initialization for `pm2fb_hwswitch')
drivers/video/pm2fb.c:406: warning: excess elements in struct initializer
drivers/video/pm2fb.c:406: warning: (near initialization for `pm2fb_hwswitch')
drivers/video/pm2fb.c:407: warning: excess elements in struct initializer
drivers/video/pm2fb.c:407: warning: (near initialization for `pm2fb_hwswitch')
drivers/video/pm2fb.c:408: warning: excess elements in struct initializer
drivers/video/pm2fb.c:408: warning: (near initialization for `pm2fb_hwswitch')
drivers/video/pm2fb.c:417: unknown field `fb_get_fix' specified in initializer
drivers/video/pm2fb.c:417: `fbgen_get_fix' undeclared here (not in a function)
drivers/video/pm2fb.c:417: initializer element is not constant
drivers/video/pm2fb.c:417: (near initialization for `pm2fb_ops.fb_open')
drivers/video/pm2fb.c:418: unknown field `fb_get_var' specified in initializer
drivers/video/pm2fb.c:418: `fbgen_get_var' undeclared here (not in a function)
drivers/video/pm2fb.c:418: initializer element is not constant
drivers/video/pm2fb.c:418: (near initialization for `pm2fb_ops.fb_release')
drivers/video/pm2fb.c:419: unknown field `fb_set_var' specified in initializer
drivers/video/pm2fb.c:419: `fbgen_set_var' undeclared here (not in a function)
drivers/video/pm2fb.c:419: initializer element is not constant
drivers/video/pm2fb.c:419: (near initialization for `pm2fb_ops.fb_read')
drivers/video/pm2fb.c:420: unknown field `fb_get_cmap' specified in initializer
drivers/video/pm2fb.c:420: `fbgen_get_cmap' undeclared here (not in a function)
drivers/video/pm2fb.c:420: initializer element is not constant
drivers/video/pm2fb.c:420: (near initialization for `pm2fb_ops.fb_write')
drivers/video/pm2fb.c:421: unknown field `fb_set_cmap' specified in initializer
drivers/video/pm2fb.c:421: `fbgen_set_cmap' undeclared here (not in a function)
drivers/video/pm2fb.c:421: initializer element is not constant
drivers/video/pm2fb.c:421: (near initialization for `pm2fb_ops.fb_check_var')
drivers/video/pm2fb.c:422: `fbgen_pan_display' undeclared here (not in a functio
n)
drivers/video/pm2fb.c:422: initializer element is not constant
drivers/video/pm2fb.c:422: (near initialization for `pm2fb_ops.fb_pan_display')
drivers/video/pm2fb.c:424: `fbgen_blank' undeclared here (not in a function)
drivers/video/pm2fb.c:424: initializer element is not constant
drivers/video/pm2fb.c:424: (near initialization for `pm2fb_ops.fb_blank')
drivers/video/pm2fb.c: In function `pm2fb_pp_bmove':
drivers/video/pm2fb.c:1361: warning: implicit declaration of function `fontwidth
log'
drivers/video/pm2fb.c:1367: warning: implicit declaration of function `fontwidth
'
drivers/video/pm2fb.c:1371: warning: implicit declaration of function `fontheigh
t'
drivers/video/pm2fb.c:1374: dereferencing pointer to incomplete type
drivers/video/pm2fb.c: In function `pm2fb_bmove':
drivers/video/pm2fb.c:1394: dereferencing pointer to incomplete type
drivers/video/pm2fb.c: In function `pm2fb_set_disp':
drivers/video/pm2fb.c:1970: dereferencing pointer to incomplete type
drivers/video/pm2fb.c:2009: dereferencing pointer to incomplete type
drivers/video/pm2fb.c:2009: `fbcon_dummy' undeclared (first use in this function)
drivers/video/pm2fb.c:2009: (Each undeclared identifier is reported only once
drivers/video/pm2fb.c:2009: for each function it appears in.)
drivers/video/pm2fb.c: In function `pm2fb_cleanup':
drivers/video/pm2fb.c:2227: `info' undeclared (first use in this function)
drivers/video/pm2fb.c: In function `pm2fb_init':
drivers/video/pm2fb.c:2243: warning: `MOD_INC_USE_COUNT' is deprecated (declared
at include/linux/module.h:481)
drivers/video/pm2fb.c:2247: warning: `MOD_DEC_USE_COUNT' is deprecated (declared
at include/linux/module.h:493)
drivers/video/pm2fb.c:2264: `SCROLL_YNOMOVE' undeclared (first use in this funct
ion)
drivers/video/pm2fb.c:2272: `fbgen_switch' undeclared (first use in this functio
n)
drivers/video/pm2fb.c:2273: `fbgen_update_var' undeclared (first use in this fun
ction)
drivers/video/pm2fb.c:2275: warning: implicit declaration of function `fbgen_get
_var'
drivers/video/pm2fb.c:2276: warning: implicit declaration of function `fbgen_do_
set_var'
drivers/video/pm2fb.c:2277: warning: implicit declaration of function `fbgen_set
_disp'
drivers/video/pm2fb.c:2278: warning: implicit declaration of function `fbgen_ins
tall_cmap'
drivers/video/pm2fb.c:2282: warning: `MOD_DEC_USE_COUNT' is deprecated (declared
at include/linux/module.h:493)
drivers/video/pm2fb.c: At top level:
drivers/video/pm2fb.c:403: storage size of `pm2fb_hwswitch' isn't known
drivers/video/pm2fb.c:1359: warning: `pm2fb_pp_bmove' defined but not used
drivers/video/pm2fb.c:1379: warning: `pm2fb_bmove' defined but not used
make[2]: *** [drivers/video/pm2fb.o] Error 1
make[1]: *** [drivers/video] Error 2
make: *** [drivers] Error 2
发表于 2003-10-19 12:35:42 | 显示全部楼层
u need this pm2fb? if not , deselect it
回复

使用道具 举报

 楼主| 发表于 2003-10-19 12:42:10 | 显示全部楼层
pm2fb?是什么啊?
没有就不要选是吧?
我再试试
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-2 10:27 , Processed in 0.043254 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表