-
Notifications
You must be signed in to change notification settings - Fork 33
centos 7.9 64bit 编译2.7.15报错 #3
Description
Python/decrypt_source_file.c: 在函数‘dopen’中:
Python/decrypt_source_file.c:41:9: 警告:passing argument 1 of ‘decrypt_open’ discards ‘const’ qualifier from pointer target type [默认启用]
return decrypt_open(pathname);
^
Python/decrypt_source_file.c:6:12: 附注:需要类型‘char *’,但实参的类型为‘const char *’
static int decrypt_open (char *filename);
^
Python/decrypt_source_file.c: 在函数‘decrypt_open’中:
Python/decrypt_source_file.c:90:9: 错误:只允许在 C99 模式下使用‘for’循环初始化声明
for (int i = 63; i >= 0; i--) {
^
Python/decrypt_source_file.c:90:9: 附注:使用 -std=c99 或 -std=gnu99 来编译您的代码
Python/decrypt_source_file.c: 在函数‘str2hex’中:
Python/decrypt_source_file.c:114:9: 警告:对指针赋值时目标与指针符号不一致 [-Wpointer-sign]
ret = (char *) malloc (str_len/2);
^
Python/decrypt_source_file.c: 在函数‘decrypt_buf’中:
Python/decrypt_source_file.c:126:5: 警告:传递‘AES_cbc_encrypt’的第 1 个参数给指针时,目标与指针符号不一致 [-Wpointer-sign]
AES_cbc_encrypt (raw_buf, *encrpy_buf, len, &aes, iv, AES_DECRYPT);
^
In file included from Include/decrypt_source_file.h:6:0,
from Python/decrypt_source_file.c:1:
/usr/include/openssl/aes.h:107:6: 附注:需要类型‘const unsigned char *’,但实参的类型为‘char *’
void AES_cbc_encrypt(const unsigned char *in, unsigned char *out,
^
Python/decrypt_source_file.c:126:5: 警告:传递‘AES_cbc_encrypt’的第 2 个参数给指针时,目标与指针符号不一致 [-Wpointer-sign]
AES_cbc_encrypt (raw_buf, *encrpy_buf, len, &aes, iv, AES_DECRYPT);
^
In file included from Include/decrypt_source_file.h:6:0,
from Python/decrypt_source_file.c:1:
/usr/include/openssl/aes.h:107:6: 附注:需要类型‘unsigned char *’,但实参的类型为‘char *’
void AES_cbc_encrypt(const unsigned char *in, unsigned char *out,
^
Python/decrypt_source_file.c: 在文件作用域:
Python/decrypt_source_file.c:4:13: 警告:‘encrypt_buf’声明为‘static’却从未定义过 [-Wunused-function]
static void encrypt_buf (char *raw_buf, char **encrpy_buf, int len);
^
make: *** [Python/decrypt_source_file.o] 错误 1