Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 875785 - media-video/vlc: fails to compile with gcc-13: error: 'uint64_t' does not name a type
Summary: media-video/vlc: fails to compile with gcc-13: error: 'uint64_t' does not nam...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: gcc-13
  Show dependency tree
 
Reported: 2022-10-07 02:58 UTC by WANG Xuerui
Modified: 2022-10-28 15:57 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description WANG Xuerui gentoo-dev 2022-10-07 02:58:11 UTC
Found when trying to upgrade my loong devbox. Any recent gcc-13 should be enough to reproduce and architecture is not relevant here.

In file included from demux/dash/mpd/TemplatedUri.cpp:25:
demux/dash/mpd/TemplatedUri.hpp:56:25: error: ‘uint64_t’ does not name a type
   56 |                         uint64_t value;
      |                         ^~~~~~~~
demux/dash/mpd/TemplatedUri.hpp:25:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   24 | #include <string>
  +++ |+#include <cstdint>
   25 | 
demux/dash/mpd/TemplatedUri.cpp:129:32: error: ‘uint64_t’ was not declared in this scope
  129 | static std::string FormatValue(uint64_t value, int width)
      |                                ^~~~~~~~
demux/dash/mpd/TemplatedUri.cpp:29:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   28 | #include <sstream>
  +++ |+#include <cstdint>
   29 | 
demux/dash/mpd/TemplatedUri.cpp:129:48: error: expected primary-expression before ‘int’
  129 | static std::string FormatValue(uint64_t value, int width)
      |                                                ^~~
demux/dash/mpd/TemplatedUri.cpp:130:1: error: expected ‘,’ or ‘;’ before ‘{’ token
  130 | {
      | ^
demux/dash/mpd/TemplatedUri.cpp: In static member function ‘static std::__cxx11::basic_string<char>::size_type dash::mpd::TemplatedUri::ReplaceDASHToken(std::string&, std::__cxx11::basic_string<char>::size_type, const Token&, const TokenReplacement&)’:
demux/dash/mpd/TemplatedUri.cpp:153:51: error: ‘const class dash::mpd::TemplatedUri::TokenReplacement’ has no member named ‘value’
  153 |             std::string newstr = FormatValue(repl.value, token.width);
      |                                                   ^~~~~
make[4]: *** [Makefile:27117: demux/dash/mpd/libvlc_adaptive_la-TemplatedUri.lo] Error 1

[ebuild     U  ] media-video/vlc-3.0.17.4-r1:0/5-9::gentoo [3.0.17.4:0/5-9::gentoo] USE="X alsa dbus dvbpsi encode ffmpeg fontconfig gcrypt gstreamer gui jack jpeg libsamplerate ncurses ogg opus png pulseaudio ssl svg theora truetype udev upnp v4l vaapi* wayland xml zeroconf -a52 -aom -archive -aribsub -bidi -bluray -cddb -chromaprint -chromecast -dav1d -dc1394 -debug (-directx) -dts -dvd -faad -fdk -flac -fluidsynth -gme -gnome-keyring -ieee1394 -kate -libass -libcaca -libnotify -libtar -libtiger -linsys -lirc -live -lua -macosx-notifications -mad -matroska -modplug -mp3 -mpeg -mtp -musepack -nfs -omxil -optimisememory -projectm -rdp -run-as-root -samba -sdl-image -sftp -shout -sid -skins -soxr -speex -srt -taglib -test* -tremor -twolame (-vdpau) -vnc -vpx -x264 -x265 -zvbi" LUA_SINGLE_TARGET="lua5-1" 0 KiB
Comment 1 Guillermo D. H. 2022-10-18 11:52:20 UTC
This commit should fix this:

https://code.videolan.org/robUx4/vlc/-/commit/6fca76ebd76bf8fce9b111e31bda64015cdc770f

The change is included in VLC 3.0.18
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-28 15:54:34 UTC
(In reply to Guillermo D. H. from comment #1)
> This commit should fix this:
> 
> https://code.videolan.org/robUx4/vlc/-/commit/
> 6fca76ebd76bf8fce9b111e31bda64015cdc770f
> 
> The change is included in VLC 3.0.18

While tagged, it's not actually released yet (no tarball). I'll backport the patch. Thanks!
Comment 3 Larry the Git Cow gentoo-dev 2022-10-28 15:57:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=541281ddd0bef7dcefe265cec675ea8710e5fb68

commit 541281ddd0bef7dcefe265cec675ea8710e5fb68
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-28 15:56:04 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-28 15:56:04 +0000

    media-video/vlc: fix build w/ gcc 13
    
    Closes: https://bugs.gentoo.org/875785
    Signed-off-by: Sam James <sam@gentoo.org>

 media-video/vlc/files/vlc-3.0.17.4-gcc13.patch | 20 ++++++++++++++++++++
 media-video/vlc/vlc-3.0.17.4-r2.ebuild         |  1 +
 2 files changed, 21 insertions(+)