Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx009.isp.belgacom.be (inmx009.isp.belgacom.be [195.238.3.146])
        by mailst006.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id i82FjcP0013719
        for <joris.at.lebbeke@skynet.be>; Thu, 2 Sep 2004 17:45:38 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx009.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id i82FjEXE025119
        for <joris.at.lebbeke@skynet.be>; Thu, 2 Sep 2004 17:45:17 +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 BDC22294187; Thu,  2 Sep 2004 11:44:59 -0400 (EDT)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20])
	by xserve.flids.com (Postfix) with SMTP id 4AA7E28EB2B
	for <tiff@remotesensing.org>; Wed,  1 Sep 2004 20:17:04 -0400 (EDT)
Received: (qmail 17651 invoked by uid 65534); 2 Sep 2004 00:16:53 -0000
Received: from pD9510599.dip.t-dialin.net (HELO m.local) (217.81.5.153)
	by mail.gmx.net (mp017) with SMTP; 02 Sep 2004 02:16:53 +0200
X-Authenticated: #7449637
From: MStrecke@gmx.de
To: tiff@remotesensing.org
Date: Thu, 02 Sep 2004 02:16:52 +0200
Message-ID: <2aocj0tqp6npc1p85bahrilr218nv3l86e@4ax.com>
X-Mailer: Forte Agent 2.0/32.646
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Mailman-Approved-At: Thu, 02 Sep 2004 11:44:57 -0400
Subject: [Tiff] bug in Make scripts (tiff2pdf)
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
X-UIDL: bef3562c883ab8f4e3ed234fd3c738a9

Hi,

it took me the better part of this evening to (re-)find a bug in the
Makescript of libtiff-util.  I then remembered that I found the same
one some time ago, and I am quite sure that I have reported it.

And as your bugzilla is down again, I have no way to check :-)

I use Debian Sarge with xsane as scan utility. Xsane produces TIFF
with JPEG encoding.

I wanted to convert these TIFFs to PDF using "tiff2pdf -j ...." but I
always got a warning that "libtiff had to be compilied with the jpeg
option".

tiff2pdf.c uses some defines (in this case JPEG_SUPPORT) that are set
when compiling the libtiff branch, but not during the compilation of
the "tools" branch.

[...]
/usr/bin/gcc -g -O -I. -I../../libtiff -DJPEG_SUPPORT -DZIP_SUPPORT
-DPIXARLOG_SUPPORT   -c -o tif_fax3sm.o tif_fax3sm.c
/usr/bin/gcc -c -g -O -I. -I../../libtiff -DJPEG_SUPPORT -DZIP_SUPPORT
-DPIXARLOG_SUPPORT ../../libtiff/tif_getimage.c
[...]
make[1]: Entering directory `/usr/src/tiff-3.6.1/tools'
/usr/bin/gcc -c -I../libtiff -I../libtiff -g -O -I. -I../tools
-I../libtiff ../tools/fax2tiff.c
/usr/bin/gcc -o fax2tiff -g -O -I. -I../tools -I../libtiff fax2tiff.o
../libtiff/libtiff.so.4 -L../../src/jpeg-6b -ljpeg -L../../zlib -lz
-lm
/usr/bin/gcc -c -g -O -I. -I../tools -I../libtiff ../tools/fax2ps.c
/usr/bin/gcc -o fax2ps -g -O -I. -I../tools -I../libtiff fax2ps.o
../libtiff/libtiff.so.4 -L../../src/jpeg-6b -ljpeg -L../../zlib -lz
-lm
/usr/bin/gcc -c -g -O -I. -I../tools -I../libtiff ../tools/gif2tiff.c
[...]

As a quick fix I put a !#define JPEG_SUPPORT 1" into tiff2pdf.c and
got the functionality I wanted.

Kind regards


Michael

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