Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas021.isp.belgacom.be (localhost [127.0.0.1])
        by inav025.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id jB3J9lbo010247
        for <joris.at.lebbeke@skynet.be>; Sat, 3 Dec 2005 20:09:48 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx017.isp.belgacom.be (inmx017.isp.belgacom.be [195.238.4.129])
        by inas021.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id jB3J9lfO003923
        for <joris.at.lebbeke@skynet.be>; Sat, 3 Dec 2005 20:09:47 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx017.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id jB3J9Zw4027273
        for <joris.at.lebbeke@skynet.be>; Sat, 3 Dec 2005 20:09:36 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id jB3IxpdT003544;
	Sat, 3 Dec 2005 14:00:41 -0500
Received: from itsy.pauljlucas.org (adsl-64-174-44-82.dsl.snfc21.pacbell.net
	[64.174.44.82])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id jB3IxmTd003541
	for <tiff@lists.maptools.org>; Sat, 3 Dec 2005 13:59:48 -0500
Received: from itsy.pauljlucas.org (SouthBay@localhost.localdomain [127.0.0.1])
	by itsy.pauljlucas.org (8.13.5/8.13.5/Debian-3) with ESMTP id
	jB3IxkJr031022
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <tiff@lists.maptools.org>; Sat, 3 Dec 2005 10:59:46 -0800
Received: from localhost (pjl@localhost)
	by itsy.pauljlucas.org (8.13.5/8.13.5/Submit) with ESMTP id
	jB3Ixko1031017
	for <tiff@lists.maptools.org>; Sat, 3 Dec 2005 10:59:46 -0800
X-Authentication-Warning: itsy.pauljlucas.org: pjl owned process doing -bs
Date: Sat, 3 Dec 2005 10:59:46 -0800 (PST)
From: "Paul J. Lucas" <pauljlucas@mac.com>
To: tiff@lists.maptools.org
Message-ID: <Pine.LNX.4.63.0512031051440.20603@vgfl.cnhywyhpnf.bet>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Subject: [Tiff] libtiff, libjpeg, cygwin compile problems
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.00000ee1
X-MSP-STORE: Sat, 03 Dec 2005 20:09:49 +0100
Status:   

	I'm trying to compile libtiff (using libjpeg) under cygwin and
	I'm getting all kinds of compile-time errors.  FYI: I need to
	compile with the -mno-cygwin flag to gcc since my software as a
	whole can't depend on the end-user having cygwin installed.

	libjpeg (version 6b) compiles and works just fine by itself.
	However, if I try to compile libtiff (version 3.7.4) using my
	compiled libjpeg, I get lots of errors (a sample of which are
	below).

	I did find some information about a cygwin patch:

		http://www.cygwin.com/ml/cygwin-announce/2000/msg00050.html

	for libjpeg and applied the patch, but it didn't help.

	How can I get libtiff to compile with libjpeg?

	- Paul


libjpeg/include/jmorecfg.h:195: error: conflicting types for 'INT32'
usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/basetsd.h:52: error: previous declaration of 'INT32' was here
In file included from tif_jpeg.c:75:
libjpeg/include/jpeglib.h:99: error: parse error before "boolean"
libjpeg/include/jpeglib.h:541: error: parse error before '*' token
libjpeg/include/jpeglib.h:640: error: conflicting types for 'master'
libjpeg/include/jpeglib.h:416: error: previous declaration of 'master' was here
libjpeg/include/jpeglib.h:641: warning: 'main' is usually a function
libjpeg/include/jpeglib.h:641: error: conflicting types for 'main'
libjpeg/include/jpeglib.h:417: error: previous declaration of 'main' was here
libjpeg/include/jpeglib.h:642: error: conflicting types for 'codec'
libjpeg/include/jpeglib.h:419: error: previous declaration of 'codec' was here
libjpeg/include/jpeglib.h:645: error: conflicting types for 'marker'
libjpeg/include/jpeglib.h:420: error: previous declaration of 'marker' was here
libjpeg/include/jpeglib.h:647: error: conflicting types for 'cconvert'
libjpeg/include/jpeglib.h:421: error: previous declaration of 'cconvert' was here
libjpeg/include/jpeglib.h:649: error: parse error before '}' token
tif_jpeg.c:116: error: field `c' has incomplete type
tif_jpeg.c:117: error: field `d' has incomplete type
tif_jpeg.c:118: error: field `comm' has incomplete type
tif_jpeg.c:128: error: field `dest' has incomplete type
tif_jpeg.c:129: error: field `src' has incomplete type
tif_jpeg.c: In function `TIFFjpeg_error_exit':
tif_jpeg.c:215: error: dereferencing pointer to incomplete type
tif_jpeg.c: In function `TIFFjpeg_output_message':
tif_jpeg.c:231: error: dereferencing pointer to incomplete type
tif_jpeg.c: In function `TIFFjpeg_create_compress':
tif_jpeg.c:252: error: invalid application of `sizeof' to incomplete type `jpeg_compress_struct' 
tif_jpeg.c: In function `TIFFjpeg_create_decompress':
tif_jpeg.c:263: error: invalid application of `sizeof' to incomplete type `jpeg_decompress_struct' 
tif_jpeg.c: At top level:
tif_jpeg.c:395: error: `std_empty_output_buffer' declared as function returning a function
tif_jpeg.c:446: error: `tables_empty_output_buffer' declared as function returning a function
tif_jpeg.c: In function `tables_empty_output_buffer':
tif_jpeg.c:454: error: dereferencing pointer to incomplete type
tif_jpeg.c:454: error: dereferencing pointer to incomplete type
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
