[Geotiff] [MetaCRS] Motion: Adopt libgeotiff 1.4.2RC3 as 1.4.2 Release

Even Rouault even.rouault at spatialys.com
Thu Aug 18 12:21:57 EST 2016


Charles,

Would the following fix things for you ?

Index: cpl_serv.h
===================================================================
--- cpl_serv.h	(revision 2731)
+++ cpl_serv.h	(working copy)
@@ -41,7 +41,7 @@
 #ifdef HAVE_STRING_H
 #  include <string.h>
 #endif
-#ifdef HAVE_STRINGS_H
+#if defined(HAVE_STRINGS_H) && !defined(_WIN32)
 #  include <strings.h>
 #endif
 #ifdef HAVE_STDLIB_H

I confirm strings.h is needed on different Ubuntu versions to avoid warnings 
about strcasecmp not being declared with -Wall. I see in GDAL's cpl_port.h 
that #include <strings.h> is skipped if _WIN32 is defined, hence the similar 
proposed fix

Even

> Hum. for my education, could you post the error messages that result in
> including both files? A sane system shouldn't error out... ah Microsoft...
> strings.h according to standards is needed for strcasecmp although i see
> posts that modern systems make those non deprecated functions available
> through string.h. I will probably revert this change then.  This was
> somewhat needed to fix a warning with cmake on Linux about strcasecmp being
> not declared.
> 
> Le 18 août 2016 16:51, "Charles Karney" <charles.karney at sri.com> a écrit :
> > -1
> > 
> > Sorry I didn't see these release candidates until now.  For cmake
> > builds under Windows (Visual Studio 2010 thru 2015), I need to revert
> > cpl_serv.h to its previous state with this patch
> > 
> > diff --git a/cpl_serv.h b/cpl_serv.h
> > index e33a73a..8f529c4 100644
> > --- a/cpl_serv.h
> > +++ b/cpl_serv.h
> > @@ -41,7 +41,7 @@
> > 
> >  #ifdef HAVE_STRING_H
> >  #  include <string.h>
> >  #endif
> > 
> > -#ifdef HAVE_STRINGS_H
> > +#if defined(HAVE_STRINGS_H) && !defined(HAVE_STRING_H)
> > 
> >  #  include <strings.h>
> >  #endif
> >  #ifdef HAVE_STDLIB_H
> >  
> >   --Charles
> > 
> > On 08/18/16 09:37, Even Rouault wrote:
> >> Hi,
> >> 
> >> This is an official motion to the MetaCRS PSC to adopt libgeotiff 1.4.2
> 
> RC3 as
> 
> >> the final release.
> >> 
> >> The changes since 1.4.1 are described in
> >> https://svn.osgeo.org/metacrs/geotiff/tags/libgeotiff-1.4.2/ChangeLog .
> >> 
> >> A shortlog would be :
> >>  * update to EPSG v8.9 database
> >>  * cleanups and security fixes
> >> 
> >> Motion: Adopt libgeotiff 1.4.2RC3 as 1.4.2 Release
> >> 
> >>   http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-1.4.2RC3.tar.g
> >>   z http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-1.4.2RC3.zip
> >> 
> >> Best regards,
> >> 
> >> Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the Geotiff mailing list