openssl交叉编译的问题

nonths 2012-09-20 07:52:19
我在linux上首先建立了arm-linux交叉编译环境,然后用交叉编译openssl,但是一直编译不成功,出现下面的问题,高人给指点一下吧。

make[1]: Entering directory `/home/abc/openssl-0.9.8b/apps'
rm -f openssl
shlib_target=; if [ -n "libcrypto.so.0.9.8 libssl.so.0.9.8" ]; then \
shlib_target="linux-shared"; \
fi; \
if [ "${shlib_target}" = "darwin-shared" ] ; then \
LIBRARIES="../libssl.a ../libcrypto.a" ; \
else \
LIBRARIES="-L.. -lssl -L.. -lcrypto" ; \
fi; \
make -f ../Makefile.shared -e \
APPNAME=openssl OBJECTS="openssl.o verify.o asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o dsa.o dsaparam.o ec.o ecparam.o x509.o genrsa.o gendsa.o s_server.o s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o spkac.o smime.o rand.o engine.o ocsp.o prime.o" \
LIBDEPS=" $LIBRARIES -ldl" \
link_app.${shlib_target}
make[2]: Entering directory `/home/abc/openssl-0.9.8b/apps'
/usr/local/arm-2007q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.1/../../../../arm-none-linux-gnueabi/bin/ld: dhparam.o: Relocations in generic ELF (EM: 3)
dhparam.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [link_app.gnu] Error 1
make[2]: Leaving directory `/home/abc/openssl-0.9.8b/apps'
make[1]: *** [openssl] Error 2
make[1]: Leaving directory `/home/abc/openssl-0.9.8b/apps'
make: *** [build_apps] Error 1
...全文
421 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
nonths 2012-09-20
  • 打赏
  • 举报
回复
难道是交叉编译环境与openssl的版本不兼容?我用的是openssl0.9.8b

2,161

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 UNIX文化
社区管理员
  • UNIX文化社区
  • 文天大人
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧