LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 993|回复: 4

CentOS5.2下make安装程序报错

[复制链接]
发表于 2009-2-19 00:52:49 | 显示全部楼层 |阅读模式
麻烦大家帮忙看一下,

[root@xserver vfcrack-v0.2]# make
gcc -Wall -O2 -funroll-loops   -c -o vfcrack.o vfcrack.c
vfcrack.c:40:25: error: openssl/sha.h: No such file or directory
vfcrack.c:41:25: error: openssl/aes.h: No such file or directory
vfcrack.c:42:26: error: openssl/hmac.h: No such file or directory
vfcrack.c:43:25: error: openssl/evp.h: No such file or directory
In file included from vfcrack.c:46:
common.h:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘hmacsha1_ctx’
common.h:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘aes_decrypt_key’
vfcrack.c:57: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘hmacsha1_ctx’
vfcrack.c: In function ‘apple_des3_ede_unwrap_key’:
vfcrack.c:92: error: ‘EVP_CIPHER_CTX’ undeclared (first use in this function)
vfcrack.c:92: error: (Each undeclared identifier is reported only once
vfcrack.c:92: error: for each function it appears in.)
vfcrack.c:92: error: expected ‘;’ before ‘ctx’
vfcrack.c:97: warning: implicit declaration of function ‘EVP_CIPHER_CTX_init’
vfcrack.c:97: error: ‘ctx’ undeclared (first use in this function)
vfcrack.c:103: warning: implicit declaration of function ‘EVP_DecryptInit_ex’
vfcrack.c:103: warning: implicit declaration of function ‘EVP_des_ede3_cbc’
vfcrack.c:105: warning: implicit declaration of function ‘EVP_DecryptUpdate’
vfcrack.c:107: warning: implicit declaration of function ‘EVP_DecryptFinal_ex’
vfcrack.c:110: warning: implicit declaration of function ‘EVP_CIPHER_CTX_cleanup’
vfcrack.c: In function ‘hmac_sha1_vector’:
vfcrack.c:176: error: ‘SHA_CTX’ undeclared (first use in this function)
vfcrack.c:176: error: expected ‘;’ before ‘context’
vfcrack.c:203: warning: implicit declaration of function ‘SHA1_Init’
vfcrack.c:203: error: ‘context’ undeclared (first use in this function)
vfcrack.c:204: warning: implicit declaration of function ‘SHA1_Update’
vfcrack.c:215: warning: implicit declaration of function ‘SHA1_Final’
vfcrack.c: In function ‘pbkdf2_sha1_f’:
vfcrack.c:253: error: ‘SHA_DIGEST_LENGTH’ undeclared (first use in this function)
vfcrack.c:259: warning: initialization makes integer from pointer without a cast
vfcrack.c:268: warning: passing argument 6 of ‘hmac_sha1_vector’ from incompatible pointer type
vfcrack.c:269: warning: passing argument 3 of ‘memcpy’ makes integer from pointer without a cast
vfcrack.c:274: warning: passing argument 6 of ‘hmac_sha1_vector’ from incompatible pointer type
vfcrack.c:275: warning: passing argument 3 of ‘memcpy’ makes integer from pointer without a cast
vfcrack.c:276: warning: comparison between pointer and integer
vfcrack.c:277: error: invalid operands to binary ^
vfcrack.c:277: error: incompatible types in assignment
vfcrack.c:277: warning: statement with no effect
vfcrack.c:253: warning: unused variable ‘tmp2’
vfcrack.c:253: warning: unused variable ‘tmp’
vfcrack.c: In function ‘pbkdf2_sha1’:
vfcrack.c:290: error: ‘SHA_DIGEST_LENGTH’ undeclared (first use in this function)
vfcrack.c:295: warning: passing argument 7 of ‘pbkdf2_sha1_f’ from incompatible pointer type
vfcrack.c:296: warning: comparison between pointer and integer
vfcrack.c:296: warning: pointer/integer type mismatch in conditional expression
vfcrack.c:296: warning: assignment makes integer from pointer without a cast
vfcrack.c:290: warning: unused variable ‘digest_’
vfcrack.c: In function ‘compute_iv’:
vfcrack.c:326: warning: implicit declaration of function ‘HMAC_Init_ex’
vfcrack.c:326: error: ‘hmacsha1_ctx’ undeclared (first use in this function)
vfcrack.c:327: warning: implicit declaration of function ‘HMAC_Update’
vfcrack.c:328: warning: implicit declaration of function ‘HMAC_Final’
vfcrack.c: In function ‘decrypt_chunk’:
vfcrack.c:337: warning: implicit declaration of function ‘AES_cbc_encrypt’
vfcrack.c:337: error: ‘aes_decrypt_key’ undeclared (first use in this function)
vfcrack.c:337: error: ‘AES_DECRYPT’ undeclared (first use in this function)
vfcrack.c: In function ‘dictfile_v2_found’:
vfcrack.c:343: error: ‘EVP_CIPHER_CTX’ undeclared (first use in this function)
vfcrack.c:343: warning: statement with no effect
vfcrack.c:343: error: expected ‘;’ before ‘ctx’
vfcrack.c:346: error: ‘AES_KEY’ undeclared (first use in this function)
vfcrack.c:346: warning: statement with no effect
vfcrack.c:346: error: expected ‘;’ before ‘aes_decrypt_key’
vfcrack.c:350: error: ‘ctx’ undeclared (first use in this function)
vfcrack.c:365: warning: implicit declaration of function ‘HMAC_CTX_init’
vfcrack.c:365: error: ‘hmacsha1_ctx’ undeclared (first use in this function)
vfcrack.c:366: warning: implicit declaration of function ‘EVP_sha1’
vfcrack.c:367: warning: implicit declaration of function ‘AES_set_decrypt_key’
vfcrack.c:367: error: ‘aes_decrypt_key’ undeclared (first use in this function)
make: *** [vfcrack.o] Error 1
发表于 2009-2-19 09:10:50 | 显示全部楼层
没有安装openssl?装上试试。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-2-19 22:27:34 | 显示全部楼层
我用yum search openssl查过了,openssl已经在里面了,可是make就跑不下去~
回复 支持 反对

使用道具 举报

发表于 2009-2-19 22:32:45 | 显示全部楼层
安装openssl-devel
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-2-20 10:13:39 | 显示全部楼层
谢谢2位的回复,安装openssl-devel后问题解决了,
想知道怎么判断出是缺少这个包的?
回复 支持 反对

使用道具 举报

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

本版积分规则

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