msvc-wine icon indicating copy to clipboard operation
msvc-wine copied to clipboard

fatal error C1902: Program database manager mismatch; please check your installation

Open rom4s opened this issue 5 years ago • 6 comments

caused:

005a:err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.

additional package required:

sudo apt install winbind

rom4s avatar Jan 30 '20 20:01 rom4s

This is a known issue (but which I probably haven't written down anywhere here); anything relating to PDB files doesn't really work (at least not the normal way that it's done, where a separate debug "server" process writes a PDB file, and the compiler processes communicate with this process).

So depending on build system, you might need disable debug info.

mstorsjo avatar Jan 30 '20 20:01 mstorsjo

I met the same problem when compiling vim. The problem appeared because that cl tried to enable multiple process compilation, which wine may not support, and cause a race condition on the pdb file. After disabling /MP in cl arguments, the compilation succeeded.

I am not sure whether it is exactly a same problem, but hope it helps.

Cryspia avatar Apr 15 '20 20:04 Cryspia

Yes, avoiding concurrent writes to the PDB file kind of works. For newer MSVC versions it seems like it works if you use /Z7 instead of /Zi as well, for enabling the debug info - /Z7 uses the "old" behaviour of the compiler writing the debug info into the object files, leaving it up to the linker to merge it.

mstorsjo avatar Apr 16 '20 11:04 mstorsjo

Are you using a custom build of wine? I fixed (at least that wine parallel bug) by installing winbind.

powpingdone avatar Aug 10 '20 21:08 powpingdone

I was also able to fix this one by complementing @mstorsjo great work with winbind installation:

sudo apt install winbind
sudo service winbind start

dmikushin avatar Jan 31 '21 15:01 dmikushin

For archlinux also need to install samba packet. Starting service not required.

pacman -S libwbclient samba

sr-tream avatar Sep 01 '23 18:09 sr-tream