delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/04/11:30:52

X-Spam-Check-By: sourceware.org
Date: Sun, 4 Dec 2005 08:30:40 -0800 (PST)
From: "Paul J. Lucas" <pauljlucas AT mac DOT com>
To: cygwin AT cygwin DOT com
Subject: libtiff, libjpeg, cygwin compile problems
Message-ID: <Pine.LNX.4.63.0512040830130.20603@vgfl.cnhywyhpnf.bet>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

	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

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019