home *** CD-ROM | disk | FTP | other *** search
/ Internet File Formats / InternetFileFormatsCD.bin / graphics / tiff / unix / archive.z / archive / text0013.txt < prev    next >
Encoding:
Text File  |  1995-09-20  |  2.2 KB  |  85 lines

  1. > Could I please report a problem with building libtiff (3.3 - 021)
  2. > on DEC ALPHA OSF/1 platform.
  3.  
  4. Which version of DEC OSF/1. It compiles without problem on my machine
  5. that runs OSF/1 2.1.
  6.  
  7. > cc -O -Dunix -non_shared -I.  -c tif_fax3.c
  8. > /usr/lib/cmplrs/cc/cfe: Warning: tif_fax3.c, line 1071: Incompatible 
  9. > pointer type assignment
  10. >                 bp = (char*) lp;
  11. >                 ---^
  12. > /usr/lib/cmplrs/cc/cfe: Warning: tif_fax3.c, line 1130: Incompatible 
  13. > pointer type assignment
  14. >                 bp = (char*) lp;
  15. >                 ---^
  16.  
  17. Two warnings? Most varnings are junk, and these certainly are junk
  18. warnings (cc should be able to convert a 'char *' to a 'u_char *'
  19. without complaining).
  20.  
  21. I have found a real problem thought. DEC's make doesn't Makefile.alpha
  22. (it complains when you try to install it).
  23.  
  24. The following patch fixes Makefile.alpha and remove these two warnings
  25. in tif_fax3.c.
  26.  
  27. *** tif_fax3.c.orig    Fri Sep 30 01:01:36 1994
  28. --- tif_fax3.c    Sun Nov 27 15:57:34 1994
  29. ***************
  30. *** 1068,1074 ****
  31.               span += 8*sizeof (long), bits -= 8*sizeof (long);
  32.               lp++;
  33.           }
  34. !         bp = (char*) lp;
  35.       }
  36.       /*
  37.        * Scan full bytes for all 0's.
  38. --- 1068,1074 ----
  39.               span += 8*sizeof (long), bits -= 8*sizeof (long);
  40.               lp++;
  41.           }
  42. !         bp = (u_char*) lp;
  43.       }
  44.       /*
  45.        * Scan full bytes for all 0's.
  46. ***************
  47. *** 1127,1133 ****
  48.               span += 8*sizeof (long), bits -= 8*sizeof (long);
  49.               lp++;
  50.           }
  51. !         bp = (char*) lp;
  52.       }
  53.       /*
  54.        * Scan full bytes for all 1's.
  55. --- 1127,1133 ----
  56.               span += 8*sizeof (long), bits -= 8*sizeof (long);
  57.               lp++;
  58.           }
  59. !         bp = (u_char*) lp;
  60.       }
  61.       /*
  62.        * Scan full bytes for all 1's.
  63. *** Makefile.alpha.orig    Fri Sep 30 01:01:23 1994
  64. --- Makefile.alpha    Sun Nov 27 16:05:20 1994
  65. ***************
  66. *** 145,152 ****
  67.               ${INSTALL} $$i ${DESTDIR}/lib/$$i; \
  68.           fi \
  69.       done
  70. !     #    ranlib for OSF1 is for compatibility only
  71. !     # ${RANLIB} -t ${DESTDIR}/lib/libtiff.a
  72.   
  73.   installh: ${INCS}
  74.       -test -d ${DESTDIR}/include || mkdir ${DESTDIR}/include
  75. --- 145,152 ----
  76.               ${INSTALL} $$i ${DESTDIR}/lib/$$i; \
  77.           fi \
  78.       done
  79. ! #    ranlib for OSF1 is for compatibility only
  80. ! # ${RANLIB} -t ${DESTDIR}/lib/libtiff.a
  81.   
  82.   installh: ${INCS}
  83.       -test -d ${DESTDIR}/include || mkdir ${DESTDIR}/include
  84.  
  85.