openssl-1.0.1e for arm

来源:互联网 发布:写轮眼美瞳软件 编辑:程序博客网 时间:2024/06/16 09:16

1.官网下载最新版本openssl-1.0.1e

2.

./config no-asmshared--prefix=

说明:no-asm  在交叉编译过程中不使用汇编代码代码加速编译过程。

shared  生成动态链接库。

  --prefix      指定生成lib include bin目录的路径,不修改此项则默认为OPENSSLDIR目录。

3.修改Makefile

CC= arm-linux-gcc
#CC= gcc
CFLAG= -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall
DEPFLAG= -DOPENSSL_NO_EC_NISTP_64_GCC_128 -DOPENSSL_NO_GMP -DOPENSSL_NO_JPAKE -DOPENSSL_NO_MD2 -DOPENSSL_NO_RC5 -DOPENSSL_NO_RFC3779 -DOPENSSL_NO_SCTP -DOPENSSL_NO_STORE
PEX_LIBS=
EX_LIBS= -ldl
EXE_EXT=
ARFLAGS=
AR= arm-linux-ar $(ARFLAGS) r
#AR= ar $(ARFLAGS) r
RANLIB= arm-linux-ranlib
#RANLIB= /usr/bin/ranlib
NM= arm-linux-nm
#NM= nm
PERL= /usr/bin/perl
TAR= tar
TARFLAGS= --no-recursion --record-size=10240
MAKEDEPPROG= gcc
LIBDIR=lib

 

 

4.source

5.make&& makeinstall

 

引用库的顺序为:-lssl -lcrypto




cms.pod around line 457: Expected text after =item, not a number 的解决方法

如果在linux下安装openssl,执行config和make之后,在执行make install时如果出现下面的错误

cms.pod around line 457: Expected text after =item, not a number 

cms.pod around line 461: Expected text after =item, not a number 
cms.pod around line 465: Expected text after =item, not a number 
cms.pod around line 470: Expected text after =item, not a number 
cms.pod around line 474: Expected text after =item, not a number 

POD document had syntax errors at /usr/bin/pod2man line 69. 

则在root权限下,执行rm -f /usr/bin/pod2man  然后重新make install


0 0
原创粉丝点击