[mythtv-commits] [MythTV/mythtv] cb65c9: fixup QtEndian template use (s390x)

Scott Theisen noreply at github.com
Thu Dec 29 11:02:24 UTC 2022


  Branch: refs/heads/fixes/32
  Home:   https://github.com/MythTV/mythtv
  Commit: cb65c9344d3b72ff1d55e536eb748b994583382c
      https://github.com/MythTV/mythtv/commit/cb65c9344d3b72ff1d55e536eb748b994583382c
  Author: Scott Theisen <scott.the.elm at gmail.com>
  Date:   2022-12-29 (Thu, 29 Dec 2022)

  Changed paths:
    M mythtv/libs/libmyth/audio/audiooutpututil.cpp
    M mythtv/libs/libmyth/audio/eldutils.cpp
    M mythtv/libs/libmythtv/io/mythavformatwriter.cpp
    M mythtv/libs/libmythtv/recorders/NuppelVideoRecorder.cpp

  Log Message:
  -----------
  fixup QtEndian template use (s390x)

The error was:
/usr/bin/ld: ../../libs/libmyth/libmyth-32.so: undefined reference to `unsigned long qbswap<unsigned long>(unsigned long)'

This must be from eldutils.cpp: uint64_t is unsigned long, but Qt must
be using quint64 = unsigned long long, which causes the link error.

To fix this, follow the Qt documentation and only use the allowed
types, i.e. quint16, qint16, quint32, qint32, quint64, or qint64.

(cherry picked from commit 8960641b32f751b8198ace9bbfc3378dac20c061)
Signed-off-by: Klaas de Waal <klaas at kldo.nl>




More information about the mythtv-commits mailing list