2015.06.11 15:46 "[Tiff] Libtiff 4.0.4 release soon", by Bob Friesenhahn

2015.06.16 14:33 "Re: [Tiff] Libtiff 4.0.4 release soon", by Jeff McKenna

On 2015-06-16 11:30 AM, Jeff McKenna wrote:

On 2015-06-16 11:02 AM, Jeff McKenna wrote:

I did a checkout of CVS this morning, and it does not compile on MSVC 2008 (see errors below in "tif_unix.c"). No issues with tiff-4.0.4beta.zip however. -jeff

*****
tif_unix.c(119): error C2143: syntax error: missing ';' before 'type'
tif_unix.c(120): error C2065: 'sb': undeclared identifier
tif_unix.c(120): warning C4133: 'function': incompatible types - from
'int *' to 'stat *
'
tif_unix.c(123): error C2065: 'sb': undeclared identifier

tif_unix.c(123): error C2224: left of '.st_size' must have struct/union type

tif_unix.c(123): warning C4033: '_tiffSizeProc' must return a value Generating Code...

NMAKE: fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.EXE"'

: return code '0x2'
Stop.

NMAKE: fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.EXE

"': return code '0x2'
Stop.
*****

Note that only one change was needed to tif_unix.c (move line#119 to the beginning of the block), and now CVS-head compiles on MSVC. -jeff

***
static uint64
_tiffSizeProc(thandle_t fd)
{
        struct stat sb;
        fd_as_handle_union_t fdh;
        fdh.h = fd;
***

To be clear, I only made the change locally (I don't believe that I have commit access to libtiff CVS)

-jeff