打印
[i.MX]

ubuntu12.04(32位)编译ltib出错

[复制链接]
892|4
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
ab13402364|  楼主 | 2015-10-17 19:38 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在执行./ltib后,出现error,进入/ltib/ltib/host_config.log 下查看:
.....................
Processing: wget
==================
Build path taken because: no prebuilt rpm,

rpmbuild --dbpath ///opt/freescale/ltib/var/lib/rpm --target i686 --define '_unpackaged_files_terminate_build 0' --define '_target_cpu i686' --define '__strip strip' --define '_topdir /opt/freescale/ltib/usr/src/rpm' --define '_prefix /opt/freescale/ltib/usr' --define '_tmppath /home/zhouh/work/ltib/ltib/tmp' --define '_rpmdir /opt/freescale/ltib/usr/src/rpm/RPMS'  --define '_mandir /opt/freescale/ltib/usr/share/man' --define '_sysconfdir /opt/freescale/ltib/etc' --define '_localstatedir /var' -bb --clean --rmsource  /home/zhouh/work/ltib/ltib/dist/lfs-5.1/wget/wget.spec
Building target platforms: i686
Building for target i686
......................................
....................................
....................................
gen_sslfunc.o: In function `init_ssl':
gen_sslfunc.c:(.text+0x351): undefined reference to `SSLv2_client_method'
collect2: ld returned 1 exit status
make[1]: *** [wget] Error 1
make[1]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/wget-1.9.1/src'
make: *** [src] Error 2
error: Bad exit status from /home/zhouh/work/ltib/ltib/tmp/rpm-tmp.93719 (%build)


RPM build errors:
    Bad exit status from /home/zhouh/work/ltib/ltib/tmp/rpm-tmp.93719 (%build)
Build time for wget: 13 seconds

Failed building wget
Died at ./ltib line 1392.
traceback:
main::build_host_rpms:1392
  main::host_checks:1447
   main:554


Started: Sat Oct 17 19:34:40 2015
Ended:   Sat Oct 17 19:34:54 2015
Elapsed: 14 seconds

These packages failed to build:
wget

Build Failed

相关帖子

沙发
cowboy2014| | 2015-10-17 21:08 | 只看该作者
我也不是太清楚怎么会报这样的错,帮楼主顶了

使用特权

评论回复
板凳
ab13402364|  楼主 | 2015-10-18 00:36 | 只看该作者
再顶顶,希望有大神指点下
编译时出现下面错误:
gcc -O2 -Wall -Wno-implicit -o wget cmpt.o connect.o convert.o cookies.o ftp.o ftp-basic.o ftp-ls.o ftp-opie.o hash.o headers.o host.o html-parse.o html-url.o http.o init.o log.o main.o gen-md5.o netrc.o progress.o rbuf.o recur.o res.o retr.o safe-ctype.o snprintf.o gen_sslfunc.o url.o utils.o version.o  -lssl -lcrypto -ldl
gen_sslfunc.o: In function `init_ssl':
gen_sslfunc.c:(.text+0x351): undefined reference to `SSLv2_client_method'
collect2: ld returned 1 exit status
make: *** [wget] 错误 1
但是包含了-lssl库的啊,为什么会报未定义呢?

使用特权

评论回复
地板
mini1986| | 2015-10-19 10:41 | 只看该作者
试着指定下库的路径试试......

使用特权

评论回复
5
ab13402364|  楼主 | 2015-10-19 13:55 | 只看该作者
已经好了,虽然最终编译还是没通过,但是已经的到想要的。解决方法:在ltib脚本中,屏蔽了wget包的处理

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

3

主题

27

帖子

0

粉丝