I keep getting this error when I type make libgd-2.2.3 in the Mac terminal:
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [gd_tiff.lo] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
The different errors look like this:
d_tiff.c:678:2: error: 'uint16' is deprecated [-Werror,-Wdeprecated-declarations]
uint16 planar;
Does anyone know what this means and what I can do about it?
I also get errors like this:
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED'
#define TIFF_GCC_DEPRECATED
attribute
((deprecated))
but most refer to uint16 being depcrecatred.
I'm not super experienced in Mac terminal work or image processing, so any help would be much appreciated.
Here's the entire error message:
Making all in src
/Library/Developer/CommandLineTools/usr/bin/make all-am
depbase=`echo gd_tiff.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I/opt/homebrew/Cellar/libpng/1.6.38/include/libpng16 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/Cellar/fontconfig/2.14.1/include -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/Cellar/libtiff/4.4.0_1/include -Werror -g -O2 -fvisibility=hidden -Wall -MT gd_tiff.lo -MD -MP -MF $depbase.Tpo -c -o gd_tiff.lo gd_tiff.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/opt/homebrew/Cellar/libpng/1.6.38/include/libpng16 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/Cellar/fontconfig/2.14.1/include -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/Cellar/libtiff/4.4.0_1/include -Werror -g -O2 -fvisibility=hidden -Wall -MT gd_tiff.lo -MD -MP -MF .deps/gd_tiff.Tpo -c gd_tiff.c -fno-common -DPIC -o .libs/gd_tiff.o
gd_tiff.c:235:2: error: 'uint16' is deprecated [-Werror,-Wdeprecated-declarations]
uint16 extraSamples[1];
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:81:45: note: 'uint16' has been explicitly marked deprecated here
typedef TIFF_MSC_DEPRECATED uint16_t uint16 TIFF_GCC_DEPRECATED;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED'
#define TIFF_GCC_DEPRECATED __attribute__((deprecated))
^
gd_tiff.c:236:2: error: 'uint16' is deprecated [-Werror,-Wdeprecated-declarations]
uint16 *colorMapRed = NULL;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:81:45: note: 'uint16' has been explicitly marked deprecated here
typedef TIFF_MSC_DEPRECATED uint16_t uint16 TIFF_GCC_DEPRECATED;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED'
#define TIFF_GCC_DEPRECATED __attribute__((deprecated))
^
gd_tiff.c:237:2: error: 'uint16' is deprecated [-Werror,-Wdeprecated-declarations]
uint16 *colorMapGreen = NULL;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:81:45: note: 'uint16' has been explicitly marked deprecated here
typedef TIFF_MSC_DEPRECATED uint16_t uint16 TIFF_GCC_DEPRECATED;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED'
#define TIFF_GCC_DEPRECATED __attribute__((deprecated))
^
gd_tiff.c:238:2: error: 'uint16' is deprecated [-Werror,-Wdeprecated-declarations]
uint16 *colorMapBlue = NULL;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:81:45: note: 'uint16' has been explicitly marked deprecated here
typedef TIFF_MSC_DEPRECATED uint16_t uint16 TIFF_GCC_DEPRECATED;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED'
#define TIFF_GCC_DEPRECATED __attribute__((deprecated))
^
gd_tiff.c:290:20: error: 'uint16' is deprecated [-Werror,-Wdeprecated-declarations]
colorMapRed = (uint16 *) gdMalloc(3 * (1 << bitsPerSample));
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:81:45: note: 'uint16' has been explicitly marked deprecated here
typedef TIFF_MSC_DEPRECATED uint16_t uint16 TIFF_GCC_DEPRECATED;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED'
#define TIFF_GCC_DEPRECATED __attribute__((deprecated))
^
gd_tiff.c:295:20: error: 'uint16' is deprecated [-Werror,-Wdeprecated-declarations]
colorMapGreen = (uint16 *) gdMalloc(3 * (1 << bitsPerSample));
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:81:45: note: 'uint16' has been explicitly marked deprecated here
typedef TIFF_MSC_DEPRECATED uint16_t uint16 TIFF_GCC_DEPRECATED;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED'
#define TIFF_GCC_DEPRECATED __attribute__((deprecated))
^
gd_tiff.c:301:20: error: 'uint16' is deprecated [-Werror,-Wdeprecated-declarations]
colorMapBlue = (uint16 *) gdMalloc(3 * (1 << bitsPerSample));
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:81:45: note: 'uint16' has been explicitly marked deprecated here
typedef TIFF_MSC_DEPRECATED uint16_t uint16 TIFF_GCC_DEPRECATED;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED'
#define TIFF_GCC_DEPRECATED __attribute__((deprecated))
^
gd_tiff.c:446:1: error: 'uint16' is deprecated [-Werror,-Wdeprecated-declarations]
uint16 *r, *g, *b;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:81:45: note: 'uint16' has been explicitly marked deprecated here
typedef TIFF_MSC_DEPRECATED uint16_t uint16 TIFF_GCC_DEPRECATED;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED'
#define TIFF_GCC_DEPRECATED __attribute__((deprecated))
^
gd_tiff.c:458:2: error: 'uint16' is deprecated [-Werror,-Wdeprecated-declarations]
uint16 *redcmap, *greencmap, *bluecmap;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:81:45: note: 'uint16' has been explicitly marked deprecated here
typedef TIFF_MSC_DEPRECATED uint16_t uint16 TIFF_GCC_DEPRECATED;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED'
#define TIFF_GCC_DEPRECATED __attribute__((deprecated))
^
gd_tiff.c:459:2: error: 'uint16' is deprecated [-Werror,-Wdeprecated-declarations]
uint16 bps;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:81:45: note: 'uint16' has been explicitly marked deprecated here
typedef TIFF_MSC_DEPRECATED uint16_t uint16 TIFF_GCC_DEPRECATED;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED'
#define TIFF_GCC_DEPRECATED __attribute__((deprecated))
^
gd_tiff.c:471:3: error: 'uint16' is deprecated [-Werror,-Wdeprecated-declarations]
uint16 min_sample_val, max_sample_val;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:81:45: note: 'uint16' has been explicitly marked deprecated here
typedef TIFF_MSC_DEPRECATED uint16_t uint16 TIFF_GCC_DEPRECATED;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED'
#define TIFF_GCC_DEPRECATED __attribute__((deprecated))
^
gd_tiff.c:513:4: error: 'uint16' is deprecated [-Werror,-Wdeprecated-declarations]
uint16 photometric,
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:81:45: note: 'uint16' has been explicitly marked deprecated here
typedef TIFF_MSC_DEPRECATED uint16_t uint16 TIFF_GCC_DEPRECATED;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED'
#define TIFF_GCC_DEPRECATED __attribute__((deprecated))
^
gd_tiff.c:545:27: error: 'uint16' is deprecated [-Werror,-Wdeprecated-declarations]
uint16 photometric,
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:81:45: note: 'uint16' has been explicitly marked deprecated here
typedef TIFF_MSC_DEPRECATED uint16_t uint16 TIFF_GCC_DEPRECATED;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED'
#define TIFF_GCC_DEPRECATED __attribute__((deprecated))
^
gd_tiff.c:632:58: error: 'uint16' is deprecated [-Werror,-Wdeprecated-declarations]
static int createFromTiffTiles(TIFF *tif, gdImagePtr im, uint16 bps, uint16 photometric,
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:81:45: note: 'uint16' has been explicitly marked deprecated here
typedef TIFF_MSC_DEPRECATED uint16_t uint16 TIFF_GCC_DEPRECATED;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED'
#define TIFF_GCC_DEPRECATED __attribute__((deprecated))
^
gd_tiff.c:632:70: error: 'uint16' is deprecated [-Werror,-Wdeprecated-declarations]
static int createFromTiffTiles(TIFF *tif, gdImagePtr im, uint16 bps, uint16 photometric,
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:81:45: note: 'uint16' has been explicitly marked deprecated here
typedef TIFF_MSC_DEPRECATED uint16_t uint16 TIFF_GCC_DEPRECATED;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED'
#define TIFF_GCC_DEPRECATED __attribute__((deprecated))
^
gd_tiff.c:635:2: error: 'uint16' is deprecated [-Werror,-Wdeprecated-declarations]
uint16 planar;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:81:45: note: 'uint16' has been explicitly marked deprecated here
typedef TIFF_MSC_DEPRECATED uint16_t uint16 TIFF_GCC_DEPRECATED;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED'
#define TIFF_GCC_DEPRECATED __attribute__((deprecated))
^
gd_tiff.c:675:58: error: 'uint16' is deprecated [-Werror,-Wdeprecated-declarations]
static int createFromTiffLines(TIFF *tif, gdImagePtr im, uint16 bps, uint16 photometric,
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:81:45: note: 'uint16' has been explicitly marked deprecated here
typedef TIFF_MSC_DEPRECATED uint16_t uint16 TIFF_GCC_DEPRECATED;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED'
#define TIFF_GCC_DEPRECATED __attribute__((deprecated))
^
gd_tiff.c:675:70: error: 'uint16' is deprecated [-Werror,-Wdeprecated-declarations]
static int createFromTiffLines(TIFF *tif, gdImagePtr im, uint16 bps, uint16 photometric,
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:81:45: note: 'uint16' has been explicitly marked deprecated here
typedef TIFF_MSC_DEPRECATED uint16_t uint16 TIFF_GCC_DEPRECATED;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED'
#define TIFF_GCC_DEPRECATED __attribute__((deprecated))
^
gd_tiff.c:678:2: error: 'uint16' is deprecated [-Werror,-Wdeprecated-declarations]
uint16 planar;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:81:45: note: 'uint16' has been explicitly marked deprecated here
typedef TIFF_MSC_DEPRECATED uint16_t uint16 TIFF_GCC_DEPRECATED;
^
/opt/homebrew/Cellar/libtiff/4.4.0_1/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED'
#define TIFF_GCC_DEPRECATED __attribute__((deprecated))
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [gd_tiff.lo] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1