本文共 1392 字,大约阅读时间需要 4 分钟。
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) {
转载地址:http://kefli.baihongyu.com/