Closed sureshg closed 2 months ago
Hm, is there a way to change the struct definition based on the linked libc? c_ispeed
and c_ospeed
are required on the standard gnu libc, so I don't think there's a single struct definition that works on both.
is there a way to change the struct definition based on the linked libc?
Sorry, I don't know how to do that. A quick search showed a similar issue on OpenJDK - https://bugs.openjdk.org/browse/JDK-8308544
As per this issue both c_ispeed
and c_ospeed
are not Posix standard and not available on musl - https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/termios.h.html
@hubvd @ajalt You folks are awesome, and thanks for fixing the issue. Build is green on all platforms now 👍🏼
I do have a sample GraalVM native image project to create a static image with
musl libc
. Recently the build started failing (not sure if it's because of any change in GH Action env or updating to the latest dependency2.7.1
) with the following error message (com.github.ajalt.mordant.internal.syscalls.nativeimage.LinuxLibC$termios.getC_ispeed()
)Native image builds with mordant are working fine on all other platforms (Windows/Linux/Mac)