Wireshark-dev: Re: [Wireshark-dev] Can execute compiled Wireshark/tshark :-(

From: "Maynard, Chris" <Christopher.Maynard@xxxxxxxxx>
Date: Sun, 12 Oct 2008 11:11:07 -0400
According to the LUA website (http://luaforwindows.luaforge.net/), LUA depends on MSVC++ 2005, not 2008; however, that doesn't seem to be the case here, which tells me that the package downloaded from http://anonsvn.wireshark.org/wireshark-win32-libs/tags/2008-10-01/packages/ was built from source against MSVC+ 2008.  In fact, there are two lua packages posted, lua5_1_4_Win32_dll9_lib.zip and lua5_1_dll.zip.  The "dll9" probably means that that one is dependent on msvcr90.dll, rather than msvcr80.dll.

So another possible solution would be to modify your Makefile.nmake file so when you run "nmake -f Makefile.nmake setup", you'll download the other lua package, lua5_1_dll.zip, instead of the default one built against MSVC 2008.  Of course if you require the latest version of lua, then that might not be acceptable to you.  In that case, you could either download the binaries directly from http://luaforge.net/frs/?group_id=377 and copy the dll's to C:\wireshark-win32-libs\lua5.1.4.  Or you could even try to download the lua sources and compile them yourself: http://www.lua.org/ftp/.

But as Anders mentions, installing MSVC2008 should resolve this problem.  I safely run VS6.0 and VS2008 on the same machine.  I have no reason to suspect that you couldn't run 2005 and 2008 on the same machine too (although I have not actually done it so you're on your own there.)

And one other thing you could try is to download and install vcredist_x86.exe for MSVC 2008, which will install the missing DLL's, without having to install MSVC 2008: http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en.

- Chris

> -----Original Message-----
> From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-
> bounces@xxxxxxxxxxxxx] On Behalf Of Anders Broman
> Sent: Sunday, October 12, 2008 10:14 AM
> To: 'Developer support list for Wireshark'
> Subject: Re: [Wireshark-dev] Can execute compiled Wireshark/tshark :-(
> 
> Hi,
> > I have been using VS2005EE to build.
> Any reason to not upgrade to VS2008EE?
> I guess you could get the MSVCR90.DLL from the installer if you download
> A development build. I don't know if you could install the VS2008
> redistributable or if that would overwrite the VS2005 one.
> 
> Another workaround could be to skip LUA or look for a VS2005 version of
> LUA.
> Regards
> Anders
> 
> -----Ursprungligt meddelande-----
> Från: wireshark-dev-bounces@xxxxxxxxxxxxx
> [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] För Abhik Sarkar
> Skickat: den 12 oktober 2008 15:23
> Till: Developer support list for Wireshark
> Ämne: Re: [Wireshark-dev] Can execute compiled Wireshark/tshark :-(
> 
> By using Dependency Walker (http://www.dependencywalker.com/) I
> figured out that this is happening because I am missing two DLLs:
> - MSVCR90.DLL (which seems to be required by the new LUA dll).
> - DWMAPI.DLL (< ieframe.dll < mshtml.dll < ... user32.dll <
> libwireshark.dll)
> 
> I also get this error when running Dependency Walker:
> Error: The Side-by-Side configuration information for
> "f:\wireshark-src\wireshark-gtk2\LUA5.1.DLL" contains errors. This
> application has failed to start because the application configuration
> is incorrect. Reinstalling the application may fix this problem
> (14001).
> 
> It seems to be related to the manifest file related thing that I keep
> hearing about... but my knowledge of Windows specific development is
> zero. Can someone please help!
> 
> Thanks,
> Abhik.
> 
> On Fri, Oct 10, 2008 at 11:51 PM, Abhik Sarkar <sarkar.abhik@xxxxxxxxx>
> wrote:
> > Hi All,
> >
> > Since doing an svn update today, I am not longer able to run wireshark
> > or tshark (on my Windows XP Professional + SP 2). It compiles OK, but
> > when I start up wireshark or tshark, Windows throws up a pop-up with
> > the following message:
> > "The application failed to initialize properly (0xc0150002). Click on
> > OK to terminate the application".
> >
> > I have also tried distclean followed by compile, but that doesn't
> > change the situation.
> >
> > I have been using VS2005EE to build.
> >
> > Any ideas?
> >
> > Thanks,
> > Abhik.
> >
CONFIDENTIALITY NOTICE: The contents of this email are confidential
and for the exclusive use of the intended recipient. If you receive this
email in error, please delete it from your system immediately and 
notify us either by email, telephone or fax. You should not copy,
forward, or otherwise disclose the content of the email.