Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 683874 - media-libs/mlt-6.14.0 - src_install(): doins: ImportError: libmlt++.so.3: cannot open shared object file: No such file or directory
Summary: media-libs/mlt-6.14.0 - src_install(): doins: ImportError: libmlt++.so.3: can...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 688938
  Show dependency tree
 
Reported: 2019-04-20 06:57 UTC by Michael Rosenbruch
Modified: 2022-09-14 21:18 UTC (History)
4 users (show)

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


Attachments
Output of: ebuild mtl.6.14.0.ebuild install (ebuild_mlt-6.14.0.ebuild_install.txt,18.59 KB, text/plain)
2019-04-20 06:57 UTC, Michael Rosenbruch
Details
Output of: emerge --info (emerge-info.txt,7.41 KB, text/plain)
2019-04-20 07:00 UTC, Michael Rosenbruch
Details
build.log (mlt-6.26.1-r1-build.log,241.49 KB, text/x-log)
2021-06-14 19:29 UTC, Vasiliy Yeremeyev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rosenbruch 2019-04-20 06:57:35 UTC
Created attachment 573466 [details]
Output of: ebuild mtl.6.14.0.ebuild install

Building media-libs/mlt-6.14.0 it fails during the install phase.
Comment 1 Michael Rosenbruch 2019-04-20 07:00:05 UTC
Created attachment 573468 [details]
Output of: emerge --info
Comment 2 Andreas Sturmlechner gentoo-dev 2019-06-29 18:18:46 UTC
Can you reproduce that problem with 6.16.0?
Comment 3 Cyril42e 2020-07-05 15:39:46 UTC
On my side I have the same problem with 6.20, and had it with 6.16 and 6.14 (the last version I was able to successfully install was 6.12).
Comment 4 Cyril42e 2020-07-06 19:24:54 UTC
I can't attach any file, I'm getting an error "Software error: Malformed multipart POST: data truncated"

However I've managed to workaround (fix?) the problem by adding rpath when linking _mlt.so in file src/swig/python/build:

--- build.bak   2020-07-06 10:43:44.462279976 +0200
+++ build       2020-07-06 09:06:46.987238243 +0200
@@ -27,3 +27,3 @@
        # Create the module
-       ${CXX} ${CXXFLAGS} -shared mlt_wrap.o -L../../mlt++ -lmlt++  -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -L../../framework -lmlt $("${PYTHON}-config" --ldflags) -o _mlt.so || exit $?
+       ${CXX} ${CXXFLAGS} -shared mlt_wrap.o -L../../mlt++ -lmlt++  -march=native -O2 -pipe -Wl,-O1 -Wl,-rpath,/var/tmp/portage/media-libs/mlt-6.20.0/work/mlt-6.20.0/src/mlt++ -Wl,-rpath,/var/tmp/portage/media-libs/mlt-6.20.0/work/mlt-6.20.0/src/framework -Wl,--as-needed -L../../framework -lmlt $("${PYTHON}-config" --ldflags) -o _mlt.so || exit $?
 else


I also had another problem:
Fatal Python error: initfsencoding: Unable to get the locale encoding
Traceback (most recent call last):
  File "/usr/lib/python3.7/encodings/__init__.py", line 31, in <module>
  File "/var/tmp/portage/media-libs/mlt-6.20.0/work/mlt-6.20.0/src/swig/python/codecs.py", line 21, in <module>
  File "/var/tmp/portage/media-libs/mlt-6.20.0/work/mlt-6.20.0/src/swig/python/mlt.py", line 524, in __init__
ValueError: invalid null reference in method 'new_Properties', argument 1 of type 'Mlt::Properties &'

Which I "solved" by removing file src/swig/python/codecs.py, because it was loaded instead of /usr/lib64/python3.7/codecs.py. This allowed me to merge the package, and install kdenlive, which seems to run ok...
Comment 5 Vasiliy Yeremeyev 2021-06-14 19:28:44 UTC
Same problem with media-libs/mlt-6.26.1-r1:

Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
Traceback (most recent call last):
  File "/usr/lib/python3.9/encodings/__init__.py", line 31, in <module>
  File "/var/tmp/portage/media-libs/mlt-6.26.1-r1/work/mlt-6.26.1/src/swig/python/codecs.py", line 6, in <module>
  File "/var/tmp/portage/media-libs/mlt-6.26.1-r1/work/mlt-6.26.1/src/swig/python/mlt.py", line 15, in <module>
ImportError: libmlt++.so.3: cannot open shared object file: No such file or directory
Comment 6 Vasiliy Yeremeyev 2021-06-14 19:29:28 UTC
Created attachment 716112 [details]
build.log
Comment 7 Sven Eden 2021-06-18 07:42:54 UTC
(In reply to Vasiliy Yeremeyev from comment #5)
> Same problem with media-libs/mlt-6.26.1-r1:
> 
> Fatal Python error: init_fs_encoding: failed to get the Python codec of the
> filesystem encoding

I had this, too. Fixed it by re-emerging python with:

emerge --oneshot dev-lang/python:3.9
Comment 8 Andreas Sturmlechner gentoo-dev 2022-09-14 21:18:01 UTC
media-libs/mlt is since using a completely different build system. Please re-open in the unlikely event that it happens again.