Return-Path: <tiff-bounces@remotesensing.org>
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx017.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j5LEs5ak024686
        for <joris.at.lebbeke@skynet.be>; Tue, 21 Jun 2005 16:54:06 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id 3AE972650030; Tue, 21 Jun 2005 10:53:43 -0400 (EDT)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from sentinel.larc.nasa.gov (sentinel.larc.nasa.gov [128.155.10.10])
	by xserve.flids.com (Postfix) with ESMTP id ECA27265000D
	for <tiff@remotesensing.org>; Tue, 21 Jun 2005 10:53:40 -0400 (EDT)
Received: from cts1149 ([198.119.152.149] [198.119.152.149]) by
	sentinel.larc.nasa.gov with ESMTP for tiff@remotesensing.org;
	Tue, 21 Jun 2005 10:53:39 -0400
From: "Thom DeCarlo" <t.r.decarlo@larc.nasa.gov>
To: <tiff@remotesensing.org>
Date: Tue, 21 Jun 2005 10:53:33 -0400
Message-Id: <019301c57670$fee173d0$959877c6@cts1149>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.6626
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Importance: Normal
Subject: [Tiff] VS7.1 compile problems
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by inmx017.isp.belgacom.be id j5LEs5ak024686
X-UIDL: 000000000023ceae.00000421
X-MSP-STORE: Tue, 21 Jun 2005 16:54:10 +0200
Status:   

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


_______________________________________________
Tiff mailing list: Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/

