Subject: | ‘FT_ENCODING_PRC’ undeclared here (1.008) |
On a CentOS 7 system the build fails:
...
gcc -c -I.. -I/usr/include/freetype2 -I/usr/include/libpng15 -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DVERSION=\"0.95\" -DXS_VERSION=\"0.95\" -fPIC "-I/usr/lib64/perl5/CORE" freetyp2.c
In file included from freetyp2.c:43:0:
/usr/include/freetype2/freetype/freetype.h:801:37: error: ‘FT_ENCODING_PRC’ undeclared here (not in a function)
#define ft_encoding_gb2312 FT_ENCODING_PRC
^
freetyp2.c:192:5: note: in expansion of macro ‘ft_encoding_gb2312’
{ ft_encoding_gb2312, 8 },
^
make[1]: *** [freetyp2.o] Error 1
make[1]: Leaving directory `/home/cpansand/.cpan/build/2018123111/Imager-1.008-HinPNp/FT2'
make: *** [subdirs] Error 2
(/usr/bin/make exited with 512)
...
1.007 builds fine on this system.