id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 6073,2.0.svn compilation error in gdalserver.c,saultdon,warmerdam,"I checked out the 2.0 branch at revision 29663. Been getting a compilation error: {{{ gcc -I/tmp/makepkg/gdal-filegdb/src/gdal-2.0/port -I/tmp/makepkg/gdal-filegdb/src/gdal-2.0/gcore -I/tmp/makepkg/gdal-filegdb/src/gdal-2.0/alg -I/tmp/makepkg/gdal-filegdb/src/gdal-2.0/ogr -I/tmp/makepkg/gdal-filegdb/src/gdal-2.0/ogr/ogrsf_frmts -march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fPIC -Wall -Wdeclaration-after-statement -I/tmp/makepkg/gdal-filegdb/src/gdal-2.0/frmts/vrt -DOGR_ENABLED -D_FORTIFY_SOURCE=2 -I/tmp/makepkg/gdal-filegdb/src/gdal-2.0/port -I/usr/include -DGDAL_COMPILATION -I/usr/include/json-c -I/tmp/makepkg/gdal-filegdb/src/gdal-2.0/ogr/ogrsf_frmts/geojson -DHAVE_GEOS=1 -I/usr/include -c -o gdalserver.o gdalserver.c gdalserver.c: In function ‘CreateSocketAndBindAndListen’: gdalserver.c:124:21: error: storage size of ‘sHints’ isn’t known struct addrinfo sHints; ^ gdalserver.c:126:31: error: invalid application of ‘sizeof’ to incomplete type ‘struct addrinfo’ memset(&sHints, 0, sizeof(struct addrinfo)); ^ gdalserver.c:129:23: error: ‘AI_PASSIVE’ undeclared (first use in this function) sHints.ai_flags = AI_PASSIVE; ^ gdalserver.c:129:23: note: each undeclared identifier is reported only once for each function it appears in gdalserver.c:132:12: warning: implicit declaration of function ‘getaddrinfo’ [-Wimplicit-function-declaration] nRet = getaddrinfo(NULL, pszService, &sHints, &psResults); ^ gdalserver.c:135:48: warning: implicit declaration of function ‘gai_strerror’ [-Wimplicit-function-declaration] fprintf(stderr, ""getaddrinfo(): %s\n"", gai_strerror(nRet)); ^ gdalserver.c:135: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:141:39: error: dereferencing pointer to incomplete type ‘struct addrinfo’ psResultsIter = psResultsIter->ai_next) ^ gdalserver.c:162:5: warning: implicit declaration of function ‘freeaddrinfo’ [-Wimplicit-function-declaration] freeaddrinfo(psResults); ^ gdalserver.c:124:21: warning: unused variable ‘sHints’ [-Wunused-variable] struct addrinfo sHints; ^ ../GDALmake.opt:579: recipe for target 'gdalserver.o' failed make[1]: *** [gdalserver.o] Error 1 make[1]: Leaving directory '/tmp/makepkg/gdal-filegdb/src/gdal-2.0/apps' GNUmakefile:67: recipe for target 'apps-target' failed make: *** [apps-target] Error 2 }}}",defect,closed,normal,1.11.3,default,,blocker,fixed,,