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

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi,

I am having trouble getting my MSVC Express 2005 / Platform SDK environment (downloaded from Microsoft about two weeks ago) so that it can compile debug binaries.

If I dont give cl the -Zi option, I can compile and link correctly, but with -Zi, I get the following:

$ /cygdrive/e/users/cmiss/physiome_builds/trees/xpcellml_api/cygwin-wrapper  cl -c -Zi -DXP_WIN32 -DXP_WIN -DWIN32 -D_WIN32 -DNO_X11 -EHsc -TP -nologo -MD -D__WIN32__ -DXP_WIN -DXP_WIN32 -D__x86__  -I/cygdrive/e/users/cmiss/physiome_builds/trees/mozilla_trunk/obj-i686-pc-cygwin/stablexr/dist/include/xpcom/ -I/cygdrive/e/users/cmiss/physiome_builds/trees/mozilla_trunk/obj-i686-pc-cygwin/stablexr/dist/include/nspr/ -I/cygdrive/e/users/cmiss/physiome_builds/trees/mozilla_trunk/obj-i686-pc-cygwin/stablexr/dist/include/necko/ -I/cygdrive/e/users/cmiss/physiome_builds/trees/mozilla_trunk/obj-i686-pc-cygwin/stablexr/dist/include/string/ -I/cygdrive/e/users/cmiss/physiome_builds/trees/XPCORBA/src -I/cygdrive/e/users/cmiss/physiome_builds/trees/XPCORBA -I/cygdrive/e/users/cmiss/physiome_builds/trees/XPCORBA/stubs -I/cygdrive/e/users/cmiss/physiome_builds/trees/XPCORBA/xpidls -I/cygdrive/e/users/cmiss/omniorb/VC8/omniORB-4.0.7/include -I/cygdrive/e/users/cmiss/omniorb/VC8/omniORB-4.0.7/include/omniORB4 -I stubs -Fostubs/MathML_content_APISPEC_xpcom.obj stubs/MathML_content_APISPEC_xpcom.cc
MathML_content_APISPEC_xpcom.cc
stubs/MathML_content_APISPEC_xpcom.cc : fatal error C1902: Program database manager mismatch; please check your installation

It seems a few other people have had this error, but it looks like their underlying problem is different:

http://msdn2.microsoft.com/en-us/library/8y7hea02.aspx
"This error usually indicates that mspdbsrv.exe or mspdbcore.dll are
missing or have different versions from mspdb80.dll. Ensure matching
versions of mspdbsrv.exe, mspdbcore.dll, and mspdb80.dll are installed
on your system."
I have checked, the only mspdbsrv.exe, mspdbcore.dll, and mspdb80.dll found on the Win32 build box are in "/cygdrive/c/Program Files/Microsoft Visual Studio 8/Common7/IDE/", and these are the files put there by the MSVC Express installer. I have checked that the cl.exe getting run is from MSVC 2005 Express.

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=81208&SiteID=1
suggests that the install is corrupt. However, I have tried re-installing MSVC8 with no success. Nothing has been installed more recently than MSVC8, and I dont have a mspdb80.dll in VC/Bin as one of the posts suggests deleting.

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=10577&SiteID=1
suggests that it is due to mspdb80.dll in system32, which I dont have.

http://forums.microsoft.com/msdn/showpost.aspx?postid=120192&siteid=1
suggests deleting all output files, "<span id="_ctl0_MainContent_PostFlatView <span>Specially the pch files". However, in the stubs directory, the only files generated by MSVC are .obj files, and deleting them doesnt help. Are there files getting put outside of my build directory somewhere?

http://support.microsoft.com/kb/920770/EN-US/ suggests that this can happen when you run through at or a scheduled task. Although my builds do normally run through a cronjob on a Linux box, which initiates the build on Win32, this problem happens when I manually initiate it. Note that I am building as a non-privileged account.

Having eliminated all the existing problems, I suppose this is a new one? Any ideas on how I can fix this?



View the full article
 
Back
Top