Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932553 - media-libs/gst-plugins-bad-1.22.11-r1 fails to compile: /usr/lib64/libgstcodecs-1.0.so: undefined reference to `gst_av1_parser_reference_frame_loading'
Summary: media-libs/gst-plugins-bad-1.22.11-r1 fails to compile: /usr/lib64/libgstcode...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: GStreamer package maintainers
URL:
Whiteboard: Workaround: emerge -C gst-plugins-bad...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-23 11:11 UTC by daniel
Modified: 2024-06-14 19:19 UTC (History)
3 users (show)

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


Attachments
build.log of the package (build.log,124.83 KB, text/x-log)
2024-05-23 11:11 UTC, daniel
Details
output of `emerge --info '=media-libs/gst-plugins-bad-1.22.11-r1::gentoo'` (emerge--info.txt,18.35 KB, text/plain)
2024-05-23 11:12 UTC, daniel
Details
output of `emerge -pqv '=media-libs/gst-plugins-bad-1.22.11-r1::gentoo'` (emerge-pqv.txt,183 bytes, text/plain)
2024-05-23 11:12 UTC, daniel
Details
environment file of the package (environment.sh,149.55 KB, application/x-shellscript)
2024-05-23 11:13 UTC, daniel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description daniel 2024-05-23 11:11:40 UTC
Created attachment 894044 [details]
build.log of the package

the package 'media-libs/gst-plugins-bad-1.22.11-r1' fails to compile with the following error: 

/usr/lib64/libgstcodecs-1.0.so: undefined reference to `gst_av1_parser_reference_frame_loading'

causing:

```
 * ERROR: media-libs/gst-plugins-bad-1.22.11-r1::gentoo failed (compile phase):
 *   ninja -v -j7 -l6 failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 3816:  Called multilib-minimal_src_compile
 *   environment, line 2694:  Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
 *   environment, line 2961:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 2654:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 2652:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
 *   environment, line  936:  Called multilib-minimal_abi_src_compile
 *   environment, line 2688:  Called multilib_src_compile
 *   environment, line 3181:  Called gstreamer_multilib_src_compile
 *   environment, line 2319:  Called eninja
 *   environment, line 1780:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"
```
Comment 1 daniel 2024-05-23 11:12:27 UTC
Created attachment 894045 [details]
output of `emerge --info '=media-libs/gst-plugins-bad-1.22.11-r1::gentoo'`
Comment 2 daniel 2024-05-23 11:12:53 UTC
Created attachment 894046 [details]
output of `emerge -pqv '=media-libs/gst-plugins-bad-1.22.11-r1::gentoo'`
Comment 3 daniel 2024-05-23 11:13:15 UTC
Created attachment 894047 [details]
environment file of the package
Comment 4 Ben 2024-05-23 19:59:00 UTC
I was googling around for this issue and saw a similar FreeBSD issue that was timestamped within the year.  Not sure how it applies but it gave me the inspiration to remove the _system_ /usr/lib/libgstcodecs.so.0.* ...

After removing the system gstcodecs I tried re-emerging it and it worked!

BTW I exhibited this issue on x86 (32-bit) hence no lib64, so it might be arch independent especially if the workaround works for you.
Comment 5 Ben 2024-05-23 20:03:48 UTC
Oops.  Wanted to make the clarification it was

/usr/lib/libgstcodecs-1.0.so.0.2006.0 that I blew away.

In any case this may be an upstream problem of sorts or else somehow it's working with the wrong file... No clue.
Comment 6 daniel 2024-05-24 08:53:22 UTC
Can confirm! Thanks Ben!

I moved the system libs to root and was able to emerge afterwards:
`mv /usr/lib/libgstcodecs-* /root`

If this means, that it is an upstream issue, this bug report can be closed!?
Comment 7 Ben 2024-05-24 15:30:42 UTC
This is a real issue that needs to be tracked IMHO, just not sure what the proper fix is, whether the ebuild could be changed to fix this or not.

What version of libgstcodecs did you have before installing 1.22.11-r1 ?

Maybe workaround ebuild is to block itself, forcing portage to remove the package before reinstalling it, but not sure about that...
Comment 8 Ben 2024-05-24 15:35:47 UTC
BTW, the very similar FreeBSD bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270095 -- TBH I'm not much of a BSD person, definitely did not run FreeBSD much (only as part of pfSense and running NetBSD on a mipsel machine) so I don't understand what they're doing there.
Comment 9 daniel 2024-05-24 16:36:12 UTC
Since libgstcodecs isn't a package itself, I assume you refer to the version of media-libs/gst-plugins-bad, which has been 1.20.6 before I tried to upgrade to 1.22.11-r1.
Comment 10 Matt Turner gentoo-dev 2024-06-14 19:19:43 UTC
I can confirm the problem and that removing gst-plugins-bad before updating avoids it.