Skip Menu |
 

This queue is for tickets about the Imager CPAN distribution.

Report information
The Basics
Id: 128142
Status: patched
Priority: 0/
Queue: Imager

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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.
Download (untitled) / with headers
text/plain 1.8k
On Mon Dec 31 05:33:56 2018, SREZIC wrote: Show quoted text
> 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.
1.007 fails to build with the same error for me on CentOS 7, it may be that an update to CentOS introduced the problem. This looks like a problem introduced by a patch by CentOS (or Redhat I guess). Change 464b16ba46c5ce44aa0dae2e67fefe7c2abbd7f1 [1] in freetype renamed FT_ENCODING_GB2312 to FT_ENCODING_PRC, added a compatibility definition for FT_ENCODING_GB2312 and updated the definition of ft_encoding_gb2312 to point at FT_ENCODING_PRC. freetype-2.8-2.4.11-API.patch [2] partly reverts that patch, but fails to revert the definition of ft_encoding_gb2312. Tony [1] http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=464b16ba46c5ce44aa0dae2e67fefe7c2abbd7f1 [2] https://git.centos.org/blob/rpms!freetype.git/c7/SOURCES!freetype-2.8-2.4.11-API.patch


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.