Ethereal-dev: RE: [Ethereal-dev] 0.10.12 Win32 compile errors due to #include<unistd.h> not wr

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

From: "Maynard, Chris" <Christopher.Maynard@xxxxxxxxx>
Date: Thu, 4 Aug 2005 17:45:59 -0400
Thanks!  I ran distclean and recompiled without a problem.
Would someone mind updating either the README.win32 file to indicate
that a distclean should be done, or modify cleanbld.bat itself to do the
distclean?

Thanks again,
Chris


-----Original Message-----
From: ethereal-dev-bounces@xxxxxxxxxxxx
[mailto:ethereal-dev-bounces@xxxxxxxxxxxx] On Behalf Of Joerg Mayer
Sent: Thursday, August 04, 2005 5:26 PM
To: Ethereal development
Subject: Re: [Ethereal-dev] 0.10.12 Win32 compile errors due to
#include<unistd.h> not wrapped

I don't compile ethereal on windows and rarely use it on that platform,
but:

On Thu, Aug 04, 2005 at 04:50:10PM -0400, Maynard, Chris wrote:
> epan/radius_dict.c

This is wrapped by #ifdef __cplusplus
which shouldn't be defined as we are compiling with c and not c++

> plugins/mate/mate_parser.c

The wrapper is already there. And config.h is included before it.
No idea what's going wrong here.

> plugins/xml/xml_parser.c

You will probably want to run make distclean first, see the following
comment from plugins/xml/Makefile.nmake

# We remove the generated files with "distclean" because one of them,
# "xml_lexer.c", needs different #includes for UN*X and Windows
# (UN*X versions of Flex make it include <unistd.h>, but that's a
# UN*X-only header), so if you're going to build from source, you need
# to build "xml_lexer.c" from "xml_lexer.l" with Flex.
#
distclean: clean
        rm -f xml_lexer.c

 Ciao
    Joerg
-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.



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