AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

1994.11.26 17:50 "libtiff v3.3 ALPHA 021", by FLAVELL@v2.ph.gla.ac.uk
1994.11.27 16:10 "Re: libtiff v3.3 ALPHA 021", by Torbj|rn Lindgren

1994.11.27 16:10 "Re: libtiff v3.3 ALPHA 021", by Torbj|rn Lindgren

Could I please report a problem with building libtiff (3.3 - 021) on DEC ALPHA OSF/1 platform.

Which version of DEC OSF/1. It compiles without problem on my machine that runs OSF/1 2.1.

cc -O -Dunix -non_shared -I.  -c tif_fax3.c
/usr/lib/cmplrs/cc/cfe: Warning: tif_fax3.c, line 1071: Incompatible 
pointer type assignment
                bp = (char*) lp;
                ---^
/usr/lib/cmplrs/cc/cfe: Warning: tif_fax3.c, line 1130: Incompatible 
pointer type assignment
                bp = (char*) lp;
                ---^

Two warnings? Most varnings are junk, and these certainly are junk warnings (cc should be able to convert a 'char *' to a 'u_char *' without complaining).

I have found a real problem thought. DEC's make doesn't Makefile.alpha (it complains when you try to install it).

The following patch fixes Makefile.alpha and remove these two warnings in tif_fax3.c.

*** tif_fax3.c.orig     Fri Sep 30 01:01:36 1994
--- tif_fax3.c  Sun Nov 27 15:57:34 1994
***************
*** 1068,1074 ****
                        span += 8*sizeof (long), bits -= 8*sizeof (long);
                        lp++;
                }
!               bp = (char*) lp;
        }
        /*
         * Scan full bytes for all 0's.
--- 1068,1074 ----
                        span += 8*sizeof (long), bits -= 8*sizeof (long);
                        lp++;
                }
!               bp = (u_char*) lp;
        }
        /*
         * Scan full bytes for all 0's.
***************
*** 1127,1133 ****
                        span += 8*sizeof (long), bits -= 8*sizeof (long);
                        lp++;
                }
!               bp = (char*) lp;
        }
        /*
         * Scan full bytes for all 1's.
--- 1127,1133 ----
                        span += 8*sizeof (long), bits -= 8*sizeof (long);
                        lp++;
                }
!               bp = (u_char*) lp;
        }
        /*
         * Scan full bytes for all 1's.
*** Makefile.alpha.orig Fri Sep 30 01:01:23 1994
--- Makefile.alpha      Sun Nov 27 16:05:20 1994
***************
*** 145,152 ****
                ${INSTALL} $$i ${DESTDIR}/lib/$$i; \
            fi \
        done
!       #       ranlib for OSF1 is for compatibility only
!       # ${RANLIB} -t ${DESTDIR}/lib/libtiff.a
  
  installh: ${INCS}
        -test -d ${DESTDIR}/include || mkdir ${DESTDIR}/include
--- 145,152 ----
                ${INSTALL} $$i ${DESTDIR}/lib/$$i; \
            fi \
        done
! #     ranlib for OSF1 is for compatibility only
! # ${RANLIB} -t ${DESTDIR}/lib/libtiff.a
  
  installh: ${INCS}
        -test -d ${DESTDIR}/include || mkdir ${DESTDIR}/include