Linux makeerrors-ec#asn1.o-ec#asn1.c:201:error:expected expression before';X9_62_五项式';

Linux makeerrors-ec#asn1.o-ec#asn1.c:201:error:expected expression before';X9_62_五项式';,linux,redhat,openssl,Linux,Redhat,Openssl,我正在尝试在Red Hat上安装单独版本的Openssl 1.0.1k。我先在Centos上试过,没有任何问题 在出现此错误之前,我执行了以下操作: yum install -y libxml2 libxml2-devel libxslt libxslt-devel #not sure if this actually helped with my errors. ./config --prefix=/data/home/jboss/openssl_1.0.1/usr \

我正在尝试在Red Hat上安装单独版本的Openssl 1.0.1k。我先在Centos上试过,没有任何问题

在出现此错误之前,我执行了以下操作:

yum install -y libxml2 libxml2-devel libxslt libxslt-devel #not sure if this actually helped with my errors. ./config --prefix=/data/home/jboss/openssl_1.0.1/usr \ --openssldir=/data/home/jboss/openssl_1.0.1/etc/ssl # missing include files. vi ~/.bash_profile C_INCLUDE_PATH=/usr/lib/bcc/include/ CPLUS_INCLUDE_PATH=/usr/lib/bcc/include/ export C_INCLUDE_PATH export CPLUS_INCLUDE_PATH LANG=en_US # make was giving accented a special characters. This fixed. I would set it back once I fixed to en_US.UTF-8. vi /usr/lib/bcc/include/asm/limits.h define INT_MAX 2147483647 .... more on top make[2]: Entering directory `/data01/home/s617741/openssl-1.0.1k/crypto/bn' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/data01/home/s617741/openssl-1.0.1k/crypto/bn' making all in crypto/ec... make[2]: Entering directory `/data01/home/s617741/openssl-1.0.1k/crypto/ec' gcc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -c -o ec_asn1.o ec_asn1.c ec_asn1.c:201: warning: implicit declaration of function 'offsetof' ec_asn1.c:201: error: expected expression before 'X9_62_PENTANOMIAL' ec_asn1.c:201: error: initializer element is not constant ec_asn1.c:201: error: (near initialization for 'X9_62_PENTANOMIAL_seq_tt[0].offset') ec_asn1.c:202: error: expected expression before 'X9_62_PENTANOMIAL' ec_asn1.c:202: error: initializer element is not constant ec_asn1.c:202: error: (near initialization for 'X9_62_PENTANOMIAL_seq_tt[1].offset') ec_asn1.c:203: error: expected expression before 'X9_62_PENTANOMIAL' ec_asn1.c:203: error: initializer element is not constant ec_asn1.c:203: error: (near initialization for 'X9_62_PENTANOMIAL_seq_tt[2].offset') ... continues with similar errors. yum install-y libxml2 libxml2 devel libxslt libxslt devel#不确定这是否真的有助于解决我的错误。 ./config--prefix=/data/home/jboss/openssl_1.0.1/usr\ --openssldir=/data/home/jboss/openssl_1.0.1/etc/ssl #缺少包含文件。 vi~/.bash_简介 C_INCLUDE_PATH=/usr/lib/bcc/INCLUDE/ CPLUS_INCLUDE_PATH=/usr/lib/bcc/INCLUDE/ 导出C_INCLUDE_路径 导出CPLUS\u INCLUDE\u路径 LANG=en_US#make给了口音一个特殊的字符。这是固定的。一旦我定到en_US.UTF-8,我就会把它放回去。 vi/usr/lib/bcc/include/asm/limits.h 定义整数最大值2147483647 在所有这些之后,我得到了以下信息:

yum install -y libxml2 libxml2-devel libxslt libxslt-devel #not sure if this actually helped with my errors. ./config --prefix=/data/home/jboss/openssl_1.0.1/usr \ --openssldir=/data/home/jboss/openssl_1.0.1/etc/ssl # missing include files. vi ~/.bash_profile C_INCLUDE_PATH=/usr/lib/bcc/include/ CPLUS_INCLUDE_PATH=/usr/lib/bcc/include/ export C_INCLUDE_PATH export CPLUS_INCLUDE_PATH LANG=en_US # make was giving accented a special characters. This fixed. I would set it back once I fixed to en_US.UTF-8. vi /usr/lib/bcc/include/asm/limits.h define INT_MAX 2147483647 .... more on top make[2]: Entering directory `/data01/home/s617741/openssl-1.0.1k/crypto/bn' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/data01/home/s617741/openssl-1.0.1k/crypto/bn' making all in crypto/ec... make[2]: Entering directory `/data01/home/s617741/openssl-1.0.1k/crypto/ec' gcc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -c -o ec_asn1.o ec_asn1.c ec_asn1.c:201: warning: implicit declaration of function 'offsetof' ec_asn1.c:201: error: expected expression before 'X9_62_PENTANOMIAL' ec_asn1.c:201: error: initializer element is not constant ec_asn1.c:201: error: (near initialization for 'X9_62_PENTANOMIAL_seq_tt[0].offset') ec_asn1.c:202: error: expected expression before 'X9_62_PENTANOMIAL' ec_asn1.c:202: error: initializer element is not constant ec_asn1.c:202: error: (near initialization for 'X9_62_PENTANOMIAL_seq_tt[1].offset') ec_asn1.c:203: error: expected expression before 'X9_62_PENTANOMIAL' ec_asn1.c:203: error: initializer element is not constant ec_asn1.c:203: error: (near initialization for 'X9_62_PENTANOMIAL_seq_tt[2].offset') ... continues with similar errors. .... 上面有更多 make[2]:输入目录“/data01/home/s617741/openssl-1.0.1k/crypto/bn” make[2]:对“所有人”都不做任何事情。 make[2]:离开目录“/data01/home/s617741/openssl-1.0.1k/crypto/bn” 在加密/电子商务中制作所有。。。 make[2]:输入目录“/data01/home/s617741/openssl-1.0.1k/crypto/ec” gcc-I-我…/-I../modes-I../asn1-I../evp-I..//包括-DOPENSSL_线程-D_可重入-DDSO_DLFCN-DHAVE_DLFCN_H-Wa,--noexecstack-m64-DL_ENDIAN-DTERMIO-O3-Wall-DOPENSSL_IA32_SSE2-DOPENSSL_BN ASM_MONT-DOPENSSL_BN ASM_GF2m-DSHA1_ASM-DSHA256_ASM-DSHA512_ASM-DMD5_ASM-DAES_ASM-DVPAES_ASM-DBSAES_ASM-DWHIRLPOOL ASM-dgu ASM-dhash_ASM-c-ec asn1 ec_asn1.c:201:警告:函数“offsetof”的隐式声明 ec_asn1.c:201:错误:“X9_62_五项式”之前的预期表达式 ec_asn1.c:201:错误:初始值设定项元素不是常量 ec_asn1.c:201:错误:(接近'X9_62_五项式'u seq_tt[0].偏移量'的初始化) ec_asn1.c:202:错误:“X9_62_五项式”之前的预期表达式 ec_asn1.c:202:错误:初始值设定项元素不是常量 ec_asn1.c:202:错误:(接近'X9_62_五项式'u seq_tt[1].偏移量'的初始化) ec_asn1.c:203:错误:“X9_62_五项式”之前的预期表达式 ec_asn1.c:203:错误:初始值设定项元素不是常量 ec_asn1.c:203:错误:(接近'X9_62_五项式'u seq_tt[2].偏移量'的初始化) ... 继续出现类似的错误。
任何见解都会有所帮助

中定义了
的偏移量,
中定义了
,并由
ec\u asn1.c
rand\u egd.c
使用

但是,
ec_asn1.c
rand_egd.c
不包括

您应该打开
ec_asn1.c
rand_egd.c
,并添加
#include

----- 针对OpenSSL针对此问题提交了一个错误:。您可以在其中检查状态。使用用户名=guest,密码=guest登录

----- 以下是我正在使用的机器的定义,以备您需要:

#if defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 5 || __GNUC__ > 3)
#ifndef __offsetof      /* Deprecated: for source compatibility only */
#define __offsetof(type, field) __builtin_offsetof(type, field)
#endif
#define offsetof(type, field) __builtin_offsetof(type, field)
#else /* ! (gcc >= 3.5) */
#ifndef __offsetof      /* Deprecated: for source compatibility only */
#define __offsetof(type, field) ((size_t)(&((type *)0)->field))
#endif
#define offsetof(type, field) ((size_t)(&((type *)0)->field))
#endif /* (gcc >= 3.5) */