This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Failed to Build Wireshark due to Microsoft Resource File To COFF Object Conversion Utility has stopped working

0

When I run "nmake -f Makefile.nmake all" to build Wireshark for the very first time I got a pop-up from Windows saying "Microsoft Resource File To COFF Object Conversion Utility ha stopped working", and so build fails. In the command prompt where I was doing the build I see the following.

link -nologo -debug -incremental:no -opt:ref -def:win32/zlib.def -dll -implib:zdll.lib -out:zlib1.dll -base:0x5A4C0000 adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj gzwrite.obj infback.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj inffas32.obj match686.obj zlib1.res Creating library zdll.lib and object zdll.exp LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\link.EXE"' : return code '0x463' Stop. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe"' : return code '0x2' Stop.

I have followed Wireshark Developer's Guide to set up my Win32 build environment. I followed all the instructions to download all the necessary tools, verified the tools, and did a distclean first. I have 32-bit Vista and MSVSC++ 10 Express Edition. I also ran "sfc /scannow" to bring all Windows system files up to date.

Anyone has seen this problem before? Any known solution? All suggestions are welcomed!

Thanks,

Chris

asked 23 Sep '12, 12:05

Chris%20Wang's gravatar image

Chris Wang
16112
accept rate: 0%


One Answer:

1

Was able to fix the problem. I think the problem was I had Visual Studio Express 2012 before. Since Wireshark Developer's Guide recommends using VC2010 Express Ed instead, so I uninstalled VC2012 first and then I installed VC2010. It looks like VC2012 was uninstalled fine, but it left behind .NET 4.5 and a bunch of other stuff (many SQL 2012 components). It looks like Wireshark woldn't build under .NET 4.5. So I manually uninstalled .NET 4.5 and other modules that VC2012 uninstallation didn't remove and also uninstall VC2010. Once that's done, I reinstalled VC2010 (which installed .NET 4.0) and now I was able to build Wireshark successfully without seeing that "Microsoft Resource File To COFF Object Conversion Utility has stopped working" error again.

Chris

answered 23 Sep '12, 16:58

Chris%20Wang's gravatar image

Chris Wang
16112
accept rate: 0%