<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">On 10. Aug 2021, at 14.17, Michael Ströder <<a href="mailto:michael@stroeder.com" class="">michael@stroeder.com</a>> wrote:<br class=""><div><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><meta charset="UTF-8" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">On 8/10/21 11:16 AM, Timo Sirainen wrote:</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">On 10. Aug 2021, at 10.33, Michael Ströder <<a href="mailto:michael@stroeder.com" class="">michael@stroeder.com</a>> wrote:<br class=""><blockquote type="cite" class=""><br class="">On 8/10/21 10:02 AM, Milan P. Stanić wrote:<br class=""><blockquote type="cite" class="">I'm trying to upgrade dovecot from version 2.3.15 to 2.3.16 for alpine<br class="">linux. Build and 'make check' pass on all alpine architectures except on<br class="">s390x which is big-endian while all other are little-endian.<br class=""></blockquote><br class="">You're probably hitting the same issues like me on openSUSE.<br class=""><br class="">See Timo's response to that:<br class=""><br class=""><a href="https://dovecot.org/pipermail/dovecot/2021-August/122787.html" class="">https://dovecot.org/pipermail/dovecot/2021-August/122787.html</a><br class=""></blockquote><br class="">The attached patch probably helps?<br class=""></blockquote><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Assuming I've applied the patch correctly it does not help on ppc64 and</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">S/390:</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><a href="https://build.opensuse.org/package/show/home:stroeder:network/dovecot23" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://build.opensuse.org/package/show/home:stroeder:network/dovecot23</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""></div></blockquote></div><br class=""><div class="">Well, that's annoying. I thought it would have worked. I wonder if it's still some issue with the #if not being right. Can you try once more with disabling the #if lines, i.e. just:</div><div class=""><br class=""></div><div class=""><div class=""><div class="">+static void</div><div class="">+copy_to_buf_last_used(struct mail_cache *cache, buffer_t *dest, bool add_new)</div><div class="">+{</div><div class="">+<span class="Apple-tab-span" style="white-space:pre">   </span>size_t offset = offsetof(struct mail_cache_field, last_used);</div><div class="">+//#if defined(WORDS_BIGENDIAN) && TIME_T_BITS > 32</div><div class="">+<span class="Apple-tab-span" style="white-space:pre">    </span>offset += sizeof(uint32_t);</div><div class="">+//#endif</div><div class="">+<span class="Apple-tab-span" style="white-space:pre">   </span>copy_to_buf(cache, dest, add_new, offset, sizeof(uint32_t));</div><div class="">+}</div></div></div><div class=""><br class=""></div><div class="">If that doesn't work either, I'd somehow need to get access to a big-endian CPU to try to figure out where it's going wrong.</div><div class=""><br class=""></div></body></html>