Summary: | media-libs/mlt-6.6.0 - mlt_wrap.cxx:(.text+0xaf9): undefined reference to `mlt_global_properties' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Fabio Coatti <fabio.coatti> |
Component: | Current packages | Assignee: | Gentoo Media-video project <media-video> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alex, andrius, jouni.kosonen, kde, luisav.ferreira, randy-andy- |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/9371 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 663562 | ||
Bug Blocks: | 618550 | ||
Attachments: |
build.log
emerge info for x86_64/6core unit build.log for same machone Possible patch |
Description
Fabio Coatti
2018-03-12 07:28:24 UTC
Created attachment 523552 [details]
build.log
Probably LTO-related (In reply to Michael Palimaka (kensington) from comment #2) > Probably LTO-related I would not be sure of that, or at least it is something than the usual behaviour of non-lto friendly packages. Looking at build logs, you may see that I disabled LTO for this package: [...]-flto=4 -fuse-linker-plugin -fno-lto [...] Indeed, if I compile it with LTO enabled the linker will spit out many more messages and fail in a different way. Created attachment 524480 [details]
emerge info for x86_64/6core unit
Created attachment 524482 [details]
build.log for same machone
The package is emerged correctly if I turn off ruby use flag. The first error when is not built is the following: Building lua...OK Building ruby...OK make[2]: Entering directory '/var/tmp/portage/media-libs/mlt-6.6.0/work/mlt-6.6.0/src/swig/ruby' linking shared-object mlt.so mlt_wrap.o: In function `_wrap_mlt_global_properties(int, unsigned long*, unsigned long)': mlt_wrap.cxx:(.text+0xaf9): undefined reference to `mlt_global_properties' mlt_wrap.o: In function `_wrap_mlt_factory_close(int, unsigned long*, unsigned long)': Without ruby, the compilation completes even with lto enabled. I ran into the same problem during an @world update.
>>> Failed to emerge media-libs/mlt-6.6.0, Log file:
>>> '/var/tmp/portage/media-libs/mlt-6.6.0/temp/build.log'
>>> Jobs: 404 of 643 complete, 1 failed Load avg: 2.98, 3.00, 3.46
*** Resuming merge...
Calculating dependencies... done!
* emerge --keep-going: kde-apps/kde-apps-meta-18.04.1 dropped because it
* requires >=kde-apps/kdemultimedia-meta-18.04.1
* emerge --keep-going: kde-apps/kdenlive-18.04.1 dropped because it requires
* >=media-libs/mlt-6.6.0[ffmpeg,kdenlive,melt,qt5,sdl,xml], >=media-
* libs/mlt-6.6.0[ffmpeg,kdenlive,melt,qt5,sdl,xml]
* emerge --keep-going: kde-apps/kdemultimedia-meta-18.04.1 dropped because it
* requires >=kde-apps/kdenlive-18.04.1
* emerge --keep-going: kde-apps/kde-meta-18.04.1 dropped because it requires
* >=kde-apps/kde-apps-meta-18.04.1
When I look at all the in-tree packages which depend on media-libs/mlt:
# equery d -a media-libs/mlt
* These packages depend on media-libs/mlt:
kde-apps/kdenlive-17.12.3 (>=media-libs/mlt-6.4.0[ffmpeg,kdenlive,melt,qt5,sdl,xml])
kde-apps/kdenlive-18.04.1 (>=media-libs/mlt-6.6.0[ffmpeg,kdenlive,melt,qt5,sdl,xml])
media-video/shotcut-18.03 (>=media-libs/mlt-6.6.0[ffmpeg,frei0r,qt5,sdl2,xml])
it appears that none of the depending packages need for mlt to be built with support for ruby.
The only depending package of interest for me was the kdenlive upgrade.
Created attachment 540554 [details, diff]
Possible patch
Those symbols aren't in the c++ side, they are in the c-side.
I've been locally using a userpatch that adds that linkage to the swig build script since March, but I can't seem to find an issue or a PR about it.
I was also affected by this issue after a world update. As mentioned, adding "=media-libs/mlt-6.6.0-r1 -ruby" to package.use allows for mlt to be emerged. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27f16b16970c8fd338fda948ed5c13e6bcdc6f0b commit 27f16b16970c8fd338fda948ed5c13e6bcdc6f0b Author: Jouni Kosonen <jouni.kosonen@tukesoft.com> AuthorDate: 2018-07-28 19:02:56 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2018-08-09 22:19:35 +0000 media-libs/mlt: version bump 6.10.0 Bug: https://bugs.gentoo.org/661842 Bug: https://bugs.gentoo.org/650258 Closes: https://github.com/gentoo/gentoo/pull/9371 media-libs/mlt/Manifest | 1 + .../mlt/files/mlt-6.10.0-swig-underlinking.patch | 12 ++ media-libs/mlt/mlt-6.10.0.ebuild | 220 +++++++++++++++++++++ 3 files changed, 233 insertions(+) |