Solved Widevine stopped working after update

EDIT: It was just a user error on my side. Everything works as intended and as expected.


I updated the linux-widevine-cdm port and now it doesn't work anymore. I fixed all the paths that have changed in the latest release and now I'm sure that the browser tries to load the shared object but it fails with this error:


Code:
[3412:13098127794176:1216/081716.396736:ERROR:content_main_runner_impl.cc(439)] Unable to load CDM /usr/local/lib/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so (error: Shared object "libdl.so.2" not found, required by "libwidevinecdm.so")

However, the library is definitely present on my system:

Code:
┬─[fmc000@tu45b-freebsd:/u/src]─[08:14:31]
╰─>$ pkg list linux_base-c7-7.9.2009_3|grep libdl
/compat/linux/usr/lib/libdl-2.17.so
/compat/linux/usr/lib/libdl.so.2
/compat/linux/usr/lib64/libdl-2.17.so
/compat/linux/usr/lib64/libdl.so.2
┬─[fmc000@tu45b-freebsd:/u/src]─[08:19:50]
╰─>$ file /compat/linux/usr/lib/libdl.so.2
/compat/linux/usr/lib/libdl.so.2: symbolic link to libdl-2.17.so
┬─[fmc000@tu45b-freebsd:/u/src]─[08:20:19]
╰─>$ file /compat/linux/usr/lib64/libdl.so.2
/compat/linux/usr/lib64/libdl.so.2: symbolic link to libdl-2.17.so
┬─[fmc000@tu45b-freebsd:/u/src]─[08:20:27]
╰─>$ file /compat/linux/usr/lib/libdl-2.17.so
/compat/linux/usr/lib/libdl-2.17.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=dbaca2d49cab7e7aff8529362cbed5bd28bc9b20, for GNU/Linux 2.6.32, not stripped
┬─[fmc000@tu45b-freebsd:/u/src]─[08:20:37]
╰─>$ file /compat/linux/usr/lib64/libdl-2.17.so
/compat/linux/usr/lib64/libdl-2.17.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=7f2e9cb0769d7e57bd669b485a74b537b63a57c4, for GNU/Linux 2.6.32, not stripped
┬─[fmc000@tu45b-freebsd:/u/src]─[08:20:48]
╰─>$

Kernel modules are loaded:

Code:
┬─[fmc000@tu45b-freebsd:/u/src]─[08:20:48]
╰─>$ kldstat|grep linux
10    2 0xffffffff8466a000     4120 linuxkpi_video.ko
21    1 0xffffffff84848000    30a80 linux.ko
22    4 0xffffffff84879000     c2a8 linux_common.ko
23    1 0xffffffff84886000    2de10 linux64.ko
┬─[fmc000@tu45b-freebsd:/u/src]─[08:21:39]
╰─>$

And the Linux compatibility layer is enabled:

Code:
┬─[fmc000@tu45b-freebsd:/u/src]─[08:21:39]
╰─>$ sysrc -a |grep linux
linux_enable: YES
┬─[fmc000@tu45b-freebsd:/u/src]─[08:22:04]
╰─>$

What am I doing wrong?
 

With the previous release the widevine library was installed in /usr/local/share/chromium/WidevineCdm whilst the current one installs it under /usr/local/lib/WidevineCdm


Absolutely wrong. Nothing changed.
 
I'm making progresses. Copying /compat/lib64/libdl.so.2 makes Widewine complaining about libpthread.so.0 . It looks like it's not using /compat/linux as the base, I wonder why.
 
FreeBSD's ldd doesn't work for Linux binaries. Anyways, I copied under /usr/local/lib:


Code:
-rwxr-xr-x    1 root wheel    19248 Dec 16 11:49 libdl.so.2*
-rwxr-xr-x    1 root wheel   142144 Dec 16 11:52 libpthread.so.0*
-rwxr-xr-x    1 root wheel  1136944 Dec 16 11:53 libm.so.6*
-rwxr-xr-x    1 root wheel  2156592 Dec 16 11:53 libc.so.6*
-rwxr-xr-x    1 root wheel   163312 Dec 16 11:54 ld-linux-x86-64.so.2*

and now I get a different error:

Code:
[2797:61900725493760:1216/115720.577516:ERROR:content_main_runner_impl.cc(439)] Unable to load CDM /usr/local/lib/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so (error: /usr/local/lib/libpthread.so.0: No space available for static Thread Local Storage)
 
Please ignore all this nonsense - it was just user error on my part. Is it possible to delete the thread so that it doesn't come up in searches?
 
Could you define the error you made? If you made it, then others might make it. Having it listed may prevent others from going down the path you took.
 
I wanted to try www/linux-brave.

During the installation it brought in lots of linux-emulation related packages (about 100, maybe more) and I did not notice that it removed the previously installed www/foreign-cdm and replaced emulators/linux_base-c7. However, this browser proved to be absolutely unstable under FreeBSD, it crashed all the time when loggin in to Gmail for example, so I uninstalled www/linux-brave and its dependencies and reinstalled emulators/linux_base-c7.

As www/linux-widevine-cdm didn't work anymore I tried rebuilding it from ports and (unsurprisingly of course) it didn't work, hence I posted this thread.

The simple fix was of course reinstalling www/foreign-cdm and rebooting the laptop.
 
Back
Top