0
Django 프로젝트 용 GEOS를 설치하고 다음을 수행하려고합니다. Docs하지만 우분투 16.04 Xenial에서 컴파일하는 동안이 오류가 발생합니다. 그것에 대한 수정 프로그램이 있었는데 here 그러나 그것은 또한 작동하지 않았다. 다음은 공식 Django 문서별로 "make"를 실행하는 동안 얻은 오류입니다.바이너리에서 Gdal 1.11.2 작업을 할 수 없습니다.
오류 :
gdalserver.c: In function 'CreateSocketAndBindAndListen':
gdalserver.c:125:21: error: storage size of 'sHints' isn't known
struct addrinfo sHints;
^
gdalserver.c:127:31: error: invalid application of 'sizeof' to incomplete type 'struct addrinfo'
memset(&sHints, 0, sizeof(struct addrinfo));
^
gdalserver.c:130:23: error: 'AI_PASSIVE' undeclared (first use in this function)
sHints.ai_flags = AI_PASSIVE;
^
gdalserver.c:130:23: note: each undeclared identifier is reported only once for each function it appears in
gdalserver.c:133:12: warning: implicit declaration of function 'getaddrinfo' [-Wimplicit-function-declaration]
nRet = getaddrinfo(NULL, pszService, &sHints, &psResults);
^
gdalserver.c:136:48: warning: implicit declaration of function 'gai_strerror' [-Wimplicit-function-declaration]
fprintf(stderr, "getaddrinfo(): %s\n", gai_strerror(nRet));
^
gdalserver.c:136:25: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
fprintf(stderr, "getaddrinfo(): %s\n", gai_strerror(nRet));
^
gdalserver.c:142:39: error: dereferencing pointer to incomplete type 'struct addrinfo'
psResultsIter = psResultsIter->ai_next)
^
gdalserver.c:163:5: warning: implicit declaration of function 'freeaddrinfo' [-Wimplicit-function-declaration]
freeaddrinfo(psResults);
^
gdalserver.c:125:21: warning: unused variable 'sHints' [-Wunused-variable]
struct addrinfo sHints;
^
../GDALmake.opt:565: recipe for target 'gdalserver.lo' failed
make[1]: *** [gdalserver.lo] Error 1
make[1]: Leaving directory '/home/osboxes/gdal-1.11.2/apps'
GNUmakefile:69: recipe for target 'apps-target' failed
make: *** [apps-target] Error 2