1994.07.14 09:35 "TIFF library for 64bit machines", by Michael Pichler

1994.07.14 10:20 "Re: TIFF library for 64bit machines", by Fredrik Lundh

Michael,

We want to use the TIFF library on a DEC Alpha, which is a 64 bit machine, to use for InterViews (and xv). Version 3.0 crashes. Have the problems been solved in TIFF library release 3.2 (I did not find a clue in the README file)?

Release 3.2 does NOT work on the AXP platform (except for a patched version I once made myself), but I just installed release 3.30beta (alpha 002) which is alpha-aware and seems to work fine.

However, to get it through the OSF/1 cc, you'll need to carry out a few patches. I've taken myself the freedom to attach them to this mail (not a lot of lines).

/Fredrik

====================================================================
Fredrik Lundh                   |  mail to fredrik_lundh@ivab.se
IV DocEye AB                    |  or call +46 13 200100
Teknikringen 5                  |  or fax to +46 13 214897
583 30 LINKOPING SWEDEN         |  
====================================================================

Patches for libtiff 3.30beta (alpha 002) on the AXP platform:

First copy Makefile.sun to Makefile.axp. Then apply the patches and run "make -f Makefile.axp"

The patches to the c-files are really a bug fix... (Sam! if you're reading this, send me a note, otherwise I'll mail these patches to you some other day).

/Fredrik

*** tif_unix.c  Mon Jul 11 16:45:15 1994
--- tif_unix.c  Mon Jul 11 16:43:02 1994
***************
*** 46,52 ****
  }

  static toff_t
! _tiffSeekProc(thandle_t fd, toff_t off, int whence)
  {
        return ((toff_t) lseek((int) fd, (off_t) off, whence));
  }
--- 46,52 ----
  }

  static toff_t
! _tiffSeekProc(thandle_t fd, off_t off, int whence)
  {
        return ((toff_t) lseek((int) fd, (off_t) off, whence));
  }

*** tif_write.c Mon Jul 11 16:42:15 1994
--- tif_write.c Mon Jul 11 16:43:46 1994
***************
*** 561,567 ****
   * appended to the end of the file.
   */
  void
! TIFFSetWriteOffset(TIFF* tif, toff_t off)
  {
        tif->tif_curoff = off;
  }
--- 561,567 ----
   * appended to the end of the file.
   */
  void
! TIFFSetWriteOffset(TIFF* tif, off_t off)
  {
        tif->tif_curoff = off;
  }
*** Makefile.axp        Fri Aug 27 03:27:18 1993
--- Makefile.axp        Thu Jul 14 12:10:27 1994
***************
*** 30,35 ****
--- 30,37 ----
  RANLIB=       /usr/bin/ranlib
  NULL=

+ INSTALL= installbsd

  IPATH=        -I.
  CONF_LIBRARY=\
        ${NULL}