Ethereal-dev: Re: [Ethereal-dev] Adding Dissector

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Jasim Tariq" <jasimtariqjt@xxxxxxxxxxx>
Date: Thu, 02 Feb 2006 11:58:12 -0800
There is something terribly wrong in your build environment and probably not in your dissector >sources.
You should first try to get distclean working.
If such a simple thing like removing files doesn't work, you have serious problems.
First you should check your settings in config.nmake.

I have edited the config.nmake file. This is the version I am using:


______________________________________________________________
# $Id: config.nmake 16908 2005-12-27 18:43:14Z gerald $

# Some more informations about the settings in this file, can be found
# in the file README.win32.

# The current Ethereal version
VERSION=0.10.14

#
# The RC_VERSION should be comma-separated, not dot-separated,
# as per Graham Bloice's message in
#
#	http://www.ethereal.com/lists/ethereal-dev/200303/msg00283.html
#
# "The RC_VERSION variable in config.nmake should be comma separated.
# This allows the resources to be built correctly and the version
# number to be correctly displayed in the explorer properties dialog
# for the executables, and XP's tooltip, rather than 0.0.0.0."
#
RC_VERSION=0,10,14

# The version of the wiretap library
WTAP_VERSION=0.3
RC_WTAP_VERSION=0,3

#
# If you're building with WinPcap 2.3, set WINPCAP_VERSION to 2.3; if
# you're building with WinPcap 3.0, set it to 3.0; if you're building
# with WinPcap 3.1, set it to 3.1.
#
# If you're not building with WinPcap at all, don't set it (comment
# out or remove the line that sets it).
#
WINPCAP_VERSION=3.1

#
# Directory, where your User's Guide reside, relative to the source dir.
# (currently unused)
#
# If you don't have the User's Guide, comment this line out, so that
# ETHEREAL_EUG_DIR isn't defined.
#
#ETHEREAL_EUG_DIR=docbook/eug_html_chunked

#
# Base directory, where your libraries reside, which needs to be
# compiling the sources. This is only inside this file.
#
ETHEREAL_LIBS=C:\ethereal-win32-libs

#
# Current versions of GTK+ 1.3 require GLib 2.0.  Earlier versions of
# GTK+ 1.3 are buggy; we don't recommend using them, and we don't
# support them.  Upgrade to the current version.
#
GLIB_VERSION=2.0
GLIB_DIR=$(ETHEREAL_LIBS)\glib

#
# This presumes that GTK+ 1.3 packages put header files and libraries
# directly in a "gtk+" directory, while GTK+ 2.x developer's packages
# put header files in an "include\gtk-{version}" directory and libraries
# in a "lib\gtk-{version}" directory.
#
# It's possible, to build both GTK version 1 and 2 at the same time,
# or only one of the versions. GTK version 1 is currently recommended.
#
# If you want building with GTK+ 1.3, set GTK1_DIR to the pathname of the
# "gtk+" directory; if you want building with GTK+ 2.x, set GTK2_DIR to
# the pathname of the directory in which the "include" and "lib" directories
# reside.
#
GTK1_DIR=$(ETHEREAL_LIBS)\gtk+
#GTK2_DIR=$(ETHEREAL_LIBS)\gtk2

# Declare the version of your gtk2 and pango. (MAJOR + MINOR Version number
# but without MICRO version number)
# These macros are used by the nsis installer script and by the setup target.
#
#GTK2_INST_VERSION=2.2
#PANGO_INST_VERSION=1.2
#GTK2_INST_VERSION=2.4
#PANGO_INST_VERSION=1.4
# GTK 2.6 is the mainline since Ethereal 0.10.14
#GTK2_INST_VERSION=2.6
PANGO_INST_VERSION=1.8
# Support for GTK 2.8 is currently experimental ...
#GTK2_INST_VERSION=2.8
#PANGO_INST_VERSION=1.10

#
# If you have GTK-Wimp, set this to the pathname of the directory in
# which the files are stored.
#
# If you don't have GTK-Wimp, comment this line out, so that GTK-Wimp isn't
# defined.
#
# Please note: GTK 2.8 (and later?) includes GTK-Wimp
# (in this case these GTK-Wimp related settings will have no effect)
#
GTK_WIMP_DIR=$(ETHEREAL_LIBS)\gtk-wimp
GTK_THEME_DIR=$(GTK_WIMP_DIR)\Theme\gtk-2.0

#
# If you have Zlib, set this to the pathname of the directory in
# which the Zlib headers and .lib file are stored.
#
# If you don't have Zlib, comment this line out, so that Zlib isn't
# defined.
#
ZLIB_DIR=$(ETHEREAL_LIBS)\zlib123-dll

#
# Set PCAP_DIR to the pathname of the directory in which the WinPcap
# developer's pack resides
#
PCAP_DIR=$(ETHEREAL_LIBS)\WPdpack

#
# Set NET_SNMP_DIR to the pathname of the directory in which the
# Net-SNMP include files and library resides.
#
NET_SNMP_DIR=$(ETHEREAL_LIBS)\net-snmp-5.2.2

#
# If you have GNU ADNS, set this to the pathname of the directory in
# which the GNU ADNS .lib file is stored.
#
# If you don't have GNU ADNS, comment this line out, so that ADNS_DIR
# isn't defined.
#
ADNS_DIR=$(ETHEREAL_LIBS)\adns-1.0-win32-05

#
# If you have the PCRE (Perl Compatible Regular Expressions) library,
# set this to the pathname of the directory in which the GNUWIN32
# pcre-lib package has been extracted.
#
# If you don't have PCRE, comment this line out, so that PCRE_DIR
# isn't defined.
#
PCRE_DIR=$(ETHEREAL_LIBS)\pcre-6.4

#
# If you have the Nettle encryption library, set this to the pathname
# of the directory in which the nettle package has been extracted.
#
# If you don't have Nettle, comment this line out, so that NETTLE_DIR
# isn't defined.
#
# NETTLE_DIR=$(ETHEREAL_LIBS)\nettle-1.10

#
# Set ICONV_DIR to the pathname of the directory in which the
# ICONV include files and library resides.
#
ICONV_DIR=$(ETHEREAL_LIBS)\libiconv-1.9.1.bin.woe32

#
# Set GETTEXT_DIR to the pathname of the directory in which the
# GETTEXT include files and library resides.
#
GETTEXT_DIR=$(ETHEREAL_LIBS)\gettext-runtime-0.13.1

# Compiler flags
# /W3  warning level 3 (0 less - 4 most, 1 default)
# /Zi  create .pdb file for debugging
LOCAL_CFLAGS=/Zi /W3

# Linker flags
# /DEBUG  generate debug info
# /PROFILE generate map file(s) for profiling
LOCAL_LDFLAGS=/DEBUG

# Set PDB_FILE according to your VC++ version
PDB_FILE=vc*.pdb

# Set up the path to the cygwin binaries
CYGWIN_PATH=c:\cygwin\bin

# Set up the path to some required DLLs
DLL_PATH=$(GLIB_DIR)\bin;$(GETTEXT_DIR)\bin;$(ICONV_DIR)\bin


# Set the following commands to find the tools.
# The easiest way is to use the corresponding packages from cygwin.

# command for a shell (typically cygwin's bash package)
SH=bash

# command for perl (typically cygwin's perl package)
PERL=perl

# command for pod2man and pod2html (part of the perl package)
POD2MAN=$(SH) pod2man
POD2HTML=$(SH) pod2html

# command for python (native windows version)
#PYTHON="C:/python24/python.exe"
# add native python to the path (not needed if cygwin's python is used)
#PATH=c:\python24;$(PATH)

# command for python (typically cygwin's python package)
PYTHON=env python

# command for lex/flexx (typically cygwin's flex package)
LEX=flex

# command for yacc/bison (typically cygwin's bison package)
YACC=bison

# To build the installer
MAKENSIS="C:/program files/nsis/makensis.exe"

# Choose modern style user interface for the installer.
# When using this, make sure you have a supported NSIS
# version installed. See "packaging\nsis\ethereal.nsi" for details.
#
# If you don't want the modern UI (or don't have a recent NSIS version),
# comment this line out, so that MAKENSIS_MODERN_UI isn't defined.
#
MAKENSIS_MODERN_UI=USE

# To build the developers documentation with doxygen and dot.
# Currently experimental only.
# You will have to download and install:
#
# Doxygen from: www.doxygen.org
# Graphviz from: http://www.research.att.com/sw/tools/graphviz/
#
# If you don't want the developers documentation (or don't have the tools),
# comment this line out, so that DOXYGEN isn't defined.
#
#DOXYGEN="C:/program files/doxygen/bin/doxygen.exe"

# To build compressed html help format .chm from doxygen output.
# Currently experimental only.
# You will have to download and install the html help compiler from:
#
# http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html
# /hwMicrosoftHTMLHelpDownloads.asp
#
# Then point HHC to the html help compiler exe.
#
# The .chm file(s) are not generated by default. You will have to generate the # file(s) by calling the Makefile.nmake's target doxygen.chm in the submodules (epan/gk/...).
#
#HHC="C:/Program Files/HTML Help Workshop/hhc.exe"

# According to http://bugs.ethereal.com/bugzilla/show_bug.cgi?id=403
# XCOPY under Windows NT doesn't support the "/Y" flag.  This works
# around that bug.
# XXX - This apparently doesn't work for some versions of nmake:
# http://support.microsoft.com/default.aspx?scid=kb;en-us;86814
# It looks like we'll have to call "set copycmd=/y" before we run xcopy.
COPYCMD=/y

# If you don't want to build libethereal.dll, you should comment out the
# following line. (Note: for plugin support this option must stay activated)
ENABLE_LIBETHEREAL=USE

!IFDEF ENABLE_LIBETHEREAL
# Uncomment next line to link plugins with the import library of libethereal.dll
LINK_PLUGINS_WITH_LIBETHEREAL=USE
!ENDIF

#
# You should not have to change anything below this comment.
# If you do, it's a deficiency in the Makefile.nmake files;
# either tell ethereal-dev@xxxxxxxxxxxx about it, including
# details of why you had to change it, or fix config.nmake
# and any Makefile.nmake files that need to be changed, and
# send us the patches, along with details of why the change
# was necessary.
#
GLIB_CFLAGS=/I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
	/I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
GCC_GLIB_CFLAGS=-I$(GLIB_DIR)\include\glib-$(GLIB_VERSION) \
	-I$(GLIB_DIR)\lib\glib-$(GLIB_VERSION)\include
GLIB_LIBS=$(GLIB_DIR)\lib\glib-$(GLIB_VERSION).lib \
	$(GLIB_DIR)\lib\gmodule-$(GLIB_VERSION).lib \
	$(GLIB_DIR)\lib\gobject-$(GLIB_VERSION).lib

# GTK+ 1.3
GTK1_CFLAGS=$(GLIB_CFLAGS) /I$(GTK1_DIR)\include /I$(GTK1_DIR)\include\gdk \
	/I$(GTK1_DIR)\lib\gtk+\include
GTK1_LIBS=$(GTK1_DIR)\lib\gtk.lib \
	$(GTK1_DIR)\lib\gdk.lib \
	$(GLIB_LIBS)

# GTK+ 2.x
#GTK2_CFLAGS=$(GLIB_CFLAGS) /I$(GTK2_DIR)\include\gtk-2.0 \
#	/I$(GTK2_DIR)\lib\gtk-2.0\include \
#	/I$(GTK2_DIR)\include\atk-1.0 \
#	/I$(GTK2_DIR)\include\cairo \
#	/I$(GTK2_DIR)\include\pango-1.0
#GTK2_LIBS=$(GTK2_DIR)\lib\gtk-win32-2.0.lib \
#	$(GTK2_DIR)\lib\gdk-win32-2.0.lib \
#	$(GTK2_DIR)\lib\gdk_pixbuf-2.0.lib \
#	$(GTK2_DIR)\lib\pango-1.0.lib \
#	$(GLIB_LIBS)

# the lib dir of GTK2.6 didn't changed since 2.4.0
#!IF "$(GTK2_INST_VERSION)" == "2.8"
#GTK2_LIB_DIR=2.4.0
#NEED_LIBPNG_DLL=USE
#NEED_CAIRO_DLL=USE
#GTK_WIMP_DIR=$(GTK2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\engines
#GTK_THEME_DIR=$(GTK2_DIR)\share\themes\MS-Windows\gtk-2.0
#!ELSEIF "$(GTK2_INST_VERSION)" == "2.6"
#GTK2_LIB_DIR=2.4.0
#!ELSEIF "$(GTK2_INST_VERSION)" == "2.4"
#GTK2_LIB_DIR=2.4.0
#!ELSEIF "$(GTK2_INST_VERSION)" == "2.2"
#GTK2_LIB_DIR=2.2.0
#!ENDIF

# the lib dir of PANGO1.8 didn't changed since 1.4.0
!IF "$(PANGO_INST_VERSION)" == "1.10"
PANGO_LIB_DIR=1.4.0
!ELSEIF "$(PANGO_INST_VERSION)" == "1.8"
PANGO_LIB_DIR=1.4.0
!ELSEIF "$(PANGO_INST_VERSION)" == "1.4"
PANGO_LIB_DIR=1.4.0
!ELSEIF "$(PANGO_INST_VERSION)" == "1.2"
PANGO_LIB_DIR=1.2.0
!ENDIF


!IFDEF WINPCAP_VERSION
# Nmake uses carets to escape special characters
WINPCAP_CONFIG=^#define HAVE_LIBPCAP 1
!IF "$(WINPCAP_VERSION)" == "3.0" || "$(WINPCAP_VERSION)" == "3.1"
PCAP_FINDALLDEVS_CONFIG=^#define HAVE_PCAP_FINDALLDEVS 1
PCAP_DATALINK_NAME_TO_VAL_CONFIG=^#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
PCAP_DATALINK_VAL_TO_NAME_CONFIG=^#define HAVE_PCAP_DATALINK_VAL_TO_NAME 1
WPCAP_CONSTIFIED_CONFIG=^#define WPCAP_CONSTIFIED 1
!ELSE
PCAP_FINDALLDEVS_CONFIG=
PCAP_DATALINK_VAL_TO_NAME_CONFIG=
WPCAP_CONSTIFIED=
!ENDIF
!ELSE
WINPCAP_CONFIG=
PCAP_FINDALLDEVS_CONFIG=
PCAP_DATALINK_NAME_TO_VAL_CONFIG=
PCAP_DATALINK_VAL_TO_NAME_CONFIG=
WPCAP_CONSTIFIED=
!ENDIF

!IFDEF ZLIB_DIR
ZLIB_PATH=$(ZLIB_DIR)
ZLIB_CFLAGS=/I$(ZLIB_DIR)\include
ZLIB_LIBS=$(ZLIB_DIR)\lib\zdll.lib
# Nmake uses carets to escape special characters
ZLIB_CONFIG=^#define HAVE_LIBZ 1
!else
ZLIB_CFLAGS=
ZLIB_LIBS=
ZLIB_CONFIG=
!ENDIF

!IFDEF ADNS_DIR
ADNS_PATH=$(ADNS_DIR)\adns_win32\lib
ADNS_CFLAGS=/I$(ADNS_DIR)\src /I$(ADNS_DIR)\adns_win32
ADNS_LIBS=$(ADNS_DIR)\adns_win32\lib\adns_dll.lib
# Nmake uses carets to escape special characters
ADNS_CONFIG=^#define HAVE_GNU_ADNS 1
!else
ADNS_CFLAGS=
ADNS_LIBS=
ADNS_CONFIG=
!ENDIF

!IFDEF PCRE_DIR
PCRE_PATH=$(PCRE_DIR)\bin
PCRE_CFLAGS=/I$(PCRE_DIR)\include
PCRE_LIBS=$(PCRE_DIR)\lib\pcre.lib
# Nmake uses carets to escape special characters
PCRE_CONFIG=^#define HAVE_LIBPCRE 1
!else
PCRE_CFLAGS=
PCRE_LIBS=
PCRE_CONFIG=
!ENDIF

!IFDEF NETTLE_DIR
NETTLE_CFLAGS=/I$(NETTLE_DIR)
NETTLE_LIBS=$(NETTLE_DIR)\libnettle.lib
# Nmake uses carets to escape special characters
NETTLE_CONFIG=^#define HAVE_LIBNETTLE 1
!else
NETTLE_CFLAGS=
NETTLE_LIBS=
NETTLE_CONFIG=
!ENDIF

!IFDEF ENABLE_LIBETHEREAL
LIBETHEREAL_CONFIG=^#define HAVE_LIBETHEREALDLL 1
!ELSE
LIBETHEREAL_CONFIG=
!ENDIF

# Construct the path
PATH=$(CYGWIN_PATH);$(DLL_PATH);$(ZLIB_PATH);$(ADNS_PATH)


_________________________________________________________________

Without adding packet-xxx.c to "epan/dissectors" and using the Makefile.common provided in the source code, ethereal builds and all the commands distclean, setup, all etc work. but when I add the packet-xxx.c and change the Makefile.common file, and run distclean, then i get the same error as last time.


Check also your PATH environment variable (Not only in config.nmake, but also in system settings). >It shouldn't contain unnecessary folders. Less is more in this case.



Also, i changed my Path variables. They are:

User Variable:

Path = C:\cygwin\bin\;C:\ethereal-win32-libs\glib\bin;C:\ethereal-win32-libs\gettext-runtime-0.13.1\bin;C:\ethereal-win32-libs\libiconv-1.9.1.bin.woe32\bin;C:\ethereal-win32-libs\zlib123-dll;C:\ethereal-win32-libs\adns-1.0-win32-05\adns_win32\lib


System Variable:

Path = C:\cygwin\bin\;C:\ethereal-win32-libs\glib\bin;C:\ethereal-win32-libs\gettext-runtime-0.13.1\bin;C:\ethereal-win32-libs\libiconv-1.9.1.bin.woe32\bin;C:\ethereal-win32-libs\zlib123-dll;C:\ethereal-win32-libs\adns-1.0-win32-05\adns_win32\lib


If distclean or building still fails, we will need more info about your build environment, your >config.nmake and the whole output of nmake, not just the end.




But I still get the same error:( Im missing some part in the beginning because I can't scroll in the cmd.exe. and this is the only buffer size the cmd.exe window allows on muy machine. )

Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

       rm -f 5views.obj                 airopeek9.obj           ascend.obj
        atm.obj                         buffer.obj              cosine.obj
        csids.obj                       dbs-etherwatch.obj      erf.obj
etherpeek.obj eyesdn.obj file_access.obj file_wrappers.obj hcidump.obj i4btrac
e.obj            iptrace.obj             iseries.obj             k12.obj
                lanalyzer.obj           libpcap.obj             netmon.obj
nettl.obj network_instruments.obj netxray
.obj             ngsniffer.obj           pppdump.obj             radcom.obj
        snoop.obj                       toshiba.obj             visual.obj
vms.obj wtap.obj ascend-grammar.obj ascend-
scanner.obj  wiretap-0.3.lib  wiretap-0.3.exp  wiretap-0.3.dll  vc*.pdb
       cd ../gtk
       NMAKE /                   -f Makefile.nmake clean

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

       rm -f about_dlg.obj      capture_dlg.obj         capture_if_dlg.obj
capture_if_details_dlg.obj      capture_info_dlg.obj    capture_prefs.obj
cfilter_combo_utils.obj color_dlg.obj color_utils.obj colors. obj column_prefs.obj conversations_table.obj decode_as_dlg.o bj decode_as_dcerpc.obj dfilter_expr_dlg.obj dlg_utils.obj drag_an d_drop.obj ethereal-tap-register.obj expert_comp_table.obj file_ dlg.obj fileset_dlg.obj filter_dlg.obj find_dlg.obj follow_dlg.obj font_utils.obj goto_dlg.obj graph_analysis.obj gui_stat_util.obj gui_pre fs.obj gui_utils.obj help_dlg.obj hostlist_table.obj layout_prefs.obj
main.obj        menu.obj        nameres_prefs.obj       packet_history.obj
packet_list.obj packet_win.obj plugins_dlg.obj prefs_dlg.obj print_dlg.obj print_prefs.obj progress_dlg.obj proto_dlg.obj
proto_draw.obj  proto_hier_stats_dlg.obj        range_utils.obj  recent.obj
rtp_stream.obj sctp_stat.obj sctp_graph_dlg.obj sctp_byte_graph_dlg.obj sctp_error_dlg.obj service_response_time_table.obj simple_ dialog.obj stream_prefs.obj summary_dlg.obj supported_proto s_dlg.obj tap_dfilter_dlg.obj text_page.obj toolbar.obj voip_ca
lls.obj  webbrowser.obj  print_mswin.obj afp_stat.obj    ansi_a_stat.obj
ansi_map_stat.obj bootp_stat.obj conversations_eth.obj conversations_f c.obj conversations_fddi.obj conversations_ip.obj conversations_ipx.obj conversations_jxta.obj conversations_sctp.obj conversations_tcpip.obj conversations_tr.obj conversations_udpip.obj conversations_w lan.obj conversations_ncp.obj conversations_rsvp.obj dcerpc_stat.obj expert_comp_dlg.obj expert_dlg.obj fc_stat.obj flow_gr aph.obj gsm_a_stat.obj gsm_map_stat.obj gsm_map_summary.obj h225_co unter.obj h225_ras_srt.obj hostlist_eth.obj hostlist_fc.obj host list_fddi.obj hostlist_ip.obj hostlist_ipx.obj hostlist_jxta.obj hostlis t_tcpip.obj hostlist_tr.obj hostlist_udpip.obj hostlist_wlan.obj hostlist_rs vp.obj io_stat.obj ldap_stat.obj mgcp_stat.obj mtp3_stat.obj mtp3_su mmary.obj ncp_stat.obj rpc_progs.obj rpc_stat.obj rtp_analysis.ob j rtp_stream_dlg.obj stats_tree_stat.obj sctp_assoc_analyse.obj
sctp_chunk_stat_dlg.obj         sctp_chunk_stat.obj     sctp_stat_dlg.obj
sip_stat.obj smb_stat.obj t38_analysis.obj tcp_graph.obj voip_ca
lls_dlg.obj  wsp_stat.obj libui.lib vc*.pdb doxygen.cfg html/*.*
       if exist html rmdir html
       cd ../epan
       NMAKE /                   -f Makefile.nmake clean

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

rm -f addr_and_mask.obj addr_resolv.obj adler32
.obj             afn.obj                         asn1.obj
atalk-utils.obj                 base64.obj              bitswap.obj
charsets.obj circuit.obj column.obj column-
utils.obj                conversation.obj                crc16.obj
crc32.obj crypt-des.obj crypt-md4.obj crypt-md5.obj crypt-rc4.obj dtd_grammar.obj dtd_ parse.obj dtd_preparse.obj emem.obj epan.ob j except.obj expert.obj filesys tem.obj follow.obj frame_data.obj h225-persistent
data.obj         in_cksum.obj            ipproto.obj             ipv4.obj
nstime.obj oid_resolv.obj osi-utils.obj
        packet.obj              plugins.obj             prefs.obj
proto.obj radius_dict.obj range.o
bj                       reassemble.obj          req_resp_hdrs.obj
sha1.obj                        sigcomp_state_hdlr.obj  sigcomp-udvm.obj
        sminmpec.obj            sna-utils.obj           stat_cmd_args.obj
        stats_tree.obj          strutil.obj             stream.obj
t35.obj tap.obj timestamp.obj
        to_str.obj              tvbparse.obj            tvbuff.obj
value_string.obj xdlc.obj xmlstub.obj ine t_aton.obj inet_pton.obj inet_ntop.obj mkstemp.obj strptime.obj et hereal.lib libethereal.dll libethereal.lib libethereal.exp vc*.pdb doxygen.cfg h
tml/*.*
       if exist html rmdir html
       cd ftypes
       NMAKE /                   -f Makefile.nmake clean

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

rm -f ftypes.obj ftype-bytes.obj ftype-d ouble.obj ftype-integer.obj ftype-ipv4.obj ftype-none.obj
        ftype-pcre.obj          ftype-string.obj        ftype-time.obj
ftype-tvbuff.obj ftypes.lib vc*.pdb
       cd ../dfilter
       NMAKE /                   -f Makefile.nmake clean

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

       rm -f dfilter.obj                dfvm.obj                drange.obj
        gencode.obj             glib-util.obj           grammar.obj
scanner.obj semcheck.obj sttype-integer.obj sttype- pointer.obj sttype-range.obj sttype-string.obj sttype-test.obj
                syntax-tree.obj dfilter.lib vc*.pdb
       cd ../dissectors
       NMAKE /                   -f Makefile.nmake clean

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

rm -f dissectors.lib vc*.pdb packet-dcerpc-atsvc.obj packet-dcerpc-i nitshutdown.obj packet-dcerpc-winreg.obj packet-3com-njack.obj packet-
3com-xns.obj     packet-3g-a11.obj       packet-9p.obj   packet-aarp.obj
packet-acap.obj packet-acse.obj packet-actrace.obj packet- afp.obj packet-afs.obj packet-aim.obj packet-aim-adverts.obj packet-aim-admi
n.obj  packet-aim-bos.obj  packet-aim-buddylist.obj      packet-aim-chat.obj
packet-aim-chatnav.obj packet-aim-directory.obj packet-aim-email.obj p acket-aim-generic.obj packet-aim-icq.obj packet-aim-invitation.obj packet-a im-location.obj packet-aim-messaging.obj packet-aim-oft.obj packet-aim-popup. obj packet-aim-signon.obj packet-aim-ssi.obj packet-aim-sst.obj packet-aim-s tats.obj packet-aim-translate.obj packet-aim-userlookup.obj packet-ajp13.obj
packet-alcap.obj        packet-amr.obj  packet-ans.obj  packet-ansi_637.obj
packet-ansi_683.obj packet-ansi_801.obj packet-ansi_a.obj packet-
ansi_map.obj     packet-aodv.obj         packet-aoe.obj  packet-ap1394.obj
packet-app-pkix-cert.obj packet-arcnet.obj packet-armagetronad.obj packet-arp.obj packet-aruba-adp.obj packet-asap.obj packet- ascend.obj packet-asf.obj packet-atalk.obj packet-atm.obj packet- auto_rp.obj packet-ax4000.obj packet-bacapp.obj packet-bacnet.o bj packet-beep.obj packet-ber.obj packet-bfd.obj packet-bgp.obj packet-bittorrent.obj packet-bofl.obj packet-bootp.obj packet-bootpara
ms.obj   packet-bpdu.obj         packet-brdwlk.obj       packet-bssap.obj
packet-bssgp.obj packet-bvlc.obj packet-camel.obj packet- cast.obj packet-ccsds.obj packet-cdp.obj packet-cdt.obj packet-
cgmp.obj         packet-chdlc.obj        packet-cigi.obj    packet-cimd.obj
packet-cip.obj packet-cisco-wireless.obj packet-cisco-oui.obj packet- clearcase.obj packet-clip.obj packet-clnp.obj packet-cmip.obj packet-cmp.obj packet-cms.obj packet-cops.obj packet-cosine.o
bj       packet-cpfi.obj         packet-cpha.obj         packet-crmf.obj
packet-csm-encaps.obj packet-cups.obj packet-daap.obj packet- dap.obj packet-data.obj packet-dccp.obj packet-dcp.obj packet- dcerpc-afs4int.obj packet-dcerpc-bossvr.obj packet-dcerpc-browser.o bj packet-dcerpc-budb.obj packet-dcerpc-butc.obj packet-dcerpc-cds_clerk server.obj packet-dcerpc-cds_solicit.obj packet-dcerpc-conv.obj packet- dcerpc-cprpc_server.obj packet-dcerpc-dce122.obj packet-dcerpc-dfs.obj packet-dcerpc-dnsserver.obj packet-dcerpc-drsuapi.obj packet-dcerpc-d ssetup.obj packet-dcerpc-dtsprovider.obj packet-dcerpc-dtsstime_req.obj
packet-dcerpc-efs.obj   packet-dcerpc-epm.obj   packet-dcerpc-eventlog.obj
packet-dcerpc-fldb.obj packet-dcerpc-frsapi.obj packet-dcerpc-frsrpc.ob j packet-dcerpc-ftserver.obj packet-dcerpc-icl_rpc.obj packet- dcerpc-krb5rpc.obj packet-dcerpc-llb.obj packet-dcerpc-lsa.obj packet- dcerpc-mapi.obj packet-dcerpc-messenger.obj packet-dcerpc-mgmt.obj packet- dcerpc-ndr.obj packet-dcerpc-netlogon.obj packet-dcerpc-nspi.obj packet-
dcerpc-pnp.obj   packet-dcerpc-rdaclif.obj       packet-dcerpc-rep_proc.obj
packet-dcerpc-roverride.obj packet-dcerpc-rpriv.obj packet-dcerpc-r ras.obj packet-dcerpc-rs_acct.obj packet-dcerpc-rs_attr.obj packet- dcerpc-rs_attr_schema.obj packet-dcerpc-rs_bind.obj packet-dcerpc-r
s_misc.obj       packet-dcerpc-rs_pgo.obj        packet-dcerpc-rs_plcy.obj
packet-dcerpc-rs_prop_acct.obj packet-dcerpc-rs_prop_acl.obj packet-dcerpc-r s_prop_attr.obj packet-dcerpc-rs_prop_pgo.obj packet-dcerpc-rs_prop_plcy.obj packet-dcerpc-rs_pwd_mgmt.obj packet-dcerpc-rs_repadm.obj packet-dcerpc-r
s_replist.obj    packet-dcerpc-rs_repmgr.obj     packet-dcerpc-rs_unix.obj
packet-dcerpc-rsec_login.obj packet-dcerpc-samr.obj packet-dcerpc-secidmap. obj packet-dcerpc-spoolss.obj packet-dcerpc-srvsvc.obj packet-
dcerpc-svcctl.obj        packet-dcerpc-tapi.obj  packet-dcerpc-tkn4int.obj
packet-dcerpc-trksvr.obj packet-dcerpc-ubikdisk.obj packet-dcerpc-u
bikvote.obj      packet-dcerpc-update.obj        packet-dcerpc-wkssvc.obj
packet-dcerpc.obj packet-dcm.obj packet-dcom.obj packet-dcom-cb a.obj packet-dcom-cba-acco.obj packet-dcom-dispatch.obj packet-dcom-oxid.obj packet-dcom-remact.obj packet-dcom-remunkn.obj packet-dcom-sysact.obj packet -ddtp.obj packet-dec-bpdu.obj packet-dec-dnart.obj packet-dhcp-fai lover.obj packet-dhcpv6.obj packet-diameter.obj packet-dis.obj packet-dis-enums.obj packet-dis-fields.obj packet-dis-pdus.obj packet-
diffserv-mpls-common.obj         packet-disp.obj         packet-distcc.obj
packet-dlsw.obj packet-dnp.obj packet-dns.obj packet-dop.obj packet-
dsi.obj  packet-dsp.obj  packet-dtp.obj  packet-dua.obj  packet-dvmrp.obj
packet-e164.obj packet-eap.obj packet-eapol.obj packet-echo.obj packet-edonkey.obj packet-eigrp.obj packet-enc.obj packet- enip.obj packet-enrp.obj packet-esis.obj packet-ess.obj packet-eth.obj packet-etheric.obj packet-etherip.obj packet-ethertyp e.obj packet-extreme.obj packet-fc.obj packet-fcct.obj packet- fcdns.obj packet-fcels.obj packet-fcfcs.obj packet-fcfzs.ob j packet-fcip.obj packet-fclctl.obj packet-fcp.obj packet- fcsb3.obj packet-fcsp.obj packet-fcswils.obj packet-fddi.obj packet-fix.obj packet-fr.obj packet-frame.obj packet-ftam.obj packet-ftbp.obj packet-ftp.obj packet-fw1.obj packet-g723.obj
        packet-gift.obj         packet-giop.obj         packet-gmrp.obj
packet-gnm.obj packet-gnutella.obj packet-gprs-llc.obj packet-gprs-ns. obj packet-gre.obj packet-gsm_a.obj packet-gsm_map.obj packet- gsm_sms.obj packet-gsm_sms_ud.obj packet-gsm_ss.obj packet-gssapi.o bj packet-gtp.obj packet-gvrp.obj packet-h1.obj packet-h221_non
std.obj  packet-h225.obj         packet-h235.obj         packet-h245.obj
packet-h248.obj packet-h261.obj packet-h263.obj packet- h450.obj packet-hclnfsd.obj packet-hpext.obj packet-hpsw.obj packet-hsrp.obj packet-http.obj packet-hyperscsi.obj packet-iapp.obj packet-iax2.obj packet-ib.obj packet-icap.obj packet-icep.obj packet-icmpv6.obj packet-icp.obj packet- icq.obj packet-idp.obj packet-ieee80211.obj packet-ieee8023.obj packet- ieee802a.obj packet-ifcp.obj packet-igap.obj packet-igmp.obj packet-igrp.obj packet-image-gif.obj packet-image-jfif.obj packet-imap.obj packet-inap.obj packet-ip.obj packet-ipdc.obj packet-ipfc.obj packet-ipmi.obj packet-ipp.obj packet- ipsec-udp.obj packet-ipsec.obj packet-ipv6.obj packet-ipvs-syn cd.obj packet-ipx.obj packet-ipxwan.obj packet-irc.obj packet-isakmp.o
bj       packet-iscsi.obj        packet-isdn.obj         packet-isis-clv.obj
packet-isis-hello.obj packet-isis-lsp.obj packet-isis-snp.obj packet-
isis.obj         packet-isl.obj  packet-ismp.obj         packet-isns.obj
packet-isup.obj packet-isup_thin.obj packet-iua.obj packet-iuup.obj packet-jabber.obj packet-juniper.obj packet-jxta.obj packet- k12.obj packet-kadm5.obj packet-kerberos.obj packet-kerberos4.obj packet-klm.obj packet-kink.obj packet-kpasswd.obj packet-l2tp.obj
        packet-lapb.obj         packet-lapbether.obj    packet-lapd.obj
packet-laplink.obj packet-ldap.obj packet-ldp.obj packet-logotype certextn.obj packet-llc.obj packet-lldp.obj packet-lmi.obj packet- lmp.obj packet-loop.obj packet-lpd.obj packet-lwapp.obj packet- MAP_DialoguePDU.obj packet-m2pa.obj packet-m2tp.obj packet- m2ua.obj packet-m3ua.obj packet-maccontrol.obj packet-manolito
.obj     packet-mbtcp.obj        packet-mdshdr.obj       packet-media.obj
packet-mip.obj  packet-mip6.obj         packet-mms.obj  packet-ms-mms.obj
packet-mmse.obj packet-mount.obj packet-mpeg1.obj packet- mpls.obj packet-mpls-echo.obj packet-mq.obj packet-mq-pcf.o
bj       packet-mrdisc.obj       packet-msdp.obj         packet-msnlb.obj
packet-msn-messenger.obj        packet-msnip.obj        packet-msproxy.obj
packet-msrp.obj packet-mtp2.obj packet-mtp3.obj packet- mtp3mg.obj packet-multipart.obj packet-mysql.obj packet-nbap.obj packet-nbipx.obj packet-nbns.obj packet-ncp.obj packet-
ncp2222.obj      packet-ncp-nmas.obj     packet-ncp-sss.obj  packet-ncs.obj
packet-ndmp.obj packet-ndps.obj packet-netbios.obj packet- netflow.obj packet-netsync.obj packet-nettl.obj packet-nfs.obj packet- nfsacl.obj packet-nfsauth.obj packet-nhrp.obj packet-nisplus. obj packet-nlm.obj packet-nlsp.obj packet-nntp.obj packet- ns_cert_exts.obj packet-nsip.obj packet-nt-oui.obj packet- nt-sonmp.obj packet-nt-tpcp.obj packet-ntlmssp.obj packet-ntp.obj packet-null.obj packet-ocsp.obj packet-olsr.obj packet-
osi-options.obj  packet-osi.obj  packet-ospf.obj         packet-p_mul.obj
packet-pagp.obj packet-pcnfsd.obj packet-per.obj packet-pflog.ob j packet-pgm.obj packet-pim.obj packet-pn-rt.obj packet-pkcs1.obj packet-pkix1explicit.obj packet-pkix1implicit.obj packet-pkixprox y.obj packet-pkixqualified.obj packet-pkixtsp.obj packet-pkinit.o bj packet-pktc.obj packet-pop.obj packet-portmap.obj packet-
pgsql.obj        packet-ppp.obj  packet-pppoe.obj        packet-pptp.obj
packet-pres.obj packet-prism.obj packet-ptp.obj packet- pvfs2.obj packet-q2931.obj packet-q931.obj packet-q933.obj
        packet-qllc.obj         packet-quake.obj        packet-quake2.obj
packet-quake3.obj packet-quakeworld.obj packet-radius.obj packet- radiotap.obj packet-ranap.obj packet-raw.obj packet-rdt.obj packet-
redback.obj  packet-retix-bpdu.obj  packet-rip.obj       packet-ripng.obj
packet-rlogin.obj packet-rmcp.obj packet-rmi.obj packet-rmp.obj packet-rmt-alc.obj packet-rmt-common.obj packet-rmt-fec.obj packet- rmt-lct.obj packet-rmt-norm.obj packet-rnsap.obj packet-ros.obj packet-rpc.obj packet-rpl.obj packet-rquota.obj packet-rsh.obj packet- rstat.obj packet-rsvp.obj packet-rsync.obj packet-rtcp.obj packet-rtp-events.obj packet-rtp.obj packet-rtps.obj packet- rtse.obj packet-rtsp.obj packet-rwall.obj packet-rx.obj
        packet-s4406.obj        packet-s5066.obj        packet-sadmind.obj
packet-sap.obj packet-sccp.obj packet-sccpmg.obj packet-scsi.obj packet-sctp.obj packet-sdlc.obj packet-sdp.obj packet- sebek.obj packet-ses.obj packet-sflow.obj packet-sip.obj packet- sigcomp.obj packet-sipfrag.obj packet-skinny.obj packet-slimp3.o
bj       packet-sll.obj  packet-slowprotocols.obj        packet-slsk.obj
packet-smb-browse.obj packet-smb-common.obj packet-smb-logon.obj packet-
smb-mailslot.obj         packet-smb-pipe.obj     packet-smb-sidsnooping.obj
packet-smb.obj packet-smb2.obj packet-smpp.obj packet-smrse.ob j packet-smtp.obj packet-sna.obj packet-snaeth.obj packet- sndcp.obj packet-snmp.obj packet-socks.obj packet-spnego.o bj packet-spp.obj packet-spray.obj packet-sscf-nni.obj packet- srvloc.obj packet-sscop.obj packet-ssh.obj packet-ssl.obj packet- stat-notify.obj packet-stat.obj packet-stun.obj packet-sua.obj packet-symantec.obj packet-synergy.obj packet-syslog.obj packet-t38.obj packet-tacacs.obj packet-tali.obj packet-tcap.obj packet-
tcp.obj  packet-tds.obj  packet-teimanagement.obj        packet-telnet.obj
packet-teredo.obj packet-text-media.obj packet-tftp.obj packet-
time.obj         packet-tipc.obj         packet-tns.obj  packet-tpkt.obj
packet-tr.obj   packet-trmac.obj        packet-tsp.obj  packet-tuxedo.obj
packet-tzsp.obj packet-ucp.obj packet-uma.obj packet-udp.obj packet- user_encap.obj packet-v120.obj packet-vines.obj packet-vj.obj packet- vlan.obj packet-vnc.obj packet-vrrp.obj packet-vtp.obj packet- wap.obj packet-wbxml.obj packet-wccp.obj packet-wcp.obj packet- wfleet-hdlc.obj packet-who.obj packet-windows-common.obj packet-winsrepl .obj packet-wlancap.obj packet-wlancertextn.obj packet-wsp.obj packet-wtls.obj packet-wtp.obj packet-x11.obj packet-x25.obj packet-
x29.obj  packet-x411.obj         packet-x420.obj         packet-x509af.obj
packet-x509ce.obj packet-x509if.obj packet-x509sat.obj packet- xdmcp.obj packet-xml.obj packet-xot.obj packet-xyplex.obj packet- yhoo.obj packet-ymsg.obj packet-ypbind.obj packet-yppasswd
.obj     packet-ypserv.obj       packet-ypxfr.obj        packet-zebra.obj
       packet-xxx.obj packet-dcerpc-nt.obj      register.obj
/usr/bin/rm: cannot remove `\\': Is a directory
NMAKE : fatal error U1077: 'c:\cygwin\bin\rm.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\N
MAKE.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\N
MAKE.EXE"' : return code '0x2'
Stop.
______________________________________________________________________

I have all the cygwin tools installed on my machine. Please help me.