About Blog Contact

Wine bug for Ubuntu 21.10

Just updated to Ubuntu 21.10, and WeChat on Wine (Crossover actually) cannot run. The following error appears:

WeChatWin.dll missing, error code: 126

Upon closer examination of the log, the error has nothing to do with WeChat:

0029:err:module:load_so_dll failed to load .so lib "/home/mengyibai/cxoffice/bin/../lib/wine/wldap32.dll.so": libldap_r-2.4.so.2: cannot open shared object file: No such file or directory
0029:err:module:import_dll Loading library WLDAP32.dll (which is needed by L"C:\\Program Files\\Tencent\\WeChat\\[]\\WeChatWin.dll") failed (error c000007a).

Wine is looking for an x86 version of the libldap library. On Ubuntu 21.10, the name of the shared library had changed to libldap-2.x.so.0, and an x86 version is no longer provided in the official repositories.

The solution is to install it manually, for example this link. This problem is mentioned on Codeweaver’s forum, but their solution doesn’t work for the latest Ubuntu version.

Quite a lot of Windows software is still 32 bit. With the kernel and distributions dropping support for x86, these incompatibilities will pop up more and more often. Also, I find this bug quite stupid: why is the libldap required for running WeChat? I don’t think it uses LDAP at all.