Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 899754 - media-plugins/kodi-inputstream-adaptive-19.0.0 fails to compile (GCC-13-SYSTEM): helpers.cpp:413:8: error: uint16_t is not a member of std
Summary: media-plugins/kodi-inputstream-adaptive-19.0.0 fails to compile (GCC-13-SYSTE...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: gcc-13
  Show dependency tree
 
Reported: 2023-03-06 08:16 UTC by Agostino Sarubbo
Modified: 2023-10-27 03:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,95.77 KB, text/plain)
2023-03-06 08:16 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-03-06 08:16:26 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-plugins/kodi-inputstream-adaptive-19.0.0 fails to compile (GCC-13-SYSTEM).
Discovered on: amd64 (internal ref: gcc13_tinderbox)

NOTE:
(GCC-13-SYSTEM) in the summary means that the bug was found on a machine that runs gcc-13 but this bug MAY or MAY NOT BE related to the new compiler
Comment 1 Agostino Sarubbo gentoo-dev 2023-03-06 08:16:28 UTC
Created attachment 856240 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-03-06 08:16:29 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


FAILED: CMakeFiles/inputstream.adaptive.dir/src/aes_decrypter.cpp.o 
FAILED: CMakeFiles/inputstream.adaptive.dir/src/helpers.cpp.o 
/var/tmp/portage/media-plugins/kodi-inputstream-adaptive-19.0.0/work/inputstream.adaptive-19.0.0-Matrix/src/helpers.cpp:413:8: error: ‘uint16_t’ is not a member of ‘std’; did you mean ‘wint_t’?
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-18 00:27:57 UTC
ping, this should be a trivial missing include, and gcc 13 is about to be released
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-30 06:37:24 UTC
ping, this should be a trivial missing include. please take a look & send the patch upstream as well for other distros
Comment 5 sMueggli 2023-07-04 08:38:18 UTC
FYI: There is a proposed solution in the forums => https://forums.gentoo.org/viewtopic-t-1164046.html
Comment 6 Karlson2k 2023-10-18 06:57:47 UTC
There are two errors:

In file included from /var/tmp/portage/media-plugins/kodi-inputstream-adaptive-19.0.0/work/inputstream.adaptive-19.0.0-Matrix/src/aes_decrypter.h:21,
                 from /var/tmp/portage/media-plugins/kodi-inputstream-adaptive-19.0.0/work/inputstream.adaptive-19.0.0-Matrix/src/aes_decrypter.cpp:19:
/var/tmp/portage/media-plugins/kodi-inputstream-adaptive-19.0.0/work/inputstream.adaptive-19.0.0-Matrix/src/Iaes_decrypter.h:18:31: error: ‘uint8_t’ has not been declared
   18 |   virtual void ivFromSequence(uint8_t* buffer, uint64_t sid) = 0;
      |                               ^~~~~~~
/var/tmp/portage/media-plugins/kodi-inputstream-adaptive-19.0.0/work/inputstream.adaptive-19.0.0-Matrix/src/Iaes_decrypter.h:18:48: error: ‘uint64_t’ has not been declared
   18 |   virtual void ivFromSequence(uint8_t* buffer, uint64_t sid) = 0;
      |                                                ^~~~~~~~


/var/tmp/portage/media-plugins/kodi-inputstream-adaptive-19.0.0/work/inputstream.adaptive-19.0.0-Matrix/src/helpers.cpp: In function ‘std::string avc_to_annexb(const std::string&)’:
/var/tmp/portage/media-plugins/kodi-inputstream-adaptive-19.0.0/work/inputstream.adaptive-19.0.0-Matrix/src/helpers.cpp:413:8: error: ‘uint16_t’ is not a member of ‘std’; did you mean ‘wint_t’?
  413 |   std::uint16_t sz(*avc_data); ++avc_data; --avc_data_size;
      |        ^~~~~~~~
      |        wint_t
/var/tmp/portage/media-plugins/kodi-inputstream-adaptive-19.0.0/work/inputstream.adaptive-19.0.0-Matrix/src/helpers.cpp:414:3: error: ‘sz’ was not declared in this scope
  414 |   sz = (sz << 8) | *avc_data; ++avc_data; --avc_data_size;
      |   ^~
/var/tmp/portage/media-plugins/kodi-inputstream-adaptive-19.0.0/work/inputstream.adaptive-19.0.0-Matrix/src/helpers.cpp:425:10: error: ‘uint16_t’ is not a member of ‘std’; did you mean ‘wint_t’?
  425 |     std::uint16_t ppssz(*avc_data); ++avc_data; --avc_data_size;
      |          ^~~~~~~~
      |          wint_t
/var/tmp/portage/media-plugins/kodi-inputstream-adaptive-19.0.0/work/inputstream.adaptive-19.0.0-Matrix/src/helpers.cpp:426:5: error: ‘ppssz’ was not declared in this scope
  426 |     ppssz = (ppssz << 8) | *avc_data; ++avc_data; --avc_data_size;
      |     ^~~~~
Comment 7 Larry the Git Cow gentoo-dev 2023-10-27 03:20:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c50d3b35196d6364aa52027fdfaded509f388d5

commit 8c50d3b35196d6364aa52027fdfaded509f388d5
Author:     Karlson2k (Evgeny Grin) <k2k@narod.ru>
AuthorDate: 2023-10-18 07:21:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-10-27 03:18:51 +0000

    media-plugins/kodi-inputstream-adaptive: fixed build with GCC 13
    
    Closes: https://bugs.gentoo.org/899754
    Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru>
    Closes: https://github.com/gentoo/gentoo/pull/33385
    Signed-off-by: Sam James <sam@gentoo.org>

 ...di-inputstream-adaptive-19.0.0-gcc-13-fix.patch | 27 ++++++++++++++++++++++
 .../kodi-inputstream-adaptive-19.0.0.ebuild        |  4 ++++
 2 files changed, 31 insertions(+)