This is an experimental library to workaround incompatibilities in WSL1.
The idea is to patch binaries that use unimplemented functionality with "polyfills", user-space implementations of the missing functionality.
MAP_FIXED_NOREPLACEis unimplementedgetsockopt(SO_PROTOCOL)is unimplemented forAF_UNIXgetsockopt(SO_DOMAIN)is unimplemented forAF_UNIXmincore()is unimplementedF_OFD_SETLK/F_OFD_GETLKis unimplemented.
Just type make, then copy libwslcompat.so to /usr/local/lib/.
First, verify that this library will fix your program
$ LD_PRELOAD=/usr/local/lib/libwslcompat.so program
If that works, you can make the change permanent
$ patchelf --add-needed /usr/local/lib/libwslcompat.so $(which program)