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
Does not compile on linux with musl libc #11
Comments
See http://bluedragon-tinderbox.freeharbor.net/dev-perl/Crypt-Rijndael-1.110.0-r1/temp/build.log for a log of a failed build. |
Actually, perl already defines a U32 and U8, it's probably easiest to reuse those.
That is suboptimally portable, specially 'unsigned int'. |
> Why can't types be used by default or just 'unsigned int' for UINT32 and 'unsigned char' for UINT8?
That is suboptimally portable, specially 'unsigned int'.
Right, int is only at least 32 bits.
|
Actually, it's only at least 16 bytes, though I don't think perl runs on any such platform. |
Leon Timmermans wrote:
I forgot to add "on posix systems". |
Tested compilation on alpine 3.4 with musl 1.1.14. The relevant musl source is here: https://git.musl-libc.org/cgit/musl/tree/include/sys/types.h?h=v1.1.15&id=faf69b9a73d09fafcbe4fd3007b8d8724293d8e1 Closes Leont#11
I suspect the fix won't be different for |
Tested compilation on alpine 3.4 with musl 1.1.14. The relevant musl source is here: https://git.musl-libc.org/cgit/musl/tree/include/sys/types.h?h=v1.1.15&id=faf69b9a73d09fafcbe4fd3007b8d8724293d8e1 Closes #11
- Convert to EAPI6 Upstream: - Fix UINT32 and UINT8 for musl libc Bug: https://bugs.gentoo.org/612096 Bug: Leont/crypt-rijndael#11 Package-Manager: Portage-2.3.66, Repoman-2.3.16 Signed-off-by: Kent Fredric <kentnl@gentoo.org>
Fails with "unkown type name '__uint32_t'". The problem is that musl libc's <sys/types.h> defines _SYS_TYPES_H but not __uint32_t (though it does uint32_t and u_int32_t). musl cannot reliably be detected using macros.
Why can't <stdint.h> types be used by default or just 'unsigned int' for UINT32 and 'unsigned char' for UINT8?
The text was updated successfully, but these errors were encountered: