本帖最后由 晓宇2010 于 2014-8-16 09:39 编辑
今天在ubuntu 13.04 上编译ltib出现以下问题:
前期准备已经ok了,开始执行./ltib:
.......
./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 /opt/freescale/ltib/tmp/rpm-tmp.54808 (%build)
RPM build errors:
Bad exit status from /opt/freescale/ltib/tmp/rpm-tmp.54808 (%build)
Build time for m4: 41 seconds
Failed building m4
Died at ./ltib line 1392.
......
编译m4出错,参考网友的做法
进入m4目录,把_GL_WARN_ON_USE (gets, "gets is a securityhole - use fgets instead"); 注释掉,改为下面的条件编译语句 #if defined(__GLIBC__) &&!defined(__UCLIBC__) &&!__GLIBC_PREREQ(2, 16)
_GL_WARN_ON_USE (gets, "gets is a security hole -use fgets instead");
#endif
在m4目录里面执行make可以通过了,但再去执行ltib还是过不了,提示
These packages failed to build:
m4
Build Failed
请问怎么办呢?(注:BSP是i.MX6 L3.0.35_4.1.0_130816_source)
|