今天从服务器pull了一个份代码,当编译到/lftp-4.3.6报错
html
checking whether posix_fallocate() works...服务器
cannot run test program while cross compiling测试
在网上搜了一下,在CONFIGURE中有不少的测试程序是不能够在HOST上运行的就会出现这个错误,因此在configue中找到“ posix_fallocate()”这个输出的位置,比较了一下能编译经过的版本,将这段注释掉就OK了,ui
从新编译工程出现以下错误:spa
make[2]: Entering directory `/home/yangz/6856/source/user/lftp-4.3.6'.net
make[2]: *** 没有规则能够建立目标“romfs”。 中止。unix
make[2]: Leaving directory `/home/yangz/6856/source/user/lftp-4.3.6'htm
再比较makefile,添加以下一段后OKblog
romfs:get
$(ROMFSINST) src/lftp /bin/fsync
对于我这种菜鸟有一份能编译过的工程作比较过重要了
参考:http://tassardge.blog.163.com/blog/static/1723017082010111554018645/