How to deal with undefined references during build native images #7128
Replies: 1 comment
-
Just for information: I used googleapis/sdk-platform-java#1344 as a workaround and made it working. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everybody,
I am trying to build a quarkus project on a docker instance with Oracle GraalVM 20.0.2+9.1. I managed to get the native executable file with other project, but with this one I am stuck on following issue:
undefined reference to
Java_com_sun_management_internal_OperatingSystemImpl_initialize0' undefined reference to
Java_com_sun_security_auth_module_UnixSystem_getUnixInfo'I tried to search the GraalVM libraries for references and I have found:
/opt/graalvm-jdk-20.0.2+9.1$ find . -type f | xargs grep _com_sun_security_auth_module_UnixSystem_getUnixInfo
Binary file ./lib/static/linux-amd64/musl/libjaas.a matches
Binary file ./lib/static/linux-amd64/glibc/libjaas.a matches
Binary file ./lib/libjaas.so matches
/opt/graalvm-jdk-20.0.2+9.1$ find . -type f | xargs grep _com_sun_management_internal_OperatingSystemImpl_initialize0
Binary file ./lib/static/linux-amd64/musl/libmanagement_ext.a matches
Binary file ./lib/static/linux-amd64/glibc/libmanagement_ext.a matches
Binary file ./lib/libmanagement_ext.so matches
Could I fix my issue with something like
"-H:CCompilerOption=-llibjaas,-llibmanagement_ext"
or should I look for some configuration options in maven? Or there is another solution?
Beta Was this translation helpful? Give feedback.
All reactions