Wireshark-dev: Re: [Wireshark-dev] Compilation error on windows XP
From: Abhijit Mirajkar <abhijit@xxxxxxxxxxx>
Date: Sat, 24 May 2008 20:59:27 +0530
Thanks for your response. If I don't include the cygwin INCLUDE path, then I
get the following error. When I searched for the header file it is
complaining about (unistd.h), it was present in the cygwin include path and
so I appended it.

The compiler output with cygwin INCLUDE path was :
=====
cd wiretap
       "C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" /
         -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

       cl -DWIN32 -DNULL=0 -D_MT -D_DLL -WX -DYYMALLOC=malloc -DYYFREE=free
-DH
AVE_CONFIG_H /I. /I..  /IC:\wireshark-libs-1.0\glib\include\glib-2.0
/IC:\wires
hark-libs-1.0\glib\lib\glib-2.0\include
/IC:\wireshark-libs-1.0\zlib123\include
/IC:\wireshark-libs-1.0\WPdpack/include  -D_U_="" /Zi /W3 /MD
/D_CRT_SECURE_NO_D
EPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DMSC_VER_REQUIRED=1400 -Fd.\ -c
k12text.c

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for
80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

k12text.c
k12text.c(952) : fatal error C1083: Cannot open include file: 'unistd.h': No
suc
h file or directory
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'
=====

----- Original Message -----
From: "Graham Bloice" <graham.bloice@xxxxxxxxxxxxx>

You don't need the Cygwin include path at all.  This is causing these
errors.  Remove that addition to the INCLUDE env var and try again.  If
you are still getting errors have you set up the Visual Studio env vars
by the steps in 2.2.6 of the guide?

--
Regards,

Graham Bloice



Abhijit Mirajkar wrote:
Hi,

I am trying to compile the wireshark by following the instructions
word-by-word  given at
http://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html
Only that instead of getting the source through subversion, I have
downloaded version 1.0.0.0 zipped code.

However I am getting following compilation error :
"k12text.c
C:\cygwin\usr\include\sys/_types.h(15) : error C2054: expected '(' to
follow
'__
extension__'
C:\cygwin\usr\include\sys/_types.h(15) : error C2085: '_off64_t' : not in
formal
 parameter list"

Note that I had to append the INCLUDE environment variable with the path
for
cygwin include (C:\cygwin\usr\include\sys).

Can anybody please throw some light?
Thanks in advance,





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


The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system.