【问题】
折腾:
期间,
手动去把:
D:\tmp\tmp_dev_root\cgwin\home\CLi\develop\buildroot\buildroot-2013.05\package\m4\m4-1.4.16-no-gets.patch
先改名为:
D:\tmp\tmp_dev_root\cgwin\home\CLi\develop\buildroot\buildroot-2013.05\package\m4\m4-1.4.16-no-gets-and-missing-binary-operator.patch
并且内容从:
Since the 2.16 release of the glibc, 'gets' is not any more defined in the gnulib. No m4 version synchronized with gnulib since [1] has been released yet. This patch avoids the following error occurs when building m4 <=1.4.16 on host using a glibc >=2.16: make[4]: Entering directory `/opt/buildroot/output/build/host-m4-1.4.16/lib' /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT gl_avltree_oset.o -MD -MP -MF .deps/gl_avltree_oset.Tpo -c -o gl_avltree_oset.o gl_avltree_oset.c /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT c-ctype.o -MD -MP -MF .deps/c-ctype.Tpo -c -o c-ctype.o c-ctype.c /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT c-stack.o -MD -MP -MF .deps/c-stack.Tpo -c -o c-stack.o c-stack.c /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT clean-temp.o -MD -MP -MF .deps/clean-temp.Tpo -c -o clean-temp.o clean-temp.c mv -f .deps/c-ctype.Tpo .deps/c-ctype.Po /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT close-hook.o -MD -MP -MF .deps/close-hook.Tpo -c -o close-hook.o close-hook.c In file included from clean-temp.h:22:0, from clean-temp.c:23: ./stdio.h:477:20: error 'gets' undeclared here (not in a function) make[4]: *** [clean-temp.o] Error 1 References: [1] http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=66712c23388e93e5c518ebc8515140fa0c807348 [2] http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-devel/m4/files/m4-1.4.16-no-gets.patch?diff_format=h&revision=1.1&view=markup Signed-off-by: Samuel Martin <[email protected]> --- diff -purN host-m4-1.4.16.orig/lib/stdio.in.h host-m4-1.4.16/lib/stdio.in.h --- host-m4-1.4.16.orig/lib/stdio.in.h 2012-07-21 19:11:40.196541826 +0200 +++ host-m4-1.4.16/lib/stdio.in.h 2012-07-21 20:46:05.405850751 +0200 @@ -162,7 +162,9 @@ _GL_WARN_ON_USE (fflush, "fflush is not so any use of gets warrants an unconditional warning. Assume it is always declared, since it is required by C89. */ #undef gets +#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16) _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +#endif #if @GNULIB_FOPEN@ # if @REPLACE_FOPEN@
改为:
Since the 2.16 release of the glibc, 'gets' is not any more defined in the gnulib. No m4 version synchronized with gnulib since [1] has been released yet. This patch avoids the following error occurs when building m4 <=1.4.16 on host using a glibc >=2.16: make[4]: Entering directory `/opt/buildroot/output/build/host-m4-1.4.16/lib' /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT gl_avltree_oset.o -MD -MP -MF .deps/gl_avltree_oset.Tpo -c -o gl_avltree_oset.o gl_avltree_oset.c /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT c-ctype.o -MD -MP -MF .deps/c-ctype.Tpo -c -o c-ctype.o c-ctype.c /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT c-stack.o -MD -MP -MF .deps/c-stack.Tpo -c -o c-stack.o c-stack.c /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT clean-temp.o -MD -MP -MF .deps/clean-temp.Tpo -c -o clean-temp.o clean-temp.c mv -f .deps/c-ctype.Tpo .deps/c-ctype.Po /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT close-hook.o -MD -MP -MF .deps/close-hook.Tpo -c -o close-hook.o close-hook.c In file included from clean-temp.h:22:0, from clean-temp.c:23: ./stdio.h:477:20: error 'gets' undeclared here (not in a function) make[4]: *** [clean-temp.o] Error 1 References: [1] http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=66712c23388e93e5c518ebc8515140fa0c807348 [2] http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-devel/m4/files/m4-1.4.16-no-gets.patch?diff_format=h&revision=1.1&view=markup Signed-off-by: Samuel Martin <[email protected]> --- diff -purN host-m4-1.4.16.orig/lib/stdio.in.h host-m4-1.4.16/lib/stdio.in.h --- host-m4-1.4.16.orig/lib/stdio.in.h 2012-07-21 19:11:40.196541826 +0200 +++ host-m4-1.4.16/lib/stdio.in.h 2012-07-21 20:46:05.405850751 +0200 @@ -162,7 +162,9 @@ _GL_WARN_ON_USE (fflush, "fflush is not so any use of gets warrants an unconditional warning. Assume it is always declared, since it is required by C89. */ #undef gets +#if defined(__GLIBC__) && !defined(__UCLIBC__) +#if !((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 16)) _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +#endif #if @GNULIB_FOPEN@ # if @REPLACE_FOPEN@
然后去执行make,然后打补丁期间出错:
Applying m4-1.4.16-no-gets-and-missing-binary-operator.patch using patch: patching file lib/stdio.in.h patch: **** malformed patch at line 39: # if @REPLACE_FOPEN@ Patch failed! Please fix m4-1.4.16-no-gets-and-missing-binary-operator.patch! make: *** [/home/CLi/develop/buildroot/buildroot-2013.05/output/build/host-m4-1.4.16/.stamp_patched] Error 1
如图:
即:
patch: **** malformed patch at line 39: # if @REPLACE_FOPEN@ |
【解决过程】
1.此处,实际上,只是修改了一行,从:
+#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16)
改为:
+#if defined(__GLIBC__) && !defined(__UCLIBC__) +#if !((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 16))
而已,没有其他任何改动。结果竟然也能出错。
很是奇怪。
难道是patch文件的生成,也还有什么特殊的讲究?
2.此处选择,再改回之前的原先的patch内容:
Since the 2.16 release of the glibc, 'gets' is not any more defined in the gnulib. No m4 version synchronized with gnulib since [1] has been released yet. This patch avoids the following error occurs when building m4 <=1.4.16 on host using a glibc >=2.16: make[4]: Entering directory `/opt/buildroot/output/build/host-m4-1.4.16/lib' /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT gl_avltree_oset.o -MD -MP -MF .deps/gl_avltree_oset.Tpo -c -o gl_avltree_oset.o gl_avltree_oset.c /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT c-ctype.o -MD -MP -MF .deps/c-ctype.Tpo -c -o c-ctype.o c-ctype.c /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT c-stack.o -MD -MP -MF .deps/c-stack.Tpo -c -o c-stack.o c-stack.c /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT clean-temp.o -MD -MP -MF .deps/clean-temp.Tpo -c -o clean-temp.o clean-temp.c mv -f .deps/c-ctype.Tpo .deps/c-ctype.Po /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT close-hook.o -MD -MP -MF .deps/close-hook.Tpo -c -o close-hook.o close-hook.c In file included from clean-temp.h:22:0, from clean-temp.c:23: ./stdio.h:477:20: error 'gets' undeclared here (not in a function) make[4]: *** [clean-temp.o] Error 1 References: [1] http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=66712c23388e93e5c518ebc8515140fa0c807348 [2] http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-devel/m4/files/m4-1.4.16-no-gets.patch?diff_format=h&revision=1.1&view=markup Signed-off-by: Samuel Martin <[email protected]> --- diff -purN host-m4-1.4.16.orig/lib/stdio.in.h host-m4-1.4.16/lib/stdio.in.h --- host-m4-1.4.16.orig/lib/stdio.in.h 2012-07-21 19:11:40.196541826 +0200 +++ host-m4-1.4.16/lib/stdio.in.h 2012-07-21 20:46:05.405850751 +0200 @@ -162,7 +162,9 @@ _GL_WARN_ON_USE (fflush, "fflush is not so any use of gets warrants an unconditional warning. Assume it is always declared, since it is required by C89. */ #undef gets +#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16) _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +#endif #if @GNULIB_FOPEN@ # if @REPLACE_FOPEN@
然后make看看, 结果又出现“Reversed (or previously applied) patch detected! Assume -R? [n]”的问题:
【已解决】打patch补丁时出错:Reversed (or previously applied) patch detected! Assume -R? [n]
3.结果虽然可以继续执行了, 但是又出现“Patch failed! Please fix m4-1.4.16-no-fpending-redefinition.patch!”的错误:
【已解决】打补丁时出错:Patch failed! Please fix m4-1.4.16-no-fpending-redefinition.patch!
4.此处,最终,还是要把此处自己的改动,加上去的,所以,之前恢复到原先内容的做法,还是不能接受的。
还是要想办法,再去搞清楚,为何上面直接改patch文件,为何会出错,
以及,如何自己制作出对应的,可用的patch文件。
5.而通过上面的折腾,注意到一个事情:
diff生成的patch文件中,对应的@@和@@中间的数字,貌似指的是,所应用到的,所修改到的文件的行数。
比如:
diff -purN host-m4-1.4.16.orig/ChangeLog host-m4-1.4.16/ChangeLog --- host-m4-1.4.16.orig/ChangeLog 2011-03-02 02:39:40.000000000 +0800 +++ host-m4-1.4.16/ChangeLog 2013-08-28 13:25:09.128914000 +0800 @@ -1,3 +1,8 @@ +2013-08-28 Crifan Li <[email protected]> + + maint: merge Paul Eggert's bugfix for v1.7.11.7 to current version + * fpending: http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00030.html + 2011-03-01 Eric Blake [email protected]
如图:
感觉
-1,3 +1,8 |
就是,从第3行算起,修改到第8行。但是,也还是不能完全看懂patch中其他的地方的数字的含义。
算了,还是不猜了,还是去手动制作出对应的patch,看看生成的新patch,和之前的patch,有哪些不同。
同时,也注意到,之前的patch文件:
D:\tmp\tmp_dev_root\cgwin\home\CLi\develop\buildroot\buildroot-2013.05\package\m4\m4-1.4.16-no-gets-and-missing-binary-operator.patch
中,最开始部分,是包含注释说明的:
所以,此处再重新制作的时候,希望可以把这些注释也加上。
所以,再去:
【记录】尝试为了Buildroot编译期间涉及到的m4-1.4.16的fpending在Cygwin下的问题去制作diff和patch补丁包
重新制作:
带注释的,针对于
host-m4-1.4.16/lib/stdio.in.h
的改动的,新的patch文件。
6.然后就可以得到了:
m4-1.4.16-no-gets-and-missing-binary-operator.patch
内容为:
Since the 2.16 release of the glibc, 'gets' is not any more defined in the gnulib. No m4 version synchronized with gnulib since [1] has been released yet. This patch avoids the following error occurs when building m4 <=1.4.16 on host using a glibc >=2.16: make[4]: Entering directory `/opt/buildroot/output/build/host-m4-1.4.16/lib' /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT gl_avltree_oset.o -MD -MP -MF .deps/gl_avltree_oset.Tpo -c -o gl_avltree_oset.o gl_avltree_oset.c /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT c-ctype.o -MD -MP -MF .deps/c-ctype.Tpo -c -o c-ctype.o c-ctype.c /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT c-stack.o -MD -MP -MF .deps/c-stack.Tpo -c -o c-stack.o c-stack.c /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT clean-temp.o -MD -MP -MF .deps/clean-temp.Tpo -c -o clean-temp.o clean-temp.c mv -f .deps/c-ctype.Tpo .deps/c-ctype.Po /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT close-hook.o -MD -MP -MF .deps/close-hook.Tpo -c -o close-hook.o close-hook.c In file included from clean-temp.h:22:0, from clean-temp.c:23: ./stdio.h:477:20: error 'gets' undeclared here (not in a function) make[4]: *** [clean-temp.o] Error 1 References: [1] http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=66712c23388e93e5c518ebc8515140fa0c807348 [2] http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-devel/m4/files/m4-1.4.16-no-gets.patch?diff_format=h&revision=1.1&view=markup Signed-off-by: Samuel Martin <[email protected]> --- diff -purN -X - host-m4-1.4.16.orig/lib/stdio.in.h host-m4-1.4.16/lib/stdio.in.h --- host-m4-1.4.16.orig/lib/stdio.in.h 2011-03-02 00:39:29.000000000 +0800 +++ host-m4-1.4.16/lib/stdio.in.h 2013-08-28 16:53:28.693212500 +0800 @@ -162,7 +162,11 @@ _GL_WARN_ON_USE (fflush, "fflush is not so any use of gets warrants an unconditional warning. Assume it is always declared, since it is required by C89. */ #undef gets +#if defined(__GLIBC__) && !defined(__UCLIBC__) +#if !((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 16)) _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +#endif +#endif #if @GNULIB_FOPEN@ # if @REPLACE_FOPEN@
此时,其实也才注意到:
之前出现:
patch: **** malformed patch at line
的错误,
估计是:
之前的:
@@ -162,7 +162,9 @@ |
表示的是:
从第7行,改到第9行,
而此处的自己手动修改了内容,多出了两行,所以,应该变成:
@@ -162,7 +162,11 @@ |
才是对的。
人家patch去打补丁时,之前去验证此patch文件,发现不匹配,所以报
patch: **** malformed patch at line
7.而此处,已经弄出了新的patch文件了,所以也要去测试一把,确保的确可用才行。
所以,再次去
删除(移走)旧的:
D:\tmp\tmp_dev_root\cgwin\home\CLi\develop\buildroot\buildroot-2013.05\package\m4\m4-1.4.16-no-gets.patch
拷贝新的:
m4-1.4.16-no-gets-and-missing-binary-operator.patch
到:
D:\tmp\tmp_dev_root\cgwin\home\CLi\develop\buildroot\buildroot-2013.05\package\m4\m4-1.4.16-no-gets-and-missing-binary-operator.patch
然后再去重新编译buildroot:
make clean & make:
结果就可以正常编译了,就没有此处的问题了。
8.然后再去找对应的log部分,好像已经不去编译之前的fpending了。
所以找不到对应的内容了。
只是贴出来,足够长的log,供参考:
rm -f wctype.h-t wctype.h && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE_WCTYPE_H''@/1/g' \ -e 's|@''INCLUDE_NEXT''@|include_next|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|#pragma GCC system_header|g' \ -e 's|@''PRAGMA_COLUMNS''@||g' \ -e 's|@''NEXT_WCTYPE_H''@|<wctype.h>|g' \ -e 's/@''GNULIB_ISWBLANK''@/0/g' \ -e 's/@''GNULIB_WCTYPE''@/0/g' \ -e 's/@''GNULIB_ISWCTYPE''@/0/g' \ -e 's/@''GNULIB_WCTRANS''@/0/g' \ -e 's/@''GNULIB_TOWCTRANS''@/0/g' \ -e 's/@''HAVE_ISWBLANK''@/1/g' \ -e 's/@''HAVE_ISWCNTRL''@/1/g' \ -e 's/@''HAVE_WCTYPE_T''@/1/g' \ -e 's/@''HAVE_WCTRANS_T''@/1/g' \ -e 's/@''HAVE_WINT_T''@/1/g' \ -e 's/@''REPLACE_ISWBLANK''@/0/g' \ -e 's/@''REPLACE_ISWCNTRL''@/0/g' \ -e '/definitions of _GL_FUNCDECL_RPL/r c++defs.h' \ -e '/definition of _GL_WARN_ON_USE/r warn-on-use.h' \ < ./wctype.in.h; \ } > wctype.h-t && \ mv wctype.h-t wctype.h rm -f stamp-h1 touch config.hin cd .. && /bin/sh ./config.status lib/config.h config.status: creating lib/config.h /usr/bin/make all-am make[4]: Entering directory `/home/CLi/develop/buildroot/buildroot-2013.05/output/build/host-m4-1.4.16/lib' /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT gl_avltree_oset.o -MD -MP -MF .deps/gl_avltree_oset.Tpo -c -o gl_avltree_oset.o gl_avltree_oset.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT c-ctype.o -MD -MP -MF .deps/c-ctype.Tpo -c -o c-ctype.o c-ctype.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT c-stack.o -MD -MP -MF .deps/c-stack.Tpo -c -o c-stack.o c-stack.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT clean-temp.o -MD -MP -MF .deps/clean-temp.Tpo -c -o clean-temp.o clean-temp.c mv -f .deps/c-ctype.Tpo .deps/c-ctype.Po mv -f .deps/gl_avltree_oset.Tpo .deps/gl_avltree_oset.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT close-hook.o -MD -MP -MF .deps/close-hook.Tpo -c -o close-hook.o close-hook.c mv -f .deps/c-stack.Tpo .deps/c-stack.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT execute.o -MD -MP -MF .deps/execute.Tpo -c -o execute.o execute.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT exitfail.o -MD -MP -MF .deps/exitfail.Tpo -c -o exitfail.o exitfail.c mv -f .deps/close-hook.Tpo .deps/close-hook.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT fatal-signal.o -MD -MP -MF .deps/fatal-signal.Tpo -c -o fatal-signal.o fatal-signal.c mv -f .deps/execute.Tpo .deps/execute.Po mv -f .deps/exitfail.Tpo .deps/exitfail.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT fd-safer-flag.o -MD -MP -MF .deps/fd-safer-flag.Tpo -c -o fd-safer-flag.o fd-safer-flag.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT dup-safer-flag.o -MD -MP -MF .deps/dup-safer-flag.Tpo -c -o dup-safer-flag.o dup-safer-flag.c mv -f .deps/clean-temp.Tpo .deps/clean-temp.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT freadahead.o -MD -MP -MF .deps/freadahead.Tpo -c -o freadahead.o freadahead.c mv -f .deps/fatal-signal.Tpo .deps/fatal-signal.Po mv -f .deps/fd-safer-flag.Tpo .deps/fd-safer-flag.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT freading.o -MD -MP -MF .deps/freading.Tpo -c -o freading.o freading.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT gl_linkedhash_list.o -MD -MP -MF .deps/gl_linkedhash_list.Tpo -c -o gl_linkedhash_list.o gl_linkedhash_list.c mv -f .deps/dup-safer-flag.Tpo .deps/dup-safer-flag.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT gl_list.o -MD -MP -MF .deps/gl_list.Tpo -c -o gl_list.o gl_list.c mv -f .deps/freading.Tpo .deps/freading.Po mv -f .deps/gl_list.Tpo .deps/gl_list.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT localcharset.o -MD -MP -MF .deps/localcharset.Tpo -c -o localcharset.o localcharset.c mv -f .deps/freadahead.Tpo .deps/freadahead.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT lock.o -MD -MP -MF .deps/lock.Tpo -c -o lock.o `test -f 'glthread/lock.c' || echo './'`glthread/lock.c mv -f .deps/gl_linkedhash_list.Tpo .deps/gl_linkedhash_list.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT malloca.o -MD -MP -MF .deps/malloca.Tpo -c -o malloca.o malloca.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT memchr2.o -MD -MP -MF .deps/memchr2.Tpo -c -o memchr2.o memchr2.c mv -f .deps/malloca.Tpo .deps/malloca.Po mv -f .deps/lock.Tpo .deps/lock.Po mv -f .deps/memchr2.Tpo .deps/memchr2.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT gl_oset.o -MD -MP -MF .deps/gl_oset.Tpo -c -o gl_oset.o gl_oset.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT pipe2.o -MD -MP -MF .deps/pipe2.Tpo -c -o pipe2.o pipe2.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT pipe2-safer.o -MD -MP -MF .deps/pipe2-safer.Tpo -c -o pipe2-safer.o pipe2-safer.c mv -f .deps/gl_oset.Tpo .deps/gl_oset.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT printf-frexp.o -MD -MP -MF .deps/printf-frexp.Tpo -c -o printf-frexp.o printf-frexp.c mv -f .deps/pipe2-safer.Tpo .deps/pipe2-safer.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT printf-frexpl.o -MD -MP -MF .deps/printf-frexpl.Tpo -c -o printf-frexpl.o printf-frexpl.c mv -f .deps/pipe2.Tpo .deps/pipe2.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT progname.o -MD -MP -MF .deps/progname.Tpo -c -o progname.o progname.c mv -f .deps/printf-frexp.Tpo .deps/printf-frexp.Po mv -f .deps/printf-frexpl.Tpo .deps/printf-frexpl.Po mv -f .deps/localcharset.Tpo .deps/localcharset.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT spawn-pipe.o -MD -MP -MF .deps/spawn-pipe.Tpo -c -o spawn-pipe.o spawn-pipe.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT threadlib.o -MD -MP -MF .deps/threadlib.Tpo -c -o threadlib.o `test -f 'glthread/threadlib.c' || echo './'`glthread/threadlib.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT tls.o -MD -MP -MF .deps/tls.Tpo -c -o tls.o `test -f 'glthread/tls.c' || echo './'`glthread/tls.c mv -f .deps/progname.Tpo .deps/progname.Po mv -f .deps/spawn-pipe.Tpo .deps/spawn-pipe.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT tmpdir.o -MD -MP -MF .deps/tmpdir.Tpo -c -o tmpdir.o tmpdir.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT verror.o -MD -MP -MF .deps/verror.Tpo -c -o verror.o verror.c mv -f .deps/threadlib.Tpo .deps/threadlib.Po mv -f .deps/tls.Tpo .deps/tls.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT version-etc.o -MD -MP -MF .deps/version-etc.Tpo -c -o version-etc.o version-etc.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT version-etc-fsf.o -MD -MP -MF .deps/version-etc-fsf.Tpo -c -o version-etc-fsf.o version-etc-fsf.c mv -f .deps/verror.Tpo .deps/verror.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT wait-process.o -MD -MP -MF .deps/wait-process.Tpo -c -o wait-process.o wait-process.c mv -f .deps/tmpdir.Tpo .deps/tmpdir.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT xalloc-die.o -MD -MP -MF .deps/xalloc-die.Tpo -c -o xalloc-die.o xalloc-die.c mv -f .deps/version-etc.Tpo .deps/version-etc.Po mv -f .deps/version-etc-fsf.Tpo .deps/version-etc-fsf.Po mv -f .deps/wait-process.Tpo .deps/wait-process.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT gl_xlist.o -MD -MP -MF .deps/gl_xlist.Tpo -c -o gl_xlist.o gl_xlist.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT xmalloca.o -MD -MP -MF .deps/xmalloca.Tpo -c -o xmalloca.o xmalloca.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT gl_xoset.o -MD -MP -MF .deps/gl_xoset.Tpo -c -o gl_xoset.o gl_xoset.c mv -f .deps/xalloc-die.Tpo .deps/xalloc-die.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT xprintf.o -MD -MP -MF .deps/xprintf.Tpo -c -o xprintf.o xprintf.c mv -f .deps/xmalloca.Tpo .deps/xmalloca.Po mv -f .deps/gl_xlist.Tpo .deps/gl_xlist.Po mv -f .deps/gl_xoset.Tpo .deps/gl_xoset.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT xstrndup.o -MD -MP -MF .deps/xstrndup.Tpo -c -o xstrndup.o xstrndup.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT xvasprintf.o -MD -MP -MF .deps/xvasprintf.Tpo -c -o xvasprintf.o xvasprintf.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT xasprintf.o -MD -MP -MF .deps/xasprintf.Tpo -c -o xasprintf.o xasprintf.c mv -f .deps/xasprintf.Tpo .deps/xasprintf.Po mv -f .deps/xstrndup.Tpo .deps/xstrndup.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT asnprintf.o -MD -MP -MF .deps/asnprintf.Tpo -c -o asnprintf.o asnprintf.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT asprintf.o -MD -MP -MF .deps/asprintf.Tpo -c -o asprintf.o asprintf.c mv -f .deps/xprintf.Tpo .deps/xprintf.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT basename.o -MD -MP -MF .deps/basename.Tpo -c -o basename.o basename.c mv -f .deps/asnprintf.Tpo .deps/asnprintf.Po mv -f .deps/xvasprintf.Tpo .deps/xvasprintf.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT basename-lgpl.o -MD -MP -MF .deps/basename-lgpl.Tpo -c -o basename-lgpl.o basename-lgpl.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT cloexec.o -MD -MP -MF .deps/cloexec.Tpo -c -o cloexec.o cloexec.c mv -f .deps/basename.Tpo .deps/basename.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT close-stream.o -MD -MP -MF .deps/close-stream.Tpo -c -o close-stream.o close-stream.c mv -f .deps/asprintf.Tpo .deps/asprintf.Po mv -f .deps/basename-lgpl.Tpo .deps/basename-lgpl.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT closein.o -MD -MP -MF .deps/closein.Tpo -c -o closein.o closein.c mv -f .deps/cloexec.Tpo .deps/cloexec.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT closeout.o -MD -MP -MF .deps/closeout.Tpo -c -o closeout.o closeout.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT dirname.o -MD -MP -MF .deps/dirname.Tpo -c -o dirname.o dirname.c mv -f .deps/close-stream.Tpo .deps/close-stream.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT dirname-lgpl.o -MD -MP -MF .deps/dirname-lgpl.Tpo -c -o dirname-lgpl.o dirname-lgpl.c mv -f .deps/dirname.Tpo .deps/dirname.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT dup-safer.o -MD -MP -MF .deps/dup-safer.Tpo -c -o dup-safer.o dup-safer.c mv -f .deps/closeout.Tpo .deps/closeout.Po mv -f .deps/closein.Tpo .deps/closein.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT fd-safer.o -MD -MP -MF .deps/fd-safer.Tpo -c -o fd-safer.o fd-safer.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT filenamecat.o -MD -MP -MF .deps/filenamecat.Tpo -c -o filenamecat.o filenamecat.c mv -f .deps/dirname-lgpl.Tpo .deps/dirname-lgpl.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT filenamecat-lgpl.o -MD -MP -MF .deps/filenamecat-lgpl.Tpo -c -o filenamecat-lgpl.o filenamecat-lgpl.c mv -f .deps/dup-safer.Tpo .deps/dup-safer.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT fopen-safer.o -MD -MP -MF .deps/fopen-safer.Tpo -c -o fopen-safer.o fopen-safer.c mv -f .deps/fd-safer.Tpo .deps/fd-safer.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT frexpl.o -MD -MP -MF .deps/frexpl.Tpo -c -o frexpl.o frexpl.c mv -f .deps/filenamecat.Tpo .deps/filenamecat.Po mv -f .deps/filenamecat-lgpl.Tpo .deps/filenamecat-lgpl.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT isnanl.o -MD -MP -MF .deps/isnanl.Tpo -c -o isnanl.o isnanl.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT mkstemp-safer.o -MD -MP -MF .deps/mkstemp-safer.Tpo -c -o mkstemp-safer.o mkstemp-safer.c mv -f .deps/frexpl.Tpo .deps/frexpl.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT obstack.o -MD -MP -MF .deps/obstack.Tpo -c -o obstack.o obstack.c mv -f .deps/isnanl.Tpo .deps/isnanl.Po mv -f .deps/fopen-safer.Tpo .deps/fopen-safer.Po mv -f .deps/mkstemp-safer.Tpo .deps/mkstemp-safer.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT pipe-safer.o -MD -MP -MF .deps/pipe-safer.Tpo -c -o pipe-safer.o pipe-safer.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT printf-args.o -MD -MP -MF .deps/printf-args.Tpo -c -o printf-args.o printf-args.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT printf-parse.o -MD -MP -MF .deps/printf-parse.Tpo -c -o printf-parse.o printf-parse.c mv -f .deps/obstack.Tpo .deps/obstack.Po mv -f .deps/pipe-safer.Tpo .deps/pipe-safer.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT quotearg.o -MD -MP -MF .deps/quotearg.Tpo -c -o quotearg.o quotearg.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT regex.o -MD -MP -MF .deps/regex.Tpo -c -o regex.o regex.c mv -f .deps/printf-args.Tpo .deps/printf-args.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT spawn_faction_addclose.o -MD -MP -MF .deps/spawn_faction_addclose.Tpo -c -o spawn_faction_addclose.o spawn_faction_addclose.c mv -f .deps/printf-parse.Tpo .deps/printf-parse.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT spawn_faction_adddup2.o -MD -MP -MF .deps/spawn_faction_adddup2.Tpo -c -o spawn_faction_adddup2.o spawn_faction_adddup2.c mv -f .deps/quotearg.Tpo .deps/quotearg.Po mv -f .deps/spawn_faction_addclose.Tpo .deps/spawn_faction_addclose.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT spawn_faction_addopen.o -MD -MP -MF .deps/spawn_faction_addopen.Tpo -c -o spawn_faction_addopen.o spawn_faction_addopen.c mv -f .deps/spawn_faction_adddup2.Tpo .deps/spawn_faction_adddup2.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT spawn_faction_destroy.o -MD -MP -MF .deps/spawn_faction_destroy.Tpo -c -o spawn_faction_destroy.o spawn_faction_destroy.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT spawn_faction_init.o -MD -MP -MF .deps/spawn_faction_init.Tpo -c -o spawn_faction_init.o spawn_faction_init.c mv -f .deps/spawn_faction_addopen.Tpo .deps/spawn_faction_addopen.Po mv -f .deps/spawn_faction_destroy.Tpo .deps/spawn_faction_destroy.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT spawnattr_destroy.o -MD -MP -MF .deps/spawnattr_destroy.Tpo -c -o spawnattr_destroy.o spawnattr_destroy.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT spawnattr_init.o -MD -MP -MF .deps/spawnattr_init.Tpo -c -o spawnattr_init.o spawnattr_init.c mv -f .deps/spawn_faction_init.Tpo .deps/spawn_faction_init.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT spawnattr_setflags.o -MD -MP -MF .deps/spawnattr_setflags.Tpo -c -o spawnattr_setflags.o spawnattr_setflags.c mv -f .deps/spawnattr_init.Tpo .deps/spawnattr_init.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT spawnattr_setsigmask.o -MD -MP -MF .deps/spawnattr_setsigmask.Tpo -c -o spawnattr_setsigmask.o spawnattr_setsigmask.c mv -f .deps/spawnattr_destroy.Tpo .deps/spawnattr_destroy.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT spawni.o -MD -MP -MF .deps/spawni.Tpo -c -o spawni.o spawni.c mv -f .deps/spawnattr_setflags.Tpo .deps/spawnattr_setflags.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT spawnp.o -MD -MP -MF .deps/spawnp.Tpo -c -o spawnp.o spawnp.c mv -f .deps/spawnattr_setsigmask.Tpo .deps/spawnattr_setsigmask.Po mv -f .deps/regex.Tpo .deps/regex.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT stripslash.o -MD -MP -MF .deps/stripslash.Tpo -c -o stripslash.o stripslash.c mv -f .deps/spawni.Tpo .deps/spawni.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT strtod.o -MD -MP -MF .deps/strtod.Tpo -c -o strtod.o strtod.c /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT tempname.o -MD -MP -MF .deps/tempname.Tpo -c -o tempname.o tempname.c mv -f .deps/spawnp.Tpo .deps/spawnp.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT vasnprintf.o -MD -MP -MF .deps/vasnprintf.Tpo -c -o vasnprintf.o vasnprintf.c mv -f .deps/stripslash.Tpo .deps/stripslash.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT vasprintf.o -MD -MP -MF .deps/vasprintf.Tpo -c -o vasprintf.o vasprintf.c mv -f .deps/tempname.Tpo .deps/tempname.Po mv -f .deps/strtod.Tpo .deps/strtod.Po /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -MT xmalloc.o -MD -MP -MF .deps/xmalloc.Tpo -c -o xmalloc.o xmalloc.c rm -f t-charset.alias charset.alias && \ /bin/sh ./config.charset 'i686-pc-cygwin' > t-charset.alias && \ mv t-charset.alias charset.alias mv -f .deps/vasprintf.Tpo .deps/vasprintf.Po rm -f t-ref-add.sed ref-add.sed && \ sed -e '/^#/d' -e 's/@''PACKAGE''@/m4/g' ref-add.sin > t-ref-add.sed && \ mv t-ref-add.sed ref-add.sed mv -f .deps/xmalloc.Tpo .deps/xmalloc.Po rm -f t-ref-del.sed ref-del.sed && \ sed -e '/^#/d' -e 's/@''PACKAGE''@/m4/g' ref-del.sin > t-ref-del.sed && \ mv t-ref-del.sed ref-del.sed mv -f .deps/vasnprintf.Tpo .deps/vasnprintf.Po rm -f libm4.a ar cru libm4.a gl_avltree_oset.o c-ctype.o c-stack.o clean-temp.o close-hook.o execute.o exitfail.o fatal-signal.o fd-safer-flag.o dup-safer-flag.o freadahead.o freading.o gl_linkedhash_list.o gl_list.o localcharset.o lock.o malloca.o memchr2.o gl_oset.o pipe2.o pipe2-safer.o printf-frexp.o printf-frexpl.o progname.o spawn-pipe.o threadlib.o tls.o tmpdir.o verror.o version-etc.o version-etc-fsf.o wait-process.o xalloc-die.o gl_xlist.o xmalloca.o gl_xoset.o xprintf.o xstrndup.o xvasprintf.o xasprintf.o asnprintf.o asprintf.o basename.o basename-lgpl.o cloexec.o close-stream.o closein.o closeout.o dirname.o dirname-lgpl.o dup-safer.o fd-safer.o filenamecat.o filenamecat-lgpl.o fopen-safer.o frexpl.o isnanl.o mkstemp-safer.o obstack.o pipe-safer.o printf-args.o printf-parse.o quotearg.o regex.o spawn_faction_addclose.o spawn_faction_adddup2.o spawn_faction_addopen.o spawn_faction_destroy.o spawn_faction_init.o spawnattr_destroy.o spawnattr_init.o spawnattr_setflags.o spawnattr_setsigmask.o spawni.o spawnp.o stripslash.o strtod.o tempname.o vasnprintf.o vasprintf.o xmalloc.o ranlib libm4.a make[4]: Leaving directory `/home/CLi/develop/buildroot/buildroot-2013.05/output/build/host-m4-1.4.16/lib' make[3]: Leaving directory `/home/CLi/develop/buildroot/buildroot-2013.05/output/build/host-m4-1.4.16/lib'
【总结】
此处,make编译Buildroot时期间,打补丁时,出现:
patch: **** malformed patch at line 39: # if @REPLACE_FOPEN@ |
的错误,
的原因是:
之前自己手动把:
D:\tmp\tmp_dev_root\cgwin\home\CLi\develop\buildroot\buildroot-2013.05\package\m4\m4-1.4.16-no-gets.patch
中的内容,从:
@@ -162,7 +162,9 @@ _GL_WARN_ON_USE (fflush, "fflush is not so any use of gets warrants an unconditional warning. Assume it is always declared, since it is required by C89. */ #undef gets +#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16) _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +#endif
改成了:
@@ -162,7 +162,9 @@ _GL_WARN_ON_USE (fflush, "fflush is not so any use of gets warrants an unconditional warning. Assume it is always declared, since it is required by C89. */ #undef gets +#if defined(__GLIBC__) && !defined(__UCLIBC__) +#if !((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 16)) _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +#endif
而改出了问题:
(1)行数不匹配
本来是:
@@ -162,7 +162,9 @@ |
改了代码后,也应该变化的,(加上后续正确的内容后)实际上应该是:
@@ -162,7 +162,11 @@ |
(2)不小心漏掉了#endif
实际上应该是:
+#if defined(__GLIBC__) && !defined(__UCLIBC__) +#if !((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 16)) _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +#endif +#endif
所以,必然会出错。
解决办法是:
1.其实是可以手动去修改的。
但是毕竟手动修改,不靠谱,容易出错。
2.所以还是自己另外通过:
【记录】尝试为了Buildroot编译期间涉及到的m4-1.4.16的fpending在Cygwin下的问题去制作diff和patch补丁包
去生成了此:
(1)正确的patch内容
即,对应内容为:
diff -purN -X - host-m4-1.4.16.orig/lib/stdio.in.h host-m4-1.4.16/lib/stdio.in.h --- host-m4-1.4.16.orig/lib/stdio.in.h 2011-03-02 00:39:29.000000000 +0800 +++ host-m4-1.4.16/lib/stdio.in.h 2013-08-28 16:53:28.693212500 +0800 @@ -162,7 +162,11 @@ _GL_WARN_ON_USE (fflush, "fflush is not so any use of gets warrants an unconditional warning. Assume it is always declared, since it is required by C89. */ #undef gets +#if defined(__GLIBC__) && !defined(__UCLIBC__) +#if !((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 16)) _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +#endif +#endif #if @GNULIB_FOPEN@ # if @REPLACE_FOPEN@
(2)又加上了原先的注释内容:
即,保留了原先的内容,所以完整的patch文件:
m4-1.4.16-no-gets-and-missing-binary-operator.patch
应该是:
Since the 2.16 release of the glibc, 'gets' is not any more defined in the gnulib. No m4 version synchronized with gnulib since [1] has been released yet. This patch avoids the following error occurs when building m4 <=1.4.16 on host using a glibc >=2.16: make[4]: Entering directory `/opt/buildroot/output/build/host-m4-1.4.16/lib' /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT gl_avltree_oset.o -MD -MP -MF .deps/gl_avltree_oset.Tpo -c -o gl_avltree_oset.o gl_avltree_oset.c /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT c-ctype.o -MD -MP -MF .deps/c-ctype.Tpo -c -o c-ctype.o c-ctype.c /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT c-stack.o -MD -MP -MF .deps/c-stack.Tpo -c -o c-stack.o c-stack.c /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT clean-temp.o -MD -MP -MF .deps/clean-temp.Tpo -c -o clean-temp.o clean-temp.c mv -f .deps/c-ctype.Tpo .deps/c-ctype.Po /opt/buildroot/output/host/usr/bin/ccache /usr/bin/gcc -std=gnu99 -I. -O2 -I/opt/buildroot/output/host/include -I/opt/buildroot/output/host/usr/include -MT close-hook.o -MD -MP -MF .deps/close-hook.Tpo -c -o close-hook.o close-hook.c In file included from clean-temp.h:22:0, from clean-temp.c:23: ./stdio.h:477:20: error 'gets' undeclared here (not in a function) make[4]: *** [clean-temp.o] Error 1 References: [1] http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=66712c23388e93e5c518ebc8515140fa0c807348 [2] http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-devel/m4/files/m4-1.4.16-no-gets.patch?diff_format=h&revision=1.1&view=markup Signed-off-by: Samuel Martin <[email protected]> --- diff -purN -X - host-m4-1.4.16.orig/lib/stdio.in.h host-m4-1.4.16/lib/stdio.in.h --- host-m4-1.4.16.orig/lib/stdio.in.h 2011-03-02 00:39:29.000000000 +0800 +++ host-m4-1.4.16/lib/stdio.in.h 2013-08-28 16:53:28.693212500 +0800 @@ -162,7 +162,11 @@ _GL_WARN_ON_USE (fflush, "fflush is not so any use of gets warrants an unconditional warning. Assume it is always declared, since it is required by C89. */ #undef gets +#if defined(__GLIBC__) && !defined(__UCLIBC__) +#if !((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 16)) _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +#endif +#endif #if @GNULIB_FOPEN@ # if @REPLACE_FOPEN@
3.同时要使得该patch生效
A.删除旧的patch文件
删除已有的:
D:\tmp\tmp_dev_root\cgwin\home\CLi\develop\buildroot\buildroot-2013.05\package\m4\m4-1.4.16-no-gets.patch
B.把新patch文件放到对应的Buildroot中合适的位置
把:
m4-1.4.16-no-gets-and-missing-binary-operator.patch
放到对应的地址,即为:
D:\tmp\tmp_dev_root\cgwin\home\CLi\develop\buildroot\buildroot-2013.05\package\m4\m4-1.4.16-no-gets-and-missing-binary-operator.patch
4.然后重新去编译一下:
即Buildroot中,去:
make clean
一下,使得之前解压,打了补丁,编译了部分内容的m4,都清除掉
然后重新用:
make
去编译,即可:
使得新的patch生效,给对应的
host-m4-1.4.16/lib/stdio.in.h
打上对应的补丁,以便解决之前出现的:
的错误。
转载请注明:在路上 » 【已解决】patch打补丁时出错:patch: **** malformed patch at line