Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freetype check fails #6

Open
Sangeetha-E opened this issue Jul 5, 2022 · 0 comments
Open

Freetype check fails #6

Sangeetha-E opened this issue Jul 5, 2022 · 0 comments

Comments

@Sangeetha-E
Copy link

Hello,

While trying to build openjdk7 with freetype version 2.12.0, found the below issue.

OpenJDK fails to properly detect freetype version, thinking that 2.12 is less than 2.2.

To detect the freetype version strcmp() function is used. That caused the issue.
https://github.com/openjdk-mirror/jdk7u-jdk/blob/jdk7u6-b08/make/tools/freetypecheck/freetypecheck.c#L87

Here is the error log:

ERROR: FreeType version  2.2.1  or higher is required. 
 make[4]: Entering directory 'openjdk7-7u151-b01/native-build/icedtea-2.6.11/openjdk-boot/jdk/make/tools/freetypecheck'
/bin/mkdir -p openjdk7-7u151-b01/native-build/icedtea-2.6.11/openjdk.build-boot/btbins
rm -f openjdk7-7u151-b01/native-build/icedtea-2.6.11/openjdk.build-boot/btbins/freetype_versioncheck
gcc  -Ifake/include -Ifake/include/freetype2 -DREQUIRED_FREETYPE_VERSION=2.2.1 -o openjdk7-7u151-b01/native-build/icedtea-2.6.11/openjdk.build-boot/btbins/freetype_versioncheck freetypecheck.c -L/usr/lib -Wl,-rpath -Wl,/usr/lib -Lfake/lib -lfreetype   
openjdk7-7u151-b01/native-build/icedtea-2.6.11/openjdk.build-boot/btbins/freetype_versioncheck
Required version of freetype: 2.2.1
Detected freetype headers: 2.12.0
Failed: headers are too old.
Detected freetype library: 2.6.1
make[4]: Leaving directory 'openjdk7-7u151-b01/native-build/icedtea-2.6.11/openjdk-boot/jdk/make/tools/freetypecheck'

Exiting because of the above error(s). 

Is there any fix available?
Can you give me any suggestions to fix this issue?

rprasanth pushed a commit to rprasanth/jdk7u-jdk that referenced this issue Jul 8, 2024
Fixes Freetype check fails openjdk-mirror#6

strcmp fails with lexicographical comp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant