免费注册 查看新帖 |

Chinaunix

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

编译raidtools出错,盼望各位给出建议 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-01-29 10:10 |只看该作者 |倒序浏览
[root@GOLD raidtools-1.00.3]# uname -r
2.6.23.1

[root@GOLD raidtools-1.00.3]# make
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o raidstart.o raidstart.c
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o parser.o parser.c
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o raidlib.o raidlib.c
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o version.o version.c
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o raid_io.o raid_io.c
raidstart.c: In function ‘main’:
raidstart.c:76: warning: pointer targets in passing argument 1 of ‘usage’ differ in signedness
raidstart.c:86: warning: pointer targets in passing argument 1 of ‘usage’ differ in signedness
raidstart.c:91: warning: pointer targets in passing argument 1 of ‘usage’ differ in signedness
raidstart.c:116: warning: pointer targets in passing argument 1 of ‘usage’ differ in signedness
raidstart.c:144: warning: pointer targets in passing argument 1 of ‘usage’ differ in signedness
raidstart.c:165: warning: pointer targets in passing argument 1 of ‘usage’ differ in signedness
raidstart.c:175: warning: pointer targets in passing argument 1 of ‘usage’ differ in signedness
raidstart.c:207: warning: pointer targets in passing argument 1 of ‘usage’ differ in signedness
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o scsi.o scsi.c
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o reconfiguration.o reconfiguration.c
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o rrc_common.o rrc_common.c
scsi.c: In function ‘scsi_get_serial_number_page’:
scsi.c:434: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in
signedness
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o rrc_raid0.o rrc_raid0.c
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o rrc_raid5.o rrc_raid5.c
gcc -O2 -Wall -DMD_VERSION=\""raidtools-1.00.3"\" -c -o rrc_single.o rrc_single.c
raid_io.c:96: error: expected declaration specifiers or ‘...’ before ‘_llseek’
raid_io.c:96: error: expected declaration specifiers or ‘...’ before ‘fd’
raid_io.c:96: error: expected declaration specifiers or ‘...’ before ‘offset_high’
raid_io.c:97: error: expected declaration specifiers or ‘...’ before ‘offset_low’
raid_io.c:97: error: expected declaration specifiers or ‘...’ before ‘result’
raid_io.c:98: error: expected declaration specifiers or ‘...’ before ‘origin’
raid_io.c:101: warning: return type defaults to ‘int’
raid_io.c: In function ‘_syscall5’:
raid_io.c:102: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’
token
raid_io.c:119: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’
token
raid_io.c:214: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’
token
raid_io.c:267: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’
token
raid_io.c:361: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’
token
raid_io.c:519: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’
token
raid_io.c:96: error: parameter name omitted
raid_io.c:96: error: parameter name omitted
raid_io.c:96: error: parameter name omitted
raid_io.c:97: error: parameter name omitted
raid_io.c:97: error: parameter name omitted
raid_io.c:98: error: parameter name omitted
raid_io.c:539: error: expected ‘{’ at end of input
make: *** [raid_io.o] Error 1
make: *** Waiting for unfinished jobs....
rrc_raid5.c: In function ‘raid5_map_global_to_local’:
rrc_raid5.c:299: warning: pointer targets in passing argument 2 of ‘raid5_compute_sector’
differ in signedness
rrc_raid5.c:299: warning: pointer targets in passing argument 3 of ‘raid5_compute_sector’
differ in signednes

[ 本帖最后由 lfkj_gjm 于 2008-1-29 10:12 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-01-29 10:45 |只看该作者
編譯問題可能要另外談,但是有個問題是:

1. 新式的系統已經不用 raidtools,而是使用 mdadm 替代

2. 不管哪種發行版本,都會收錄現成可用的 raidtools or mdadm package,安裝上即可使用

--

论坛徽章:
0
3 [报告]
发表于 2008-01-29 16:27 |只看该作者
这个我了解,我linux已经有mdadm的rpm安装包。

这个问题的目的在于:
make时出现的错误如何进行解决?我在google上也查了不少,没有得到什么有益的建议。

论坛徽章:
0
4 [报告]
发表于 2008-01-30 14:16 |只看该作者
没人知道还是不屑一顾?

论坛徽章:
0
5 [报告]
发表于 2008-01-30 17:24 |只看该作者
是不是系统对它的支持有问题啊,还是用mdadm吧,很好用的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP