免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 7845 | 回复: 10
打印 上一主题 下一主题

CentOS5.6上编译3.0内核出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-07-23 22:15 |只看该作者 |倒序浏览
In file included from /usr/include/sys/time.h:31,
                 from /usr/include/linux/input.h:12,
                 from samples/hidraw/hid-example.c:14:
/usr/include/sys/select.h:78: error: conflicting types for ‘fd_set’
/usr/include/linux/types.h:12: error: previous declaration of ‘fd_set’ was here
In file included from /usr/include/linux/input.h:14,
                 from samples/hidraw/hid-example.c:14:
/usr/include/sys/types.h:62: error: conflicting types for ‘dev_t’
/usr/include/linux/types.h:13: error: previous declaration of ‘dev_t’ was here
/usr/include/sys/types.h:67: error: conflicting types for ‘gid_t’
/usr/include/linux/types.h:27: error: previous declaration of ‘gid_t’ was here
/usr/include/sys/types.h:72: error: conflicting types for ‘mode_t’
/usr/include/linux/types.h:15: error: previous declaration of ‘mode_t’ was here
/usr/include/sys/types.h:77: error: conflicting types for ‘nlink_t’
/usr/include/linux/types.h:16: error: previous declaration of ‘nlink_t’ was here
/usr/include/sys/types.h:82: error: conflicting types for ‘uid_t’
/usr/include/linux/types.h:26: error: previous declaration of ‘uid_t’ was here
In file included from /usr/include/sys/types.h:133,
                 from /usr/include/linux/input.h:14,
                 from samples/hidraw/hid-example.c:14:
/usr/include/time.h:105: error: conflicting types for ‘timer_t’
/usr/include/linux/types.h:22: error: previous declaration of ‘timer_t’ was here
In file included from /usr/include/linux/input.h:14,
                 from samples/hidraw/hid-example.c:14:
/usr/include/sys/types.h:235: error: conflicting types for ‘blkcnt_t’
/usr/include/linux/types.h:114: error: previous declaration of ‘blkcnt_t’ was here
samples/hidraw/hid-example.c:15:26: error: linux/hidraw.h: No such file or directory
samples/hidraw/hid-example.c: In function ‘main’:
samples/hidraw/hid-example.c:48: error: storage size of ‘rpt_desc’ isn’t known
samples/hidraw/hid-example.c:49: error: storage size of ‘info’ isn’t known
samples/hidraw/hid-example.c:65: error: ‘HIDIOCGRDESCSIZE’ undeclared (first use in this function)
samples/hidraw/hid-example.c:65: error: (Each undeclared identifier is reported only once
samples/hidraw/hid-example.c:65: error: for each function it appears in.)
samples/hidraw/hid-example.c:73: error: ‘HIDIOCGRDESC’ undeclared (first use in this function)
samples/hidraw/hid-example.c:84: warning: implicit declaration of function ‘HIDIOCGRAWNAME’
samples/hidraw/hid-example.c:91: warning: implicit declaration of function ‘HIDIOCGRAWPHYS’
samples/hidraw/hid-example.c:98: error: ‘HIDIOCGRAWINFO’ undeclared (first use in this function)
samples/hidraw/hid-example.c:49: warning: unused variable ‘info’
samples/hidraw/hid-example.c:48: warning: unused variable ‘rpt_desc’
samples/hidraw/hid-example.c: In function ‘bus_str’:
samples/hidraw/hid-example.c:171: error: ‘BUS_VIRTUAL’ undeclared (first use in this function)
make[2]: *** [samples/hidraw/hid-example] Error 1
make[1]: *** [samples/hidraw] Error 2
make: *** [vmlinux] Error 2
[root@CentOS linux-3.0]#

神马原因?

论坛徽章:
0
2 [报告]
发表于 2011-07-23 22:22 |只看该作者
本帖最后由 taojie2000 于 2011-07-23 22:35 编辑

回复 1# marsaber


  没看 3.0 的 changelog                    gcc? 内核选项?

论坛徽章:
0
3 [报告]
发表于 2011-07-23 22:55 |只看该作者
跟gcc的版本有关吗?

论坛徽章:
0
4 [报告]
发表于 2011-07-23 23:07 |只看该作者
回复 3# marsaber


    不清楚  等周一有时间下来编译个看看

论坛徽章:
0
5 [报告]
发表于 2011-07-25 08:35 |只看该作者
我觉得编译器版本问题吧。

论坛徽章:
0
6 [报告]
发表于 2011-08-01 12:25 |只看该作者
编译过程出现:
checking openssl/ssl.h usability... no
checking openssl/ssl.h presence... no
checking for openssl/ssl.h... no
configure: error:
  !!! OpenSSL is not properly installed on your system. !!!
  !!! Can not include OpenSSL headers files.            !!!
解决方式:安装openssl-devel
2.
In file included from /usr/include/stdlib.h:438,
                 from ../../lib/memory.h:30,
                 from vrrp_arp.c:28:
/usr/include/sys/types.h:62: 错误:与 ‘dev_t’ 类型冲突
/usr/include/linux/types.h:13: 错误:‘dev_t’ 的上一个声明在此
/usr/include/sys/types.h:67: 错误:与 ‘gid_t’ 类型冲突
/usr/include/linux/types.h:27: 错误:‘gid_t’ 的上一个声明在此
/usr/include/sys/types.h:72: 错误:与 ‘mode_t’ 类型冲突
/usr/include/linux/types.h:15: 错误:‘mode_t’ 的上一个声明在此
/usr/include/sys/types.h:77: 错误:与 ‘nlink_t’ 类型冲突
/usr/include/linux/types.h:16: 错误:‘nlink_t’ 的上一个声明在此
/usr/include/sys/types.h:82: 错误:与 ‘uid_t’ 类型冲突
/usr/include/linux/types.h:26: 错误:‘uid_t’ 的上一个声明在此
In file included from /usr/include/sys/types.h:133,
                 from /usr/include/stdlib.h:438,
                 from ../../lib/memory.h:30,
                 from vrrp_arp.c:28:
/usr/include/time.h:105: 错误:与 ‘timer_t’ 类型冲突
/usr/include/linux/types.h:22: 错误:‘timer_t’ 的上一个声明在此
In file included from /usr/include/sys/types.h:220,
                 from /usr/include/stdlib.h:438,
                 from ../../lib/memory.h:30,
                 from vrrp_arp.c:28:
/usr/include/sys/select.h:78: 错误:与 ‘fd_set’ 类型冲突
/usr/include/linux/types.h:12: 错误:‘fd_set’ 的上一个声明在此
In file included from /usr/include/stdlib.h:438,
                 from ../../lib/memory.h:30,
                 from vrrp_arp.c:28:
/usr/include/sys/types.h:235: 错误:与 ‘blkcnt_t’ 类型冲突
/usr/include/linux/types.h:114: 错误:‘blkcnt_t’ 的上一个声明在此
解决方式:安装iptraf

我在这里个网址找到的
http://blog.163.com/yunlei_ma/bl ... 935201051501643143/

论坛徽章:
0
7 [报告]
发表于 2011-08-02 19:20 |只看该作者
CentOS5.6上安装了iptraf,编译还是出错,一样的错误。
CentOS6.0上没安装iptraf,编译成功。

论坛徽章:
0
8 [报告]
发表于 2011-11-16 14:33 |只看该作者
回复 7# marsaber

想问下您是怎么解决这个错误的,我也遇到相同的错误了,谢谢了!@

论坛徽章:
0
9 [报告]
发表于 2011-11-16 14:35 |只看该作者
回复 8# ejdfw


    直接换6.0 编译成功了  5.6 没成功

论坛徽章:
0
10 [报告]
发表于 2011-11-16 14:42 |只看该作者
回复 9# taojie2000


    就是不知道这个错误要怎么解决哦,兄弟
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP