当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 3 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 跨平台安装openssl时报错
帖子发表于 : 2015-07-26 20:38 

注册: 2015-07-26 19:45
帖子: 3
系统: ubuntu
送出感谢: 0 次
接收感谢: 0 次
1、工具包 toolchain-mips_gcc-4.3.3+cs_uClibc-0.9.30.1
2、编译过程:
cd /tmp
tar -xf openssl-1.0.1p.tar.gz
cd openssl-1.0.1p
export TOOLCHAIN=/opt/cross/mipsel/7620/staging_dir/toolchain-mips_gcc-4.3.3+cs_uClibc-0.9.30.1 指定TOOLCHAIN工具链
export PATH="$TOOLCHAIN/usr:$PATH" 将工具链加入环境变量
export STAGING_DIR=/opt/cross/mipsel/7620/staging_dir 指定STAGING_DIR目录
export CC=$TOOLCHAIN/usr/bin/mips-openwrt-linux-gcc 指定编译时要用到的编译器
export RANLIB=$TOOLCHAIN/usr/bin/mips-openwrt-linux-uclibc-ranlib 更新静态库符号索引表
export CPP=$TOOLCHAIN/usr/bin/mips-openwrt-linux-cpp
export GCC=$TOOLCHAIN/usr/bin/mips-openwrt-linux-gcc
export CXX=$TOOLCHAIN/usr/bin/mips-openwrt-linux-g++
./Configure --prefix=$TOOLCHAIN/usr linux-generic32 shared
Make 编译


make后出现错误

make[3]: Entering directory '/opt/cross/mipsel/openssl-1.0.1p'
make[4]: Entering directory '/opt/cross/mipsel/openssl-1.0.1p'
/opt/cross/mipsel/7620/staging_dir/toolchain-mips_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.3.3/../../../../mips-openwrt-linux-uclibc/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
Makefile.shared:169: recipe for target 'link_a.gnu' failed
make[4]: *** [link_a.gnu] Error 1
make[4]: Leaving directory '/opt/cross/mipsel/openssl-1.0.1p'
Makefile:352: recipe for target 'do_linux-shared' failed
make[3]: *** [do_linux-shared] Error 2
make[3]: Leaving directory '/opt/cross/mipsel/openssl-1.0.1p'
Makefile:305: recipe for target 'libcrypto.so.1.0.0' failed
make[2]: *** [libcrypto.so.1.0.0] Error 2
make[2]: Leaving directory '/opt/cross/mipsel/openssl-1.0.1p'
Makefile:109: recipe for target 'shared' failed
make[1]: *** [shared] Error 2
make[1]: Leaving directory '/opt/cross/mipsel/openssl-1.0.1p/crypto'
Makefile:282: recipe for target 'build_crypto' failed
make: *** [build_crypto] Error 1

是什么原因?


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 跨平台安装openssl时报错
帖子发表于 : 2015-07-26 21:52 
头像

注册: 2010-11-19 14:25
帖子: 866
地址: onetracy.com
系统: 乌班图
送出感谢: 17
接收感谢: 13
引用:
/opt/cross/mipsel/7620/staging_dir/toolchain-mips_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.3.3/../../../../mips-openwrt-linux-uclibc/bin/ld: cannot find -lgcc_s


_________________
我为什么对linux感兴趣?因为它神秘。
@raoxiaowen
程序猿的生存之道:我的个人网站
比印象笔记更好用的为知笔记
我的github
推荐一个科学上网的方式


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 跨平台安装openssl时报错
帖子发表于 : 2015-07-26 22:30 

注册: 2015-07-26 19:45
帖子: 3
系统: ubuntu
送出感谢: 0 次
接收感谢: 0 次
刚刚解决 :

安装前检查gcc所有组件都要更新 软件中心 GCC (GNU C 编译器) 全选 扩展组件


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 3 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:Bing [Bot] 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译