Page 1 of 1

makemkv will not start NO_ANSWER_FROM_MAKEMKVCON

Posted: Tue Oct 15, 2024 6:24 pm
by modgode
I've been running makemkv under Linux Mate for many years now (payed and registered; currently under Linux Mate 20.04.6 LTS). Few days ago I've noticed an update of makemkv as part of the usual Linux update routine. But when I try to start makemkv now I get a pop-up error message "Application failed to initialize NO_ANSWER_FROM_MAKEMKVCON". I tried uninstalling and reinstalling it using the built-in "Software-Boutique" of Linux Mate at first and when that didn't work I uninstalled it and downloaded the binary and source packages from the forum page and compiled them according to the instructions given there but with the same result. Makemkv just won't start and displays this error message. When I try to start the program from terminal I get a little bit additional information:
/usr/bin/makemkvcon: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /usr/bin/makemkvcon)
/usr/bin/makemkvcon: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /usr/bin/makemkvcon)

As far as my understanding goes I cannot update the listed packages since they are an essential part of the OS. However, I thought that compiling from source should circumvent this problem which obviously isn't the case though. I'd really appreciate this getting fixed since I don't know what else to do (apart from tying to update Linux altogether which I'm usually trying to avoid until my current LTS is definitely end of life).

Re: makemkv will not start NO_ANSWER_FROM_MAKEMKVCON

Posted: Wed Oct 16, 2024 5:35 am
by segfaulted
I'm also running an older distro and ran into this problem. My solution to it won't be pretty but it works.
You don't need to upgrade GNU libc at the system level, but you will need a local copy to run with MakeMKV.

This assumes you have installed gcc to compile code, and patchelf for some executable adjustment.

1) Get the source code for a recent version of GNU libc. The newest one is glibc-2.40 which you can find at https://ftp.gnu.org/gnu/libc/
2) Do the build process. Adjust the paths accordingly for the version of glibc.

Code: Select all

tar xf glibc-2.40.tar.xz
cd glibc-2.40
mkdir build
cd build
../configure --prefix=/usr
make -j8
At this point, the build should be successful and there will a few .so files we need to pick up.

3) First, decide on a path where you will keep the new glibc binaries installed. As an example, I'll use a new folder called glibc240 in my home directory. Run these commands in the same terminal where you just finished building glibc.

Code: Select all

export LIBCPATH=~/glibc240
mkdir $LIBCPATH
cp libc.so $LIBCPATH/libc.so.6
cp dlfcn/libdl.so $LIBCPATH/libdl.so.2
cp nptl/libpthread.so $LIBCPATH/libpthread.so.0
cp rt/librt.so $LIBCPATH/librt.so.1
cp elf/ld.so $LIBCPATH/ld-linux-x86_64.so.2
4) Now to patch the makemkv binaries to use the new glibc build. For safety, take a copy of them into your home folder.

Code: Select all

cd ~
cp /usr/bin/{makemkv,makemkvcon} ~/

patchelf --set-interpreter $LIBCPATH/ld-linux-x86_64.so.2 --set-rpath $LIBCPATH --force-rpath makemkvcon
patchelf --set-interpreter $LIBCPATH/ld-linux-x86_64.so.2 --set-rpath $LIBCPATH --force-rpath makemkv
5) Test the patched executables.

Code: Select all

./makemkvcon
#....you should see the usual help text from makemkvcon here.

./makemkv
#....the GUI should open normally here.
6) If that works, you can now overwrite the patched binaries back to the system.

Code: Select all

sudo cp {makemkvcon,makemkv} /usr/bin
All done.

Re: makemkv will not start NO_ANSWER_FROM_MAKEMKVCON

Posted: Wed Oct 16, 2024 8:18 am
by modgode
You are my hero! :D Worked like a charm! I've locked the versions of makemkv and makemkvcon in synaptic right after the patch to avoid unwanted updates for the time being. Will update only if it stops working and not while it does.

Only thing I had to do in addition to your instructions was to install gawk and bison to successfully build glibc. No big deal. Just wanted to add this info for other users.

Thanks again for your help. It's very much appreciated! :D

Re: makemkv will not start NO_ANSWER_FROM_MAKEMKVCON

Posted: Fri Oct 18, 2024 3:46 pm
by MarkV
I'm having the same problem on Win 10 with version 1.17.8.

Re: makemkv will not start NO_ANSWER_FROM_MAKEMKVCON

Posted: Fri Oct 18, 2024 4:48 pm
by MarkV
I'm don't have the know how to explain this but I noticed two problems at the same time and I'm guessing they were related.

I opened MakeMKV and got this error and then saw another error saying something like "that file path doesn't exist would you like to create it?"

I run MakeMKV on one computer and write to another (that is more modern) that runs Handbrake. I tried to open the shared folder on computer 2 from computer 1 and couldn't. Ran the network trouble shooter and it said that computer 2 was configured correctly buy not responding.

Long story short I rebooted all computers and the entire network and things started working.

Re: makemkv will not start NO_ANSWER_FROM_MAKEMKVCON

Posted: Wed Oct 30, 2024 2:03 pm
by BugStubler
Thank you for your excellent description!

however I ran into trouble:
$ patchelf --set-interpreter $LIBCPATH/ld-linux-x86_64.so.2 --set-rpath $LIBCPATH --force-rpath /usr/bin/makemkvcon
warning: working around a Linux kernel bug by creating a hole of 28672 bytes in ‘/usr/bin/makemkvcon’
$ /usr/bin/makemkvcon
Segmentation fault (core dumped)
$ /usr/bin/makemkv
Segmentation fault (core dumped)

log warn shows:

Code: Select all

[147630.430199] makemkvcon[11820]: segfault at 1 ip 00007f4a3369a57c sp 00007ffd97959078 error 4 in ld-linux-x86_64.so.2[1157c,7f4a33689000+31000] likely on CPU 1 (core 1, socket 0)
[147630.430234] Code: fe 01 00 45 31 db 0f b6 16 44 89 e1 b8 01 00 00 00 84 d2 75 1f eb 47 0f 1f 80 00 00 00 00 84 c9 74 16 0f b6 14 06 48 83 c0 01 <41> 0f b6 4c 01 ff 84 d2 74 2a 38 d1 74 e6 49 83 c3 01 48 81 c6 88
[147636.347315] makemkv[11833]: segfault at 1 ip 00007fea3ee1157c sp 00007ffc6c27ec78 error 4 in ld-linux-x86_64.so.2[1157c,7fea3ee00000+31000] likely on CPU 5 (core 5, socket 0)
[147636.347383] Code: fe 01 00 45 31 db 0f b6 16 44 89 e1 b8 01 00 00 00 84 d2 75 1f eb 47 0f 1f 80 00 00 00 00 84 c9 74 16 0f b6 14 06 48 83 c0 01 <41> 0f b6 4c 01 ff 84 d2 74 2a 38 d1 74 e6 49 83 c3 01 48 81 c6 88
[147647.970879] makemkv[11853]: segfault at 1 ip 00007f059ed0757c sp 00007fffa2a766a8 error 4 in ld-linux-x86_64.so.2[1157c,7f059ecf6000+31000] likely on CPU 0 (core 0, socket 0)
[147647.970922] Code: fe 01 00 45 31 db 0f b6 16 44 89 e1 b8 01 00 00 00 84 d2 75 1f eb 47 0f 1f 80 00 00 00 00 84 c9 74 16 0f b6 14 06 48 83 c0 01 <41> 0f b6 4c 01 ff 84 d2 74 2a 38 d1 74 e6 49 83 c3 01 48 81 c6 88
[147651.779444] makemkvcon[11858]: segfault at 1 ip 00007fb598f7657c sp 00007ffcd9dbe888 error 4 in ld-linux-x86_64.so.2[1157c,7fb598f65000+31000] likely on CPU 0 (core 0, socket 0)
[147651.779489] Code: fe 01 00 45 31 db 0f b6 16 44 89 e1 b8 01 00 00 00 84 d2 75 1f eb 47 0f 1f 80 00 00 00 00 84 c9 74 16 0f b6 14 06 48 83 c0 01 <41> 0f b6 4c 01 ff 84 d2 74 2a 38 d1 74 e6 49 83 c3 01 48 81 c6 88
using a vanilla kernel 6.11.7