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

ja2-0.21.0 fails to be built when linking against musl libc #1968

Closed
misanthropos opened this issue Apr 5, 2024 · 2 comments · Fixed by #1969
Closed

ja2-0.21.0 fails to be built when linking against musl libc #1968

misanthropos opened this issue Apr 5, 2024 · 2 comments · Fixed by #1969
Milestone

Comments

@misanthropos
Copy link
Contributor

misanthropos commented Apr 5, 2024

As maintainer of gentoos ja2-stracciatella I have been informed about this:
https://bugs.gentoo.org/928627

This line:

/usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: /var/tmp/portage/games-strategy/ja2-stracciatella-0.21.0/work/cargo_home/gentoo/getrandom-0.2.6/src/util_libc.rs:117:(.text._ZN9getrandom9getrandom17h056e21e14da38d0fE+0x231): undefined reference to `open64'

looks to me it is related to a cargo package. Is there a way we could fix that?

musl libc is a replacement for glibc.

@momoko-h
Copy link
Contributor

momoko-h commented Apr 5, 2024

See the getrandom changelog. Looks like we'd need to switch from 0.2.6 to at least 0.2.9.

@misanthropos
Copy link
Contributor Author

misanthropos commented Apr 5, 2024

Thank you, @momoko-h. This does seem to solve the problem: rust-random/getrandom#326... I have tied some patches but there is more to it and I do not know at the moment how crates and registry work.

@lynxlynxlynx lynxlynxlynx added this to the v0.22 milestone Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants