Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 918943 - media-sound/mpd-0.23.13 - ../.../FfmpegIo.cxx: error: AVERROR_EOF was not declared in this scope
Summary: media-sound/mpd-0.23.13 - ../.../FfmpegIo.cxx: error: AVERROR_EOF was not dec...
Status: RESOLVED DUPLICATE of bug 918421
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Adrian Schollmeyer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-01 09:25 UTC by Toralf Förster
Modified: 2023-12-09 18:04 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.60 KB, text/plain)
2023-12-01 09:25 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,175.17 KB, text/plain)
2023-12-01 09:25 UTC, Toralf Förster
Details
environment (environment,154.24 KB, text/plain)
2023-12-01 09:25 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,964 bytes, application/x-xz)
2023-12-01 09:25 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,26.48 KB, application/x-xz)
2023-12-01 09:25 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,8.94 KB, application/x-xz)
2023-12-01 09:25 UTC, Toralf Förster
Details
media-sound:mpd-0.23.13:20231201-052901.log.xz (media-sound:mpd-0.23.13:20231201-052901.log.xz,12.59 KB, application/x-xz)
2023-12-01 09:25 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,45.04 KB, application/x-xz)
2023-12-01 09:25 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,45.03 KB, application/x-xz)
2023-12-01 09:25 UTC, Toralf Förster
Details
mpd-0.23.13-add-ffmpeg-error-include.patch (mpd-ffmpeg-include.patch,281 bytes, patch)
2023-12-01 14:38 UTC, Melker Narikka
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-12-01 09:25:04 UTC
too long lines were shrinked:

[351/549] x86_64-pc-linux-gnu-g++ -Isrc/decoder/plugins/libdecoder_plugins.a.p -Isrc/decoder/plugins -I../mpd-0.23.13/src/decoder/plugins -Isrc -I../mpd-0.23.13/src -I. -I../mpd-0.23.13 -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++17 -ffast-math -ftree-vectorize -Wcast-q
[352/549] x86_64-pc-linux-gnu-g++ -Isrc/decoder/plugins/libdecoder_plugins.a.p -Isrc/decoder/plugins -I../mpd-0.23.13/src/decoder/plugins -Isrc -I../mpd-0.23.13/src -I. -I../mpd-0.23.13 -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++17 -ffast-math -ftree-vectorize -Wcast-q
[353/549] x86_64-pc-linux-gnu-g++ -Isrc/decoder/plugins/libdecoder_plugins.a.p -Isrc/decoder/plugins -I../mpd-0.23.13/src/decoder/plugins -Isrc -I../mpd-0.23.13/src -I. -I../mpd-0.23.13 -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++17 -ffast-math -ftree-vectorize -Wcast-q
FAILED: src/decoder/plugins/libdecoder_plugins.a.p/FfmpegIo.cxx.o 
x86_64-pc-linux-gnu-g++ -Isrc/decoder/plugins/libdecoder_plugins.a.p -Isrc/decoder/plugins -I../mpd-0.23.13/src/decoder/plugins -Isrc -I../mpd-0.23.13/src -I. -I../mpd-0.23.13 -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++17 -ffast-math -ftree-vectorize -Wcast-qual -Wdoub
../mpd-0.23.13/src/decoder/plugins/FfmpegIo.cxx: In member function int AvioStream::Read(void*, int):
../mpd-0.23.13/src/decoder/plugins/FfmpegIo.cxx:44:24: error: AVERROR_EOF was not declared in this scope
   44 |                 return AVERROR_EOF;
      |                        ^~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib-20231127-152538

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.6
Available Rust versions:
  [1]   rust-bin-1.73.0 *
The following VMs are available for generation-2:
1)	OpenJDK 17.0.8.1_p1 [openjdk-17]
2)	OpenJDK 21.0.1_p12 [openjdk-21]
3)	OpenJDK 8.382_p05 [openjdk-8]
4)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-8 
  [2]   openjdk-17 
  [3]   openjdk-21 
  [4]   openjdk-bin-17 
  [5]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit 10538a3c85d0e157c14cd8f065b06b9a9c39ae1e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Dec 1 03:47:55 2023 +0000

    2023-12-01 03:47:53 UTC

emerge -qpvO media-sound/mpd
[ebuild  N    ] media-sound/mpd-0.23.13  USE="alsa audiofile bzip2 cue curl dbus eventfd ffmpeg fifo icu id3tag inotify mad network udisks zlib -ao -cdio -chromaprint -doc -expat -faad -flac -fluidsynth -gme -jack -lame -libmpdclient -libsamplerate -libsoxr -mikmod -mms -modplug -mpg123 -musepack -nfs -openal -openmpt -opus -oss -pipe -pipewire -pulseaudio -qobuz -recorder -samba (-selinux) -sid -signalfd -snapcast -sndfile -sndio -soundcloud -sqlite -systemd -test -twolame -upnp -vorbis -wavpack -webdav -wildmidi -zeroconf -zip"
Comment 1 Toralf Förster gentoo-dev 2023-12-01 09:25:04 UTC
Created attachment 876121 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-01 09:25:06 UTC
Created attachment 876122 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-12-01 09:25:07 UTC
Created attachment 876123 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-01 09:25:08 UTC
Created attachment 876124 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-01 09:25:09 UTC
Created attachment 876125 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-01 09:25:10 UTC
Created attachment 876126 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-01 09:25:11 UTC
Created attachment 876127 [details]
media-sound:mpd-0.23.13:20231201-052901.log.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-01 09:25:12 UTC
Created attachment 876128 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2023-12-01 09:25:13 UTC
Created attachment 876129 [details]
temp.tar.xz
Comment 10 Melker Narikka 2023-12-01 14:38:15 UTC
Created attachment 876217 [details, diff]
mpd-0.23.13-add-ffmpeg-error-include.patch

I've also bumped into this bug a couple of times as of late. Apparently the proper define -- at least as of whatever version of media-libs/ffmpeg:6.1 I've got on my remote box -- lives in `/usr/include/libavutil/error.h'.
   I just checked on my desktop as well and the same applies to =ffmpeg-4.4.4-r8: the define lives in that same header.

Attached is a patch that fixes the build on my machine. The server also seems to output audio just fine over the network.
Comment 11 Melker Narikka 2023-12-01 14:45:55 UTC
Oh, upstream has already dealt with this in their own source tree too:
https://github.com/MusicPlayerDaemon/MPD/commit/50c1e3738a672f933560247b5527d365d17b1c02
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-09 18:04:03 UTC
I think this one is a dupe of bug 918421.

*** This bug has been marked as a duplicate of bug 918421 ***