Hi Adrian,
 
Below mentioned issue is occurring due to endian missmatch. 
s390x is an big endian architecture. In calcurse source under src/sha1.c file custom macro is used(WORDS_BIGENDIAN) to determine host byte order and needs to set manually. If the macro is not defined , littel endian byte order is silently assumed. Hence we can use __BYTE_ORDER__ macro which is commonly available on many systems.
 
 
Alternatively, as we're already using Autoconf, we can add the AC_C_BIGENDIAN macro to configure.ac instead, which should auto-detect endianness and set  WORDS_BIGENDIAN accordingly.
 
Thanks,
Rajendra
 
----- Original message -----
From: "Adrian Bunk" <b...@debian.org>
To: "Debian Bug Tracking System" <sub...@bugs.debian.org>
Cc:
Subject: [EXTERNAL] Bug#1004103: calcurse FTBFS on big endian
Date: Fri, Jan 21, 2022 3:00 AM
 
Source: calcurse
Version: 4.7.1-1
Severity: serious
Tags: ftbfs
Control: block 1002519 by -1

https://buildd.debian.org/status/logs.php?pkg=calcurse&ver=4.7.1-1 

...
FAIL: ical-003.sh
=================

Running ./ical-003.sh... FAIL
FAIL ical-003.sh (exit status: 1)

============================================================================
Testsuite summary for calcurse 4.7.1
============================================================================
# TOTAL: 77
# PASS:  76
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See test/test-suite.log
Please report to b...@calcurse.org
============================================================================
make[6]: *** [Makefile:761: test-suite.log] Error 1



s390x porters Cc'ed to debug this issue.

 
 


Reply via email to