[Xastir] Error during compile

Tim Billingsley kd5ckp at gmail.com
Mon Jun 6 20:48:56 PDT 2016


I upgraded my ubuntu to 16.10 today and in the process of recompiling
GDAL I received the following.

I have no idea where to go from here? Any assistance or direction is
appreciated before I FUBAR the whole thing.

Thanks

Tim





01:~/src/gdal-1.11.0$ ./configure && make && sudo make install && sudo ldconfig

...
...
libtool: compile:  gcc -g -O2 -DHAVE_SSE_AT_COMPILE_TIME -Wall
-Wdeclaration-after-statement -I/home/tim/src/gdal-1.11.0/port
-I/home/tim/src/gdal-1.11.0/gcore -I/home/tim/src/gdal-1.11.0/alg
-I/home/tim/src/gdal-1.11.0/ogr
-I/home/tim/src/gdal-1.11.0/ogr/ogrsf_frmts
-I/home/tim/src/gdal-1.11.0/frmts -DOGR_ENABLED
-I/home/tim/src/gdal-1.11.0/port -c gdalserver.c  -fPIC -DPIC -o
.libs/gdalserver.o
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:565: recipe for target 'gdalserver.lo' failed
make[1]: *** [gdalserver.lo] Error 1
make[1]: Leaving directory '/home/tim/src/gdal-1.11.0/apps'
GNUmakefile:69: recipe for target 'apps-target' failed
make: *** [apps-target] Error 2
01:~/src/gdal-1.11.0$


More information about the Xastir mailing list