-
Notifications
You must be signed in to change notification settings - Fork 53
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
tdlib
fails to compile on Big-endian platforms
#319
Comments
Upstream issue: tdlib/td#364 (but with no solution there) |
Hi @barracuda156 - I have checked the There's quite a bit of low-level message packing/parsing, and it's all assuming little-endian / network byte order. I can leave this issue open for a while for visibility though. One thing to consider - nchat could auto-disable Telegram support for big-endian platforms (until tdlib adds support) if that would be useful? At least it would allow building nchat out-of-the-box on such platforms. |
@d99kris Thank you very much for looking into that, I appreciate it. (If you or someone will ever consider fixing that in
I am note sure WhatsApp part will build on any powerpc (or arm BE, or mips, or sparc), but perhaps it is sensible. On ppc32 without Telegram there is nothing to build, since WhatsApp here needs Go, and Go is broken (it is broken even on not-too-recent macOS x86_64). P. S. @glaubitz Just in case, have you looked into |
I tested on Debian s390x (in qemu) and nchat with WhatsApp builds fine there. So there would be some rationale for disabling tdlib under BE, but yeah I would not expect many actual users on this platform. |
@d99kris Re WhatsApp, have you seen this lib? https://github.com/rodarima/libwa UPD. Looks the lib itself needs some fixes now: rodarima/libwa#4 |
Description:
This is not a bug in
nchat
, it is a bug intdlib
. However, maybe you or someone will be interested to help fixing it. So I will appreciate if this is allowed to be open for the time-being.How to reproduce it:
Try building on a Big-endian platform (AFAIK, Linux or *BSD will do, this is not Darwin-specific bug).
Environment:
(However, the issue affects all Big-endian platforms, specific OS is irrelevant.)
The text was updated successfully, but these errors were encountered: