AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

1993.12.07 14:21 "Funny bug in TIFF 3.30beta", by Stephane Bortzmeyer

(I hope its the correct address for bug reports.)

Hello,

I just tried to compile TIFF 3.30beta I got from sgi.com and it doesn't compile because of a mismatch between:

% gcc -g -I. -c tif_write.c
tif_write.c:565: conflicting types for `TIFFSetWriteOffset'
tiffio.h:182: previous declaration of `TIFFSetWriteOffset'

After examination, it appears the following line in tif_write.c:

TIFFSetWriteOffset(TIFF* tif, off_t off)

should be changed to:

TIFFSetWriteOffset(TIFF* tif, toff_t off)

Here is the context diff:

% diff -c libtiff/tif_write.c.orig libtiff/tif_write.c
*** libtiff/tif_write.c.orig    Tue Dec  7 15:06:46 1993
--- libtiff/tif_write.c Tue Dec  7 15:07:35 1993
***************
*** 561,567 ****
   * appended to the end of the file.
   */
  void
! TIFFSetWriteOffset(TIFF* tif, off_t off)
  {
        tif->tif_curoff = off;
  }
--- 561,567 ----
   * appended to the end of the file.
   */
  void
! TIFFSetWriteOffset(TIFF* tif, toff_t off)
  {
        tif->tif_curoff = off;
  }

Yours,

 -------------

Stephane Bortzmeyer           Conservatoire National des Arts et Metiers        
bortzmeyer@cnam.cnam.fr       Laboratoire d'Informatique
                              292, rue Saint-Martin                     
tel: +33 (1) 40 27 27 31      75141 Paris Cedex 03
fax: +33 (1) 40 27 27 72      France    

"C'est la nuit qu'il est beau de croire a la lumiere." E. Rostand