Wireshark-dev: Re: [Wireshark-dev] Error compiling acustomdllpluginforWireshark0.99.7
From: "A Verma" <laughaloud43@xxxxxxxxx>
Date: Thu, 6 Mar 2008 12:59:46 +0530
Hi,
Can you pls suggest me what to do. I am getting both warnings and errors, I have tried a lot of things but they don't go away. I am new to development with wireshark.
 
The errors that I am getting are:

Copyright (C) Microsoft Corporation. All rights reserved.

Making plugin.c (using python)

sed -e s/@PLUGIN_NAME@/xxx/ -e s/@RC_MODULE_VERSION@/0,6,5,0/ -e s/@RC

_VERSION@/0,99,9,0/ -e s/@MODULE_VERSION@/0.6.5.0/ -e s/@PACKAGE@/xxx/ -e s/@

VERSION@/0.99.9"-XXX-GTP-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\pcre-7.

0\include /IC:\wireshark-win32-libs\WPdpack\include -D_U_="" /Zi /W3 /MD /D_CRT_

SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /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

packet-xxx.c(1077) : error C2220: warning treated as error - no 'object' file ge

nerated

packet-xxx.c(1077) : warning C4244: '=' : conversion from 'time_t' to 'unsigned

int', possible loss of data

packet-xxx.c(1078) : warning C4244: '=' : conversion from 'time_t' to 'unsigned

int', possible loss of data

packet-xxx.c(1079) : warning C4244: '=' : conversion from 'time_t' to 'unsigned

int', possible loss of data

packet-xxx.c(1103) : warning C4244: '=' : conversion from 'time_t' to 'unsigned

int', possible loss of data

packet-xxx.c(1104) : warning C4244: '=' : conversion from 'time_t' to 'unsigned

int', possible loss of data

packet-xxx.c(1105) : warning C4244: '=' : conversion from 'time_t' to 'unsigned

int', possible loss of data

plugin.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.

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\n

make.exe"' : return code '0x2'

Stop.

 
 
Also can you pls tell me how to supress the warnings?
I tried this and got the following errors:
C:\wireshark>/.configure --disable-warnings-as-errors
'/.configure' is not recognized as an internal or external command,
operable program or batch file.
 
What are your views? Thanks so much for your inputs
 
thanks & regards,
Ash
 
On 3/2/08, Maynard, Chris <Christopher.Maynard@xxxxxxxxx> wrote:

Actually, you've got warnings, not errors, but since the "treat warnings as errors" flag is specified, the build stops.  You should correct all the warnings in your code.  Alternatively, you can remove the flag that treats warnings as errors, but I don't recommend that.

 


From: A Verma [mailto:laughaloud43@xxxxxxxxx]
Sent: Saturday, March 01, 2008 1:16 PM
To: Developer support list for Wireshark; Maynard, Chris
Subject: Re:[Wireshark-dev] Error compiling acustomdllpluginforWireshark0.99.7

 

Hi,

Thanks so mich for your response. I shall take about the point related to diif threads that you mentioned.

 

I made the changed to makefile.namke, but got the follwoing errors:

Creating library ciscosm.lib and object ciscosm.exp

cd ..

cd xxx

"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" /

-f Makefile.nmake

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,6,5,0/ -e s/@RC

_VERSION@/0,99,9,0/ -e s/@MODULE_VERSION@/0.6.5.0/ -e s/@PACKAGE@/xxx/ -e s/@

VERSION@/0.99.9"-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\pcre-7.

0\include /IC:\wireshark-win32-libs\WPdpack\include -D_U_="" /Zi /W3 /MD /D_CRT_

SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /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

packet-xxx.c(1077) : error C2220: warning treated as error - no 'object' file ge

nerated

packet-xxx.c(1077) : warning C4244: '=' : conversion from 'time_t' to 'unsigned

int', possible loss of data

packet-xxx.c(1078) : warning C4244: '=' : conversion from 'time_t' to 'unsigned

int', possible loss of data

packet-xxx.c(1079) : warning C4244: '=' : conversion from 'time_t' to 'unsigned

int', possible loss of data

packet-xxx.c(1103) : warning C4244: '=' : conversion from 'time_t' to 'unsigned

int', possible loss of data

packet-xxx.c(1104) : warning C4244: '=' : conversion from 'time_t' to 'unsigned

int', possible loss of data

packet-xxx.c(1105) : warning C4244: '=' : conversion from 'time_t' to 'unsigned

int', possible loss of data

plugin.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.

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\n

make.exe"' : return code '0x2'

Stop.

 

Can someone pls help.

 

thanks,

Ash

 [snip]


This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, retention, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message. Also, email is susceptible to data corruption, interception, tampering, unauthorized amendment and viruses. We only send and receive emails on the basis that we are not liable for any such corruption, interception, tampering, amendment or viruses or any consequence thereof.


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