-
-
Notifications
You must be signed in to change notification settings - Fork 487
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
Add define for MIPS_XHASH #471
Conversation
Fixes error: use of undeclared identifier 'DT_MIPS_XHASH' on musl libc
Is it safe to define that constant if it has not already been defined? Is it a glibc specific constant or is it an implementation of something that is standard on MIPS? |
It's a constant in binutils so probably not specific to glibc-only systems I think Edit: Also seems to be defined in Line 2011 in ea2fca7
|
Since this is already defined, why would this PR be necessary? Perhaps the real problem is another one? |
Maybe elf.h from musl libc is included first https://git.musl-libc.org/cgit/musl/tree/include/elf.h which doesn't define There's also a gentoo bug https://bugs.gentoo.org/860888 removing |
I'm confused. So even though patchelf contains the elf.h file used to build and test, it needs to also work with some other elf.h? It seems backwards to me. |
Ok, Gentoo actually removes removes the file which causes the build failure: https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-util/patchelf/patchelf-0.17.2.ebuild#n17 |
Fixes undeclared identifier error on musl libc (Gentoo amd64/clang), see https://mail-index.netbsd.org/source-changes-hg/2021/05/01/msg290415.html