Summary: | net-libs/webkit-gtk-2.36.1 -- error: 'gst_codec_utils_caps_get_mime_codec' was not declared in this scope; | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Gary E. Miller <gem> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gem, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 839939 | ||
Bug Blocks: | |||
Attachments: | build log |
Description
Gary E. Miller
2022-05-12 21:10:36 UTC
```
/var/tmp/portage/net-libs/webkit-gtk-2.36.1/work/webkitgtk-2.36.1/Source/WebCore/platform/graphics/gstreamer/AudioTrackPrivateGStreamer.cpp: In member function 'void WebCore::AudioTrackPrivateGStreamer::updateConfigurationFromCaps()':
/var/tmp/portage/net-libs/webkit-gtk-2.36.1/work/webkitgtk-2.36.1/Source/WebCore/platform/graphics/gstreamer/AudioTrackPrivateGStreamer.cpp:94:28: error: 'gst_codec_utils_caps_get_mime_codec' was not declared in this scope; did you mean 'gst_codec_utils_h265_get_level_idc'?
94 | GUniquePtr<char> codec(gst_codec_utils_caps_get_mime_codec(caps.get()));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| gst_codec_utils_h265_get_level_idc
ninja: build stopped: subcommand failed.
* ERROR: net-libs/webkit-gtk-2.36.1::gentoo failed (compile phase):
* ninja -v -j2 -l2 failed
*
* Call stack:
* ebuild.sh, line 127: Called src_compile
* environment, line 3963: Called cmake_src_compile
* environment, line 1738: Called cmake_build
* environment, line 1707: Called eninja
* environment, line 2233: Called die
* The specific snippet of code:
* "$@" || die "${nonfatal_args[@]}" "${*} failed"
*
* If you need support, post the output of `emerge --info '=net-libs/webkit-gtk-2.36.1::gentoo'`,
* the complete build log and the output of `emerge -pqv '=net-libs/webkit-gtk-2.36.1::gentoo'`.
* The complete build log is located at '/var/log/elog/net-libs:webkit-gtk-2.36.1:20220512-190553.log'.
* For convenience, a symlink to the build log is located at '/var/tmp/portage/net-libs/webkit-gtk-2.36.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-libs/webkit-gtk-2.36.1/temp/environment'.
* Working directory: '/var/tmp/portage/net-libs/webkit-gtk-2.36.1/work/webkit-gtk-2.36.1_build'
* S: '/var/tmp/portage/net-libs/webkit-gtk-2.36.1/work/webkitgtk-2.36.1'
>>> Failed to emerge net-libs/webkit-gtk-2.36.1, Log file:
```
Created attachment 778403 [details]
build log
build log
gst_codec_utils_caps_get_mime_codec() is available only since gstreamer-1.20 which is not yet stabilized: https://github.com/GStreamer/gst-plugins-base/blob/ce937bcb21412d7b3539a2da0509cc96260562f8/gst-libs/gst/pbutils/codec-utils.c#L2355 (In reply to Tee KOBAYASHI from comment #3) > gst_codec_utils_caps_get_mime_codec() is available only since gstreamer-1.20 > which is not yet stabilized: > > https://github.com/GStreamer/gst-plugins-base/blob/ > ce937bcb21412d7b3539a2da0509cc96260562f8/gst-libs/gst/pbutils/codec-utils. > c#L2355 I don't want to think that hard when emerging. I'm trying now with USE=-gstreamer (In reply to Gary E. Miller from comment #4) > (In reply to Tee KOBAYASHI from comment #3) > > gst_codec_utils_caps_get_mime_codec() is available only since gstreamer-1.20 > > which is not yet stabilized: > > > > https://github.com/GStreamer/gst-plugins-base/blob/ > > ce937bcb21412d7b3539a2da0509cc96260562f8/gst-libs/gst/pbutils/codec-utils. > > c#L2355 > > I don't want to think that hard when emerging. > > I'm trying now with USE=-gstreamer I think the remark was more for us to fix/change the dependency. (In reply to Sam James from comment #5) > (In reply to Gary E. Miller from comment #4) > > (In reply to Tee KOBAYASHI from comment #3) > > > gst_codec_utils_caps_get_mime_codec() is available only since gstreamer-1.20 > > > which is not yet stabilized: > > > > > > https://github.com/GStreamer/gst-plugins-base/blob/ > > > ce937bcb21412d7b3539a2da0509cc96260562f8/gst-libs/gst/pbutils/codec-utils. > > > c#L2355 > > > > I don't want to think that hard when emerging. > > > > I'm trying now with USE=-gstreamer > > I think the remark was more for us to fix/change the dependency. Works for me. I can confirm that USE-gstreamer works. (In reply to Tee KOBAYASHI from comment #3) > gst_codec_utils_caps_get_mime_codec() is available only since gstreamer-1.20 > which is not yet stabilized: > > https://github.com/GStreamer/gst-plugins-base/blob/ > ce937bcb21412d7b3539a2da0509cc96260562f8/gst-libs/gst/pbutils/codec-utils. > c#L2355 Thank you. I didn't catch this before when testing and stabilizing webkit. Once gstreamer-1.20 is stable I'll update webkit's dependency. (In reply to Matt Turner from comment #8) > (In reply to Tee KOBAYASHI from comment #3) > > gst_codec_utils_caps_get_mime_codec() is available only since gstreamer-1.20 > > which is not yet stabilized: > > > > https://github.com/GStreamer/gst-plugins-base/blob/ > > ce937bcb21412d7b3539a2da0509cc96260562f8/gst-libs/gst/pbutils/codec-utils. > > c#L2355 > > Thank you. I didn't catch this before when testing and stabilizing webkit. > Once gstreamer-1.20 is stable I'll update webkit's dependency. I have gstreamer 1.20.2 installed, and still get this error. So bumping to 1.20 is not sufficient to fix it. (In reply to Gary E. Miller from comment #9) > (In reply to Matt Turner from comment #8) > > (In reply to Tee KOBAYASHI from comment #3) > > > gst_codec_utils_caps_get_mime_codec() is available only since gstreamer-1.20 > > > which is not yet stabilized: > > > > > > https://github.com/GStreamer/gst-plugins-base/blob/ > > > ce937bcb21412d7b3539a2da0509cc96260562f8/gst-libs/gst/pbutils/codec-utils. > > > c#L2355 > > > > Thank you. I didn't catch this before when testing and stabilizing webkit. > > Once gstreamer-1.20 is stable I'll update webkit's dependency. > > I have gstreamer 1.20.2 installed, and still get this error. So bumping to > 1.20 is not sufficient to fix it. Thanks. In fact the code is protected by a version check: > #if GST_CHECK_VERSION(1, 20, 0) > GUniquePtr<char> codec(gst_codec_utils_caps_get_mime_codec(caps.get())); > configuration.codec = codec.get(); > #endif So I should still update the dependency, but you're right that this is not the whole story... (In reply to Matt Turner from comment #10) > So I should still update the dependency, but you're right that this is not > the whole story... AudioTrackPrivateGStreamer.cpp #includes <gst/pbutils/pbutils.h>, which #includes <gst/pbutils/codec-utils.h> which provides the prototype for gst_codec_utils_caps_get_mime_codec(), so the problem isn't clear to me yet. (In reply to Matt Turner from comment #11) > (In reply to Matt Turner from comment #10) > > So I should still update the dependency, but you're right that this is not > > the whole story... > > AudioTrackPrivateGStreamer.cpp #includes <gst/pbutils/pbutils.h>, which > #includes <gst/pbutils/codec-utils.h> which provides the prototype for > gst_codec_utils_caps_get_mime_codec(), so the problem isn't clear to me yet. Okay, I tried reproducing the failure with gst-1.18.4 and gst-1.20.2 and could not. Can you still reproduce the failure, and if so, could you show the output of `emerge -vp gstreamer gst-plugins-base`? (In reply to Matt Turner from comment #12) > (In reply to Matt Turner from comment #11) > > (In reply to Matt Turner from comment #10) > > > So I should still update the dependency, but you're right that this is not > > > the whole story... > > > > AudioTrackPrivateGStreamer.cpp #includes <gst/pbutils/pbutils.h>, which > > #includes <gst/pbutils/codec-utils.h> which provides the prototype for > > gst_codec_utils_caps_get_mime_codec(), so the problem isn't clear to me yet. > > Okay, I tried reproducing the failure with gst-1.18.4 and gst-1.20.2 and > could not. > > Can you still reproduce the failure, and if so, could you show the output of > `emerge -vp gstreamer gst-plugins-base`? emerging now, takes a wile. ``` spidey ~ # emerge -vp gstreamer gst-plugins-base These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] media-libs/gstreamer-1.20.2:1.0::gentoo USE="caps introspection orc -nls -test -unwind" ABI_X86="(64) -32 (-x32)" 0 KiB [ebuild R ] media-libs/gst-plugins-base-1.20.2:1.0::gentoo USE="X alsa egl gbm introspection ogg opengl orc pango theora vorbis -gles2 -ivorbis -nls -test -wayland" ABI_X86="(64) -32 (-x32)" 0 KiB Total: 2 packages (2 reinstalls), Size of downloads: 0 KiB ``` (In reply to Matt Turner from comment #12) > (In reply to Matt Turner from comment #11) > > (In reply to Matt Turner from comment #10) > > > So I should still update the dependency, but you're right that this is not > > > the whole story... > > > > AudioTrackPrivateGStreamer.cpp #includes <gst/pbutils/pbutils.h>, which > > #includes <gst/pbutils/codec-utils.h> which provides the prototype for > > gst_codec_utils_caps_get_mime_codec(), so the problem isn't clear to me yet. > > Okay, I tried reproducing the failure with gst-1.18.4 and gst-1.20.2 and > could not. > > Can you still reproduce the failure, and if so, could you show the output of > `emerge -vp gstreamer gst-plugins-base`? Works for me today. Thanks! The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=169adc81f429529590c778c8f923663ae547f7af commit 169adc81f429529590c778c8f923663ae547f7af Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2022-05-18 16:23:39 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2022-05-18 16:26:59 +0000 net-libs/webkit-gtk: Version bump to 2.36.2 * Raise gst dependency to >=1.20 (bug #843950) Bug: https://bugs.gentoo.org/845252 Closes: https://bugs.gentoo.org/843950 Signed-off-by: Matt Turner <mattst88@gentoo.org> net-libs/webkit-gtk/Manifest | 1 + net-libs/webkit-gtk/webkit-gtk-2.36.2.ebuild | 250 +++++++++++++++++++++++++++ 2 files changed, 251 insertions(+) |