Wireshark-dev: Re: [Wireshark-dev] Error compiling a custom dll plugin forWireshark0.99.7
From: "Anders Broman" <[email protected]>
Date: Wed, 27 Feb 2008 17:02:18 +0100

Hi,

You may have to run the setup target PCRE was recently updated to 7.0.

Regards

Anders

 


Från: [email protected] [mailto:[email protected]] För A Verma
Skickat: den 27 februari 2008 11:48
Till: [email protected]
Ämne: [Wireshark-dev] Error compiling a custom dll plugin forWireshark0.99.7

 

Hi,

I am trying to create a dll called xxx.dll in plugings/xxx folder in wireshark source code folder.

I executed the following commands:

 

C:\wireshark\plugins\xxx>nmake -f Makefile.nmake distclean

Output: 

Microsoft (R) Program Maintenance Utility Version 8.00.50727.762

Copyright (C) Microsoft Corporation.  All rights reserved.

 

rm -f packet-xxx.obj  plugin.obj xxx.res plugin.c *.pdb  xxx.dll xxx.dll  .manifest xxx.lib  xxx.exp xxx.rc

 

C:\wireshark\plugins\xxx>nmake -f Makefile.nmake all

Output: 

Microsoft (R) Program Maintenance Utility Version 8.00.50727.762

Copyright (C) Microsoft Corporation.  All rights reserved.

 

Making plugin.c (using python)

        sed -e s/@[email protected]/xxx/  -e s/@[email protected]/0,99,8,0/  -e s/@R

[email protected]/0,99,8/  -e s/@[email protected]/0.99.8.0/  -e s/@[email protected]/xxx/  -e s/@

[email protected]/0.99.8"-xxx-yyy-01"/  -e s/@[email protected]/MSVC2005EE/  < plugin.rc.in >

 xxx.rc

        rc  /r xxx.rc

        cl /DHAVE_WIN32_LIBWIRESHARK_LIB /D_NEED_VAR_IMPORT_ /WX /DHAVE_CONFIG_H

 /I../.. /I../../wiretap /IC:\wireshark-win32-libs\glib\include\glib-2.0  /IC:\w

ireshark-win32-libs\glib\lib\glib-2.0\include  /IC:\wireshark-win32-libs\WPdpack

\include -D_U_="" /Zi /W3 /MD /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRE

CATE /DMSC_VER_REQUIRED=1400 -Fd.\ -c packet-xxx.c plugin.c

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86

 

Copyright (C) Microsoft Corporation.  All rights reserved.

 

packet-xxx.c

C:\wireshark\epan/ftypes/ftypes-int.h(30) : fatal error C1083: Cannot open include file: 'pcre.h': No such file or directory

plugin.c

Generating Code...

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2'

Stop.

  

 pcre.h file is present at path:

C:\wireshark-win32-libs\pcre-6.4\include

 

So why is the eoor being generated. Can someone please help me.

Thanks for your time!

 

thanks & regards,

Ash

 

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.21.1/1301 - Release Date: 2008-02-27 08:35


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.21.1/1301 - Release Date: 2008-02-27 08:35