Jdk8u: libfontmanager.so: symbol FT_Library_SetLcdFilter: Error

Alvarez, David alvdavi at amazon.com
Mon Mar 29 08:26:00 UTC 2021


Hi,

I've seen this issue in the past, basically it means the version of
Freetype in the system is older than the one used to build the JDK (old
enough that it doesn't contain FT_Library_SetLcdFilter). According to
the documentation, this was added in Freetype 2.3.0 [1]. This wasn't an
issue until the dependency of OpenJDK8 on this function was added by
JDK-8212071 [2]. But that was added on 8u242, so when you say prior to
01/2021, we are talking about at least one year.

In order to solve this issue, you have three options:
- Update your system Freetype to 2.3.0 or higher
- Build a 2.3.0 or higher version in your system and play with
LD_LIBRARY_PATH
- Use a JDK that has freetype statically linked, but I'm not aware of
any public distribution that does it.

Regards,

David

---
[1]
https://tools.ietf.org/doc/libfreetype6/reference/ft2-lcd_filtering.html#FT_Library_SetLcdFilter
[2] https://bugs.openjdk.java.net/browse/JDK-8212071


On 3/28/21 11:18 PM, Jayashree Huttanagoudar wrote:
> CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe.
> 
> 
> 
> Hi Preethi,
> 
> On Fri, Mar 26, 2021 at 10:10 PM preethi selvaraj <preethis00 at gmail.com>
> wrote:
> 
>> Hi Team,
>>
>> I've checked out jdk8u292_b07 tag source and created jdk binaries. When
>> building my project with this jdk, getting below error.
>>
>> [ia] ld.so.1: java: fatal: relocation error: file
>> /common/java/jdk1.8.0_292/jre/lib/amd64/libfontmanager.so: symbol
>> FT_Library_SetLcdFilter: referenced symbol not found
>>
>> With previously generated jdks(may be prior to 01/2021 security update)
>> i've never faced any issues like this.
>>
>> Anything i missed during configure? how to resolve this?
>>
> 
> Have you set LD_LIBRARY_PATH ?
> I don't see any change in readelf output for jdk8u292_b06 and jdk8u292_b07
> w.r.t the symbol 'FT_Library_SetLcdFilter' libfontmanager.so.
> 
> Thanks & Regards,
> Jaya
> 
>>
>> Regards,
>> Preethi
>>
>>



More information about the jdk8u-dev mailing list