How to pass linking option to the gcc compiler while building native executable #35208
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 Linux docker instance with Oracle GraalVM 20.0.2+9.1 and 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
As a not GCC expert, I think I could fix my issue linking the two missed libraries with something like
quarkus.native.additional-build-args=-H:CCompilerOption=-llibjaas,-llibmanagement_ext
Is this correct? Any other options?
Beta Was this translation helpful? Give feedback.
All reactions