Openssl本地客户端端口在编译时出错 [英] Openssl native client port gives error on building

本文介绍了Openssl本地客户端端口在编译时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究一个简单的氯化钠NaCl扩展,我想使用openssl库来加密数据。我检查了 wiki页面中所述的naclports的pepper_40分支,并尝试构建openssl的端口,但会遇到以下错误。

  kunal @ Baweja:〜/ Downloads / naclports / src $ ./make_all.sh openssl 
+ set -e
+ TARGETS = openssl
+ TARGETS = openssl
+ BUILD_FLAGS = - 忽略禁用
+ export TOOLCHAIN
+ export NACL_ARCH
+ export BUILD_FLAGS
+ NACL_ARCH = x86_64
+ TOOLCHAIN = glibc
+ make openssl
bin / naclports install openssl --ignore-disabled
已经安装了'openssl'[x86_64 / glibc / release]
+ TOOLCHAIN = newlib
+ make openssl
bin / naclports install openssl --ignore-disabled
Building 'glibc-compat'[x86_64 / newlib / release]
naclports:构建glibc-compat:失败。
make:*** [openssl]错误1

准确的可能错误是什么和任何方式呢?

解决方案

感谢@sbc在上述问题的评论中告诉我关于VERBOSE = 1选项。我发现从$ NACL_SDK_ROOT / tools / sel_ldr_x86_32 访问时缺少libstdc ++。so.6文件。这是因为我的机器是x86_64类型,即64位。因此,我们需要使用命令分别为32位机器安装 libstdc ++ > sudo apt-get install lib32stdc ++ 6

缺少 libstdc ++。so.6 文件的原始解决方案是此处


I am working on a simple chrome NaCl extension where I want to use the openssl library for encryption of data. I checked out the pepper_40 branch of naclports as described on the wiki page and tried to build the port for openssl but it is encountered with the following error.

kunal@Baweja:~/Downloads/naclports/src$ ./make_all.sh openssl
+ set -e
+ TARGETS=openssl
+ TARGETS=openssl
+ BUILD_FLAGS=--ignore-disabled
+ export TOOLCHAIN
+ export NACL_ARCH
+ export BUILD_FLAGS
+ NACL_ARCH=x86_64
+ TOOLCHAIN=glibc
+ make openssl
bin/naclports install openssl --ignore-disabled
Already installed 'openssl' [x86_64/glibc/release] 
+ TOOLCHAIN=newlib
+ make openssl
bin/naclports install openssl --ignore-disabled
Building 'glibc-compat' [x86_64/newlib/release] 
naclports: Building glibc-compat: failed.
make: *** [openssl] Error 1

What could be the possible error exactly and any ways around that ?

解决方案

Thanks to @sbc for telling me about VERBOSE=1 option in the comment on the above question. I identified that the libstdc++.so.6 file was missing while accessing from $NACL_SDK_ROOT/tools/sel_ldr_x86_32. This is so because my machine is of x86_64 type i.e. 64 bit. Hence we need to install libstdc++ for 32 bit machines separatly by using the command sudo apt-get install lib32stdc++6

The original solution to missing libstdc++.so.6 file is given here

这篇关于Openssl本地客户端端口在编译时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆