免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3389 | 回复: 1
打印 上一主题 下一主题

[开发环境] [求助]U-boot编译过程中的新问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-06-26 17:08 |只看该作者 |倒序浏览
嗯,编译的是韦东山老师的u-boot-1.1.6
发现在编译crc32.o时,链接的/usr/include.zlib.h有错。这个错弄得我是有点莫名其妙。
网上找了,也没找到答案,所以这里贴出来,请各位大牛帮帮忙,谢谢。

原文如下:

  1. make -C tools all
  2. make[1]: Entering directory '/home/jimmyhu/Desktop/u-boot-1.1.6/tools'
  3. gcc -g -Wall -pedantic -idirafter /home/jimmyhu/Desktop/u-boot-1.1.6/include -idirafter /home/jimmyhu/Desktop/u-boot-1.1.6/include2 -idirafter /home/jimmyhu/Desktop/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c -o crc32.o crc32.c
  4. In file included from crc32.c:15:0:
  5. /usr/include/zlib.h:86:5: error: unknown type name ‘z_const’
  6.      z_const Bytef *next_in;     /* next input byte */
  7.      ^
  8. /usr/include/zlib.h:86:19: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘*’ token
  9.      z_const Bytef *next_in;     /* next input byte */
  10.                    ^
  11. In file included from /usr/include/zlib.h:34:0,
  12.                  from crc32.c:15:
  13. /usr/include/zlib.h:1025:29: error: unknown type name ‘z_const’
  14. typedef unsigned (*in_func) OF((void FAR *,
  15.                              ^
  16. /usr/include/zlib.h:1029:33: error: unknown type name ‘in_func’
  17. ZEXTERN int ZEXPORT inflateBack OF((z_streamp strm,
  18.                                  ^
  19. In file included from crc32.c:15:0:
  20. /usr/include/zlib.h:1349:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Z_ARG’
  21. ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format, ...));
  22.                                 ^
  23. /usr/include/zlib.h:1673:5: error: unknown type name ‘z_off64_t’
  24.      z_off64_t pos;
  25.      ^
  26. /usr/include/zlib.h:1748:15: error: unknown type name ‘z_crc_t’
  27. ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table    OF((void));
  28.                ^
  29. /usr/include/zlib.h:1758:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Z_ARG’
  30. ZEXTERN int            ZEXPORTVA gzvprintf Z_ARG((gzFile file,
  31.                                             ^
  32. Makefile:164: recipe for target 'crc32.o' failed
  33. make[1]: *** [crc32.o] Error 1
  34. make[1]: Leaving directory '/home/jimmyhu/Desktop/u-boot-1.1.6/tools'
  35. Makefile:275: recipe for target 'tools' failed
  36. make: *** [tools] Error 2
复制代码

论坛徽章:
0
2 [报告]
发表于 2016-03-09 15:12 |只看该作者
你好,请问你的这个问题最后是怎么解决的?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP