AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2020.01.18 13:19 "[Tiff] Warnings while building tools", by Miguel Medalha
2020.01.18 16:03 "Re: [Tiff] Warnings while building tools", by Greg Troxel
2020.01.18 16:34 "Re: [Tiff] Warnings while building tools", by Miguel Medalha
2020.01.18 19:45 "Re: [Tiff] Warnings while building tools", by Greg Troxel
2020.01.18 21:24 "Re: [Tiff] Warnings while building tools", by Miguel Medalha
2020.01.18 21:27 "Re: [Tiff] Warnings while building tools", by Miguel Medalha
2020.01.18 21:32 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn
2020.01.18 22:29 "Re: [Tiff] Warnings while building tools", by Roger Leigh
2020.01.19 02:05 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn
2020.01.19 11:51 "Re: [Tiff] Warnings while building tools", by Even Rouault
2020.01.19 15:13 "Re: [Tiff] Warnings while building tools", by Greg Troxel
2020.01.19 15:54 "Re: [Tiff] Warnings while building tools", by ZdPo Ster
2020.01.19 16:53 "Re: [Tiff] Warnings while building tools", by Roger Leigh
2020.01.19 19:41 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn
2020.01.21 19:23 "Re: [Tiff] Warnings while building tools", by Su
2020.01.21 20:03 "Re: [Tiff] Warnings while building tools", by Roger Leigh
2020.01.22 03:07 "Re: [Tiff] Warnings while building tools", by Edward Lam
2020.01.22 14:41 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn
2020.01.22 20:50 "Re: [Tiff] Warnings while building tools", by Jeff McKenna
2020.01.22 21:16 "Re: [Tiff] Warnings while building tools", by Su
2020.01.22 22:56 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn
2020.01.23 13:01 "Re: [Tiff] Warnings while building tools", by Even Rouault
2020.01.25 20:10 "Re: [Tiff] Warnings while building tools", by Su
2020.01.23 13:05 "Re: [Tiff] Warnings while building tools", by Su
2020.01.25 16:22 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn
2020.01.25 20:24 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn
2020.01.26 16:37 "Re: [Tiff] Warnings while building tools", by Jeff McKenna
2020.01.26 16:39 "Re: [Tiff] Warnings while building tools", by Jeff McKenna
2020.01.26 17:34 "Re: [Tiff] Warnings while building tools", by Miguel Medalha
2020.01.26 23:57 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn
2020.01.27 00:53 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn
2020.01.27 01:24 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn
2020.01.27 13:04 "Re: [Tiff] Warnings while building tools", by Jeff McKenna
2020.01.22 12:25 "Re: [Tiff] Warnings while building tools", by Miguel Medalha
2020.01.22 16:47 "Re: [Tiff] Warnings while building tools", by Greg Troxel
2020.01.22 19:13 "Re: [Tiff] Warnings while building tools", by Christoph Gohlke
2020.01.22 20:12 "Re: [Tiff] Warnings while building tools", by Miguel Medalha
2020.01.23 03:44 "Re: [Tiff] Warnings while building tools", by Edward Lam
2020.01.29 14:14 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn
2020.01.29 14:31 "Re: [Tiff] Warnings while building tools", by Jeff McKenna
2020.01.19 17:32 "Re: [Tiff] Warnings while building tools", by Miguel Medalha

2020.01.26 23:57 "Re: [Tiff] Warnings while building tools", by Bob Friesenhahn

This happens with the following in nmake.opt:

HAVE_STRTOLL = 1
HAVE_STRTOULL = 1

Meanwhile, I noticed that the warnings disappear if the following lines are disabled in libtiff/tif_config.vc.h:

# if _MSC_VER >= 1920 /* Visual Studio 2019 has strtoll/strtoull */
# define HAVE_STRTOLL 1
# define HAVE_STRTOULL 1
# endif

It seems like the test should be for 1900 (Visual C++ 2015) rather than 1920.

It is unfortunate that the pre-processor logic is produced in two places. It is an issue that tif_config.h is produced in the libtiff directory after the port files have been build. A possible solution is to have nmake enter the libtiff directory for the sole purpose of copying tif_config.h.vc to tif_config.h prior to building the ports directory, and then include tif_config.h in libport.h.

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/

Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt