AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2005.06.21 14:53 "[Tiff] VS7.1 compile problems", by Thom DeCarlo
2005.06.21 15:11 "Re: [Tiff] VS7.1 compile problems", by Bob Friesenhahn
2005.06.21 16:10 "Re: [Tiff] VS7.1 compile problems", by Edward Lam
2005.06.21 16:44 "Re: [Tiff] VS7.1 compile problems", by Bob Friesenhahn
2005.06.22 20:51 "Re: [Tiff] VS7.1 compile problems", by Andrey Kiselev
2005.06.23 12:44 "RE: [Tiff] VS7.1 compile problems", by Thom DeCarlo
2005.06.23 19:11 "Re: [Tiff] VS7.1 compile problems", by Andrey Kiselev

2005.06.21 14:53 "[Tiff] VS7.1 compile problems", by Thom DeCarlo

Hi all,

I'm having many problems compiling the latest libtiff (downloaded from cvs this morning). I am using VS7.1 on WinXP.

Problem 1: There is something flaky about the handling of the inline declaration in tif_fax3.c functions find0span and find1span. I had to comment out the word "inline" on lines 779 and 838 to get the file to compile.

Problem 2: The include file "tif_config.h" sets a bunch of constants to either 1 or 0 (existence or non-existence of specific include files). However, when these constants are tested in the code the tests often only check to see if the constant has been defined. It ignores the value of the constant and therefore always passes. The problems are with the tests of:

HAVE_UNISTD_H, HAVE_MMAP, HAVE_STRINGS_H, HAVE_FCNTL_H, HAVE_IO_H

Do a grep "#ifdef HAVE_UNISTD_H" and you'll find about two dozen occurrences in the libtiff and tools directories. I've changed all these to "#if" and the compiles succeed. I'm not sure if that actually fixes the problem, though. (See the next problem.)

Problem 3: Now I'm trying to find the proper replacement for the unix functions read, write, lseek, close, open, and getopt. I'm getting lots of warnings about these things being undefined.

Any ideas?

Thanks,
Thom

--
Thom DeCarlo

-------------------------------------------------------
     there was coffee.
     life would go on.
          william gibson, the winter market