QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1524|回复: 1

debian 下安装 iscsitarget 为何屡不成功啊

[复制链接]
发表于 2006-4-1 22:08:04 | 显示全部楼层 |阅读模式
debian:/usr/src/iscsitarget-0.4.13# make KERNELSRC=/lib/modules/2.6.14
make -C usr
make[1]: Entering directory `/usr/src/iscsitarget-0.4.13/usr'
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o ietd.o ietd.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o iscsid.o iscsid.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o conn.o conn.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o session.o session.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o target.o target.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o message.o message.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o ctldev.o ctldev.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o log.o log.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o isns.o isns.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o chap.o chap.c
chap.c:20:25: openssl/sha.h: No such file or directory
chap.c:21:25: openssl/md5.h: No such file or directory
chap.c: In function `chap_calc_digest_md5':
chap.c:303: error: `MD5_CTX' undeclared (first use in this function)
chap.c:303: error: (Each undeclared identifier is reported only once
chap.c:303: error: for each function it appears in.)
chap.c:303: error: syntax error before "ctx"
chap.c:305: warning: implicit declaration of function `MD5_Init'
chap.c:305: error: `ctx' undeclared (first use in this function)
chap.c:306: warning: implicit declaration of function `MD5_Update'
chap.c:309: warning: implicit declaration of function `MD5_Final'
chap.c: In function `chap_calc_digest_sha1':
chap.c:314: error: `SHA_CTX' undeclared (first use in this function)
chap.c:314: error: syntax error before "ctx"
chap.c:316: warning: implicit declaration of function `SHA1_Init'
chap.c:316: error: `ctx' undeclared (first use in this function)
chap.c:317: warning: implicit declaration of function `SHA1_Update'
chap.c:320: warning: implicit declaration of function `SHA1_Final'
make[1]: *** [chap.o] Error 1
make[1]: Leaving directory `/usr/src/iscsitarget-0.4.13/usr'
make: *** [progs] Error 2

编译的时候老是这个问题啊。。有没有编译成功过的朋友发表一下。帮忙指点一二。。
发表于 2006-4-2 20:59:52 | 显示全部楼层
chap.c:20:25: openssl/sha.h: No such file or directory
chap.c:21:25: openssl/md5.h: No such file or directory

你的openssl不支持sha和md5? 报告说找不到这两个东西的头文件?
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-30 13:14 , Processed in 0.037982 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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