Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 918421 - media-sound/mpd-0.23.13: Build fails with: error: ‘AVERROR_EOF’ was not declared in this scope
Summary: media-sound/mpd-0.23.13: Build fails with: error: ‘AVERROR_EOF’ was not decla...
Status: RESOLVED FIXED
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: PATCH, PullRequest
: 918943 (view as bug list)
Depends on: 919577
Blocks:
  Show dependency tree
 
Reported: 2023-11-24 19:17 UTC by tuxway+gentoo
Modified: 2024-02-05 15:13 UTC (History)
5 users (show)

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 tuxway+gentoo 2023-11-24 19:17:59 UTC
Build breaks for mpd 0.23.13, 0.23.12 and maybe also versions before with an error like:
...
../mpd-0.23.12/src/decoder/plugins/FfmpegIo.cxx:44:24: error: ‘AVERROR_EOF’ was not declared in this scope
   44 |                 return AVERROR_EOF;
      |                        ^~~~~~~~~~~
...

This was already reported upstream and is fixed on current master: https://github.com/MusicPlayerDaemon/MPD/issues/1898

Seems to be related to ffmpeg 6.1.

Probably the fix will be part of the next release (0.23.15?).

Until then this patch, based on the fix-commit, worked for me:

diff --git a/src/decoder/plugins/FfmpegIo.cxx b/src/decoder/plugins/FfmpegIo.cxx
index 5b5c8b40e..3c3323ce8 100644
--- a/src/decoder/plugins/FfmpegIo.cxx
+++ b/src/decoder/plugins/FfmpegIo.cxx
@@ -26,6 +26,9 @@

 extern "C" {
 #include <libavutil/mem.h>
+#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(58, 29, 100)
+#include <libavutil/error.h>
+#endif
 }

 AvioStream::~AvioStream()
Comment 1 Adrian Schollmeyer 2023-11-24 22:19:12 UTC
Seems like a candidate for backporting. I don't have much time for Gentoo in the next few days. If you have some spare time, feel free to backport the patch to new revisions of the current ebuilds. Otherwise, please be patient until I have time to do the backporting myself :)
Comment 2 Markus Walter 2023-12-05 19:33:53 UTC
I can confirm that the patch solves the issue.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-09 18:04:03 UTC
*** Bug 918943 has been marked as a duplicate of this bug. ***
Comment 4 Adrian Schollmeyer 2023-12-25 10:38:18 UTC
0.23.15 is out, so I've decided to resolve this by doing the version bump.
Comment 5 Agostino Sarubbo gentoo-dev 2024-01-01 14:37:51 UTC
gcc14_tinderbox has reproduced this issue with version 0.23.13 - Updating summary.
Comment 6 Larry the Git Cow gentoo-dev 2024-01-02 06:20:07 UTC
The bug has been closed via the following commit(s):

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

commit df386036ecd943a2e350feb082f9aa48216cfa93
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-01-02 06:19:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-02 06:19:46 +0000

    media-sound/mpd: backport ffmpeg-6.1 fix
    
    Closes: https://bugs.gentoo.org/918421
    Signed-off-by: Sam James <sam@gentoo.org>

 media-sound/mpd/files/mpd-0.23.13-ffmpeg-6.1.patch | 14 ++++++++++++++
 media-sound/mpd/mpd-0.23.13.ebuild                 |  6 +++++-
 2 files changed, 19 insertions(+), 1 deletion(-)
Comment 7 Larry the Git Cow gentoo-dev 2024-02-05 15:13:57 UTC
The bug has been closed via the following commit(s):

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

commit e052555c5ead5ea46c5b8d5ebc61f9e89a4d5fa8
Author:     Adrian Schollmeyer <nex+b-g-o@nexadn.de>
AuthorDate: 2023-11-12 21:11:27 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2024-02-05 15:13:55 +0000

    media-sound/mpd: add 0.23.15
    
    The new version removes unnecessary modifications to the default
    configuration and adds default values for creating the PID file and log
    file in FHS directories.
    
    Co-Authored-By: Jeroen Roovers <jer@xs4all.nl>
    Closes: https://bugs.gentoo.org/872668
    Closes: https://bugs.gentoo.org/918421
    Closes: https://bugs.gentoo.org/919577
    Signed-off-by: Adrian Schollmeyer <nex+b-g-o@nexadn.de>
    Closes: https://github.com/gentoo/gentoo/pull/34469
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 media-sound/mpd/Manifest                    |   1 +
 media-sound/mpd/files/mpd-0.23.15.init      |  61 ++++++
 media-sound/mpd/files/mpd-0.23.15.logrotate |   9 +
 media-sound/mpd/mpd-0.23.15.ebuild          | 284 ++++++++++++++++++++++++++++
 4 files changed, 355 insertions(+)