Wireshark-dev: Re: [Wireshark-dev] Compilation error on windows XP
From: Abhijit Mirajkar <[email protected]>
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
AVE_CONFIG_H /I. /I..  /IC:\wireshark-libs-1.0\glib\include\glib-2.0
/IC:\wireshark-libs-1.0\WPdpack/include  -D_U_="" /Zi /W3 /MD

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

k12text.c(952) : fatal error C1083: Cannot open include file: 'unistd.h': No
h file or directory
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
l.EXE"' : return code '0x2'
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
make.exe"' : return code '0x2'

----- Original Message -----
From: "Graham Bloice" <[email protected]>

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?


Graham Bloice

Abhijit Mirajkar wrote:

I am trying to compile the wireshark by following the instructions
word-by-word  given at
Only that instead of getting the source through subversion, I have
downloaded version zipped code.

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

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

Can anybody please throw some light?
Thanks in advance,

Wireshark-dev mailing list
[email protected]

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.