博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
hi3519v101 sdk 编译错误
阅读量:4200 次
发布时间:2019-05-26

本文共 1392 字,大约阅读时间需要 4 分钟。

编译 jffs2_tool 工具 mtd-utils_1.5.0 错误信息如下:

make[2]: Entering directory '/ternence/Hi3519V101_SDK/osdrv/tools/pc/jffs2_tool/tmp/mtd-utils-1.5.0'  CHK     include/version.h  CC      serve_image.oserve_image.c: In function ‘main’:serve_image.c:32:18: error: storage size of ‘hints’ isn’t known  struct addrinfo hints;                  ^serve_image.c:94:19: error: ‘AI_ADDRCONFIG’ undeclared (first use in this function)  hints.ai_flags = AI_ADDRCONFIG;                   ^serve_image.c:94:19: note: each undeclared identifier is reported only once for each function it appears inserve_image.c:97:8: warning: implicit declaration of function ‘getaddrinfo’ [-Wimplicit-function-declaration]  ret = getaddrinfo(argv[1], argv[2], &hints, &ai);        ^serve_image.c:99:40: warning: implicit declaration of function ‘gai_strerror’ [-Wimplicit-function-declaration]   fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(ret));                                        ^serve_image.c:99:19: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat=]   fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(ret));                   ^serve_image.c:103:35: error: dereferencing pointer to incomplete type ‘struct addrinfo’  for (runp = ai; runp; runp = runp->ai_next) {

错误原因: mtd-utils_1.5.0.tar.bz2 库的问题,大家可以更新到 mtd-utils_1.5.2.tar.bz2 重新编译就可以了;

mtd-utils_1.5.2.tar.bz2的下载地址:

转载地址:http://kefli.baihongyu.com/

你可能感兴趣的文章
【React Native】把现代web科技带给移动开发者(一)
查看>>
【GoLang】Web工作方式
查看>>
Launch Sublime Text 3 from the command line
查看>>
【数据库之mysql】mysql的安装(一)
查看>>
【数据库之mysql】 mysql 入门教程(二)
查看>>
【HTML5/CSS/JS】A list of Font Awesome icons and their CSS content values(一)
查看>>
【HTML5/CSS/JS】<br>与<p>标签区别(二)
查看>>
【HTML5/CSS/JS】开发跨平台应用工具的选择(三)
查看>>
【心灵鸡汤】Give it five minutes不要让一个好主意随风而去
查看>>
【React Native】Invariant Violation: Application AwesomeProject has not been registered
查看>>
【ReactNative】真机上无法调试 could not connect to development server
查看>>
【XCode 4.6】常用快捷键 特别是格式化代码ctrl+i
查看>>
【iOS游戏开发】icon那点事 之 实际应用(二)
查看>>
【iOS游戏开发】icon那点事 之 图标设计(三)
查看>>
【IOS游戏开发】之测试发布(Distribution)
查看>>
【IOS游戏开发】之IPA破解原理
查看>>
【一天一道LeetCode】#45. Jump Game II
查看>>
【一天一道LeetCode】#46. Permutations
查看>>
【一天一道LeetCode】#47. Permutations II
查看>>
【一天一道LeetCode】#48. Rotate Image
查看>>