In just the last few weeks, I have successfully gotten up and running with a Wireshark development environment on Windows XP. Listed below are some of the caveats I encountered. I think I'm just a few days away from finishing some (not yet fuzzed) DLL plugin dissectors.
This is what worked for me; YMMV. Josh Moore ________________________________ From: Josh Moore Sent: Tuesday, March 11, 2008 1:49 PM To: '[EMAIL PROTECTED]' Subject: RE: Re: [Wireshark-dev] Trouble with building Wireshark on Win32 Hello Graham Bloice: Actually, perl is not running correctly from the cmd.exe, even though verify_tools shows the correct perl path. From the Cygwin bash command prompt, these perl programs run fine: [EMAIL PROTECTED] ~ $ cd /cygdrive/c/wireshark [EMAIL PROTECTED] /cygdrive/c/wireshark $ perl make-version.pl Version configuration file version.conf not found. Using defaults. This is a build from SVN (or a SVN snapshot). SVN version tag will be computed. svnversion.h has been updated. [EMAIL PROTECTED] /cygdrive/c/wireshark $ perl perlnoutf.pl make-authors-short.pl < AUTHORS > AUTHORS-SHORT [EMAIL PROTECTED] /cygdrive/c/wireshark $ perl --version This is perl, v5.8.8 built for cygwin-thread-multi-64int (with 8 registered patches, see perl -V for more detail) Copyright 1987-2006, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. [EMAIL PROTECTED] /cygdrive/c/wireshark $ However, from nmake, these errors are issued: (...) rdps print.ps ps.c rm -f svnversion.h perl make-version.pl Version configuration file version.conf not found. Using defaults. This is a build from SVN (or a SVN snapshot). 8 [main] perl 4024 child_copy: linked dll data write copy failed, 0x3F2000 ..0x3F2370, done 0, windows pid 4024, Win32 error 487 5013781 [main] perl 4024 child_copy: linked dll data write copy failed, 0x3F2000 ..0x3F2370, done 0, windows pid 4024, Win32 error 487 10018809 [main] perl 4024 child_copy: linked dll data write copy failed, 0x3F200 0..0x3F2370, done 0, windows pid 4024, Win32 error 487 15024091 [main] perl 4024 child_copy: linked dll data write copy failed, 0x3F200 0..0x3F2370, done 0, windows pid 4024, Win32 error 487 20028798 [main] perl 4024 child_copy: linked dll data write copy failed, 0x3F200 0..0x3F2370, done 0, windows pid 4024, Win32 error 487 25033882 [main] perl 4024 child_copy: linked dll data write copy failed, 0x3F200 0..0x3F2370, done 0, windows pid 4024, Win32 error 487 30038837 [main] perl 4024 child_copy: linked dll data write copy failed, 0x3F200 0..0x3F2370, done 0, windows pid 4024, Win32 error 487 NMAKE : fatal error U1058: terminated by user Stop. C:\wireshark>nmake -f Makefile.nmake verify_tools Microsoft (R) Program Maintenance Utility Version 8.00.50727.762 Copyright (C) Microsoft Corporation. All rights reserved. Checking for required applications: cl: /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/BIN/cl link: /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/BIN/link nmake: /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/BIN/nmake bash: /usr/bin/bash bison: /usr/bin/bison flex: /usr/bin/flex env: /usr/bin/env grep: /usr/bin/grep /usr/bin/find: /usr/bin/find perl: /usr/bin/perl C:/python24/python.exe: /cygdrive/c/python24/python.exe sed: /usr/bin/sed unzip: /usr/bin/unzip wget: /usr/bin/wget C:\wireshark> So, I am able to build wireshark in the short term using these steps: 1. Make distclean. 2. Run the perl programs in a Cygwin terminal: [EMAIL PROTECTED] /cygdrive/c/wireshark $ perl make-version.pl Version configuration file version.conf not found. Using defaults. This is a build from SVN (or a SVN snapshot). SVN version tag will be computed. svnversion.h has been updated. [EMAIL PROTECTED] /cygdrive/c/wireshark $ perl perlnoutf.pl make-authors-short.pl < AUTHORS > AUTHORS-SHORT [EMAIL PROTECTED] /cygdrive/c/wireshark $ perl perlnoutf.pl make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT [EMAIL PROTECTED] /cygdrive/c/wireshark $ 3. Make all. It isn't right, but it works enough for me, for now. Josh Moore ________________________________ From: Josh Moore Sent: Tuesday, March 11, 2008 1:08 PM To: '[EMAIL PROTECTED]' Subject: Re: [Wireshark-dev] Trouble with building Wireshark on Win32 Hello Graham Bloice: I experienced this problem today, and when I ran the suggested command, the output indicated Perl was trying to run an svn command. I did not have Subversion installed in Cygwin; it's in the Devel/subversion portion of the Cygwin tree. This package should be added to the list at 2.2.2. Install Cygwin In http://www.wireshark.org/docs/wsdg_html/#ChSetupMSVC . Josh Moore Continental Electronics Software Engineer Jaap Keuter wrote: Hi, We would like to help, but the line that spawns the fatal error isn't in your log. This is further up the list. Maybe you should attach the complete log and a log of verify_tools. Thanx, Jaap John Wang wrote: > Hi, > I have double checked to make sure all the development tools have been > installed, newest libraries......... But I tried several versions of > the source code, including the suggested r24657, but the error just > keep coming > ---------------------------------------------------------------------- > ------------------------------------------------------------- > packet-spnego.c > packet-t125.c > packet-tcap.c > packet-ulp.c > packet-wlancertextn.c > Generating Code... > Compiling... > packet-x2ap.c > packet-x224.c > packet-x411.c > packet-x420.c > packet-x509af.c > packet-x509ce.c > packet-x509if.c > packet-x509sat.c > packet-dcerpc-nt.c > Generating Code... > NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio > 8\VC\BIN\c l.EXE"' : return code '0x2' > Stop. > NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio > 8\VC\BIN\n make.exe"' : return code '0x2' > Stop. > NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio > 8\VC\BIN\n make.exe"' : return code '0x2' > Stop. > > C:\wireshark> > > ---------------------------------------------------------------------- > ------------------------------------------------------------- > Anyone has any suggestions? > > Thanks > > John
_______________________________________________ Wireshark-dev mailing list [email protected] http://www.wireshark.org/mailman/listinfo/wireshark-dev
