On Tuesday 18 August 2015 11:47:07 Donovan Cameron wrote: > I made those changes but same error. > > Tried once with, > > #define _XOPEN_SOURCE > > And a second time with, > > #define _XOPEN_SOURCE 500
What is your config: OS + gcc ? I can't reproduce with Ubuntu 14.04 with gcc 4.8 Could you intercept the gcc command line of gdalserver.c and replace the -c -o gdalserver.o by -E to have the preprocessor output ? Providing the /usr/include/netdb.h of your system might also give some clue, since it is in this file that getaddrinfo is defined. > > > > Donovan > > On 18/08/15 10:30 AM, Even Rouault wrote: > > On Tuesday 18 August 2015 12:00:46 Vincent Schut wrote: > >> Hi, > >> > >> this morning I wanted to refresh my gdal build, so I did an svn update > >> (and > >> later a fresh svn checkout to be sure), but I get an error when make > >> wants > > > >> to build gdalserver: > > This might be related to the following that is perhaps too restrictive > > > > #if defined(__STDC_VERSION__) > > #define _XOPEN_SOURCE > > #endif > > > > Could you try remonving the #if defined / #endif, so that #define > > _XOPEN_SOURCE is defined ? > > > > Perhaps you need #define _XOPEN_SOURCE 500 > > > > Even -- Spatialys - Geospatial professional services http://www.spatialys.com _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
