-
Notifications
You must be signed in to change notification settings - Fork 433
Open
Description
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?
Metadata
Metadata
Assignees
Labels
No labels