cattleman

cattleman

1个粉丝

19

问答

0

专栏

0

资料

cattleman  发布于  2017-02-07 09:35:24
采纳率 0%
19个问答
7601

Hi3518E, 进入osdrv目录,然后执行make ... all ,出现如下错误,请求解决。

 

serve_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 in
serve_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) {
                                   ^
common.mk:82: recipe for target '/home/liutangbao/work/Hi3518E_SDK_V1.0.0.1/osdrv/tools/pc/jffs2_tool/tmp/mtd-utils-1.5.0/serve_image.o' failed
make[2]: *** [/home/liutangbao/work/Hi3518E_SDK_V1.0.0.1/osdrv/tools/pc/jffs2_tool/tmp/mtd-utils-1.5.0/serve_image.o] Error 1
make[2]: Leaving directory '/home/liutangbao/work/Hi3518E_SDK_V1.0.0.1/osdrv/tools/pc/jffs2_tool/tmp/mtd-utils-1.5.0'
Makefile:40: recipe for target '/home/liutangbao/work/Hi3518E_SDK_V1.0.0.1/osdrv/tools/pc/jffs2_tool/tmp/sbin/mkfs.jffs2' failed
make[1]: *** [/home/liutangbao/work/Hi3518E_SDK_V1.0.0.1/osdrv/tools/pc/jffs2_tool/tmp/sbin/mkfs.jffs2] Error 2
make[1]: Leaving directory '/home/liutangbao/work/Hi3518E_SDK_V1.0.0.1/osdrv/tools/pc/jffs2_tool'
Makefile:201: recipe for target 'hipctools' failed
make: *** [hipctools] Error 2
我来回答
回答13个
时间排序
认可量排序

cattleman

1个粉丝

19

问答

0

专栏

0

资料

cattleman 2017-02-07 09:36:06
认可0
make 执行的命令是 make OSDRV_CROSS=arm-hisiv300-linux CHIP=hi3518ev200 all

cattleman

1个粉丝

19

问答

0

专栏

0

资料

cattleman 2017-02-07 11:05:22
认可0
问题定位到 make OSDRV_CROSS=arm-hisiv300-linux CHIP=hi3518ev200 hipctools

cattleman

1个粉丝

19

问答

0

专栏

0

资料

cattleman 2017-02-07 11:05:56
认可0
不知道有哪位哥们遇到同样的问题,可否指点一下 ?:o

xwindow

0个粉丝

0

问答

0

专栏

0

资料

xwindow 2017-02-07 16:09:52
认可0
是你的linux系统缺少了一些文件,需装一些package,具体和你使用的系统有关

cattleman

1个粉丝

19

问答

0

专栏

0

资料

cattleman 2017-02-08 09:03:44
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=44710&ptid=14076]xwindow 发表于 2017-2-7 16:09[/url]
是你的linux系统缺少了一些文件,需装一些package,具体和你使用的系统有关[/quote]

我用的是虚拟机,镜像是ubuntu 16.04 64位的,不知道哥们说的是 哪些文件缺少呢?

cringwind

0个粉丝

0

问答

0

专栏

0

资料

cringwind 2017-02-17 17:17:00
认可0
大侠们,我也遇到了这个问题,怎么解决,

cringwind

0个粉丝

0

问答

0

专栏

0

资料

cringwind 2017-02-17 17:27:50
认可0
楼主问题解决了么?

cringwind

0个粉丝

0

问答

0

专栏

0

资料

cringwind 2017-02-17 17:28:25
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=44697&ptid=14076]cattleman 发表于 2017-2-7 11:05[/url]
不知道有哪位哥们遇到同样的问题,可否指点一下 ?[/quote]

这些package指的是那些呢?

hanfei69882

2个粉丝

26

问答

0

专栏

2

资料

hanfei69882 2017-02-18 09:45:43
认可0
作为参考:[url=http://stackoverflow.com/questions/7571870/netdb-h-not-linking-properly]netdb.h not linking properly[/url]

laocheng

1个粉丝

14

问答

0

专栏

0

资料

laocheng 2017-02-18 18:18:59
认可0
这个是jffs2源码的问题,你可以直接跳过,请参考
[url]http://www.ebaina.com/bbs/forum.php?mod=viewthread&tid=14135&extra=[/url]
这个链接的解决方案。

wow444

0个粉丝

1

问答

0

专栏

0

资料

wow444 2017-02-18 21:28:11
认可0
遇到问题,收藏记录专用!

cattleman

1个粉丝

19

问答

0

专栏

0

资料

cattleman 2017-02-21 12:44:35
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=45232&ptid=14076]cringwind 发表于 2017-2-17 17:27[/url]
楼主问题解决了么?[/quote]

我这个问题暂没有解决:不过我改用Ubuntu14.04版本了,之前是用16.04
Ubuntu14.04 这个版本之前我就开发了其他方案的。所以编译时,没有什么阻碍就通过了。

旷性怡情

0个粉丝

3

问答

0

专栏

0

资料

旷性怡情 2017-03-07 11:20:07
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=45255&ptid=14076]laocheng 发表于 2017-2-18 18:18[/url]
这个是jffs2源码的问题,你可以直接跳过,请参考
http://www.ebaina.com/bbs/forum.php?mod=viewthread&ti ...[/quote]

谢谢,已解决~
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
相关问答
无更多相似问答 去提问
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区