UBUNTU14.04编译Ltib出错

本文记录了在Ubuntu 14.04环境下编译M4遇到的错误及解决方案,包括编译错误信息、所需安装的软件包及正确的编译步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

系统:UBUNTU14.04
内核:3.13.0

受不了了,编了好多遍,总是出错,官方支持出来看一下什么问题?
./stdio.h:477:1: error: 'gets' undeclared here (not in a function)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
^
make[3]: *** [clean-temp.o] Error 1
make[3]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/m4-1.4.16/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/m4-1.4.16/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/m4-1.4.16'
make: *** [all] Error 2
error: Bad exit status from /home/fatcat/ltib/ltib/tmp/rpm-tmp.47302 (%build)


RPM build errors:
    Bad exit status from /home/fatcat/ltib/ltib/tmp/rpm-tmp.47302 (%build)
Build time for m4: 30 seconds

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


Started: Tue Dec 30 16:07:05 2014
Ended:   Tue Dec 30 16:12:22 2014
Elapsed: 317 seconds

These packages failed to build:
m4

Build Failed


我这边没有在Ubuntu14上编译过,不过我们英文论坛上有人编译过,有步骤分享,发给你看一下。
https://community.freescale.com/docs/DOC-100725
记得Installed the needed packages to the Linux Host PC
这些packages一定要都安装的。


将附件解压到ltib目录下,执行:git apply 0001_make_L3.0.35_4.1.0_compile_on_Ubuntu_14.04_64bit_OS.patch,然后接着编译就好了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值