Wireshark-dev: Re: [Wireshark-dev] Error compiling a custom dll plugin forWireshark0.99.7

From: "Anders Broman" <a.broman@xxxxxxxxx>
Date: Wed, 27 Feb 2008 18:38:16 +0100

Hi,

Run make –f makefile.nmake setup

To download all the latest packages

 

>pcre.h file is present at path:

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

This have changed to

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

With the update of PCRE

Regards

Anders

 

 


Från: A Verma [mailto:laughaloud43@xxxxxxxxx]
Skickat: den 27 februari 2008 18:29
Till: Developer support list for Wireshark; a.broman@xxxxxxxxx
Ämne: Re: [Wireshark-dev] Error compiling a custom dll plugin forWireshark0.99.7

 

Hi,

Thanks for your help.

Can you please let me what do I need to do exactly. I didn't quite fully understand your answer.

 

Thanks so much.

 

regards,

Ash

 

On 2/27/08, Anders Broman <a.broman@xxxxxxxxx> wrote:

Hi,

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

Regards

Anders

 


Från: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] För A Verma
Skickat: den 27 februari 2008 11:48
Till: wireshark-dev@xxxxxxxxxxxxx
Ä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/@PLUGIN_NAME@/xxx/  -e s/@RC_MODULE_VERSION@/0,99,8,0/  -e s/@R

C_VERSION@/0,99,8/  -e s/@MODULE_VERSION@/0.99.8.0/  -e s/@PACKAGE@/xxx/  -e s/@

VERSION@/0.99.8"-xxx-yyy-01"/  -e s/@MSVC_VARIANT@/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


_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
http://www.wireshark.org/mailman/listinfo/wireshark-dev

 

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