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

AIX UnsatisfiedLinkError: Failed to load library libfontmanager.so #17759

Closed
pshipton opened this issue Jul 10, 2023 · 6 comments
Closed

AIX UnsatisfiedLinkError: Failed to load library libfontmanager.so #17759

pshipton opened this issue Jul 10, 2023 · 6 comments

Comments

@pshipton
Copy link
Member

pshipton commented Jul 10, 2023

OpenJDK jdk_imageio fails.

[2023-06-07T02:19:10.377Z] java.lang.UnsatisfiedLinkError: Failed to load library ("/home/jenkins/workspace/Test_openjdk17_j9_extended.openjdk_ppc64_aix/openjdkbinary/j2sdk-image/lib/libfontmanager.so") rtld: 0712-001 Symbol _ZNK2OT10postV2Tail6subsetEP19hb_subset_context_t was referenced
[2023-06-07T02:19:10.377Z]       from module /home/jenkins/workspace/Test_openjdk17_j9_extended.openjdk_ppc64_aix/openjdkbinary/j2sdk-image/lib/libfontmanager.so(), but a runtime definition
[2023-06-07T02:19:10.377Z]       of the symbol was not found.
[2023-06-07T02:19:10.377Z] 	at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)

Seems like an issue with Harfbuzz 7.0.1 and xlc 16.1.0.11
We can try a later xlc version 16.1.0.14, which also means upgrading the runtime to a minimum of 16.1.0.10

@keithc-ca
Copy link
Contributor

keithc-ca commented Jul 11, 2023

This surprises me: I would have expected that only C linkage functions would be exported/imported across shared library boundaries. The reference doesn't cross the boundary of any shared library: the function definition is simply missing.

@keithc-ca
Copy link
Contributor

I think the problem is in hb-subset.cc. By not including hb-ot-post-table-v2subset.hh there, we have no implementation of bool OT::postV2Tail::subset(hb_subset_context_t *)const.

@jdekonin
Copy link
Contributor

Upgrading to 16.1.0.14 causes a failure in compile with libharfbuzz.

@keithc-ca
Copy link
Contributor

Upgrading to 16.1.0.14 causes a failure in compile with libharfbuzz.

To clarify: It doesn't cause a failure, but if the necessary definitions are visible, compiles fail similarly as compared with the current compiler.

@pshipton
Copy link
Member Author

The workaround for jdk20 is in ibmruntimes/openj9-openjdk-jdk20#71

@keithc-ca
Copy link
Contributor

This should be resolved by the pull requests referenced above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants