We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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?
The text was updated successfully, but these errors were encountered:
freetypecheck: Use strverscmp instead of strcmp
eb3b7d9
Fixes Freetype check fails openjdk-mirror#6 strcmp fails with lexicographical comp
No branches or pull requests
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:
Is there any fix available?
Can you give me any suggestions to fix this issue?
The text was updated successfully, but these errors were encountered: