Ethereal-dev: RE: [Ethereal-dev] building tethereal under cygwin

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

From: Biot Olivier <Olivier.Biot@xxxxxxxxxxx>
Date: Tue, 1 Jul 2003 14:09:05 +0200
The output of ./configure of libpcap (either from WinPcap or from
tcpdump.org):

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:636: checking host system type
configure:657: checking target system type
configure:675: checking build system type
configure:764: checking for gcc
configure:877: checking whether the C compiler (gcc  ) works
configure:893: gcc -o conftest    conftest.c  1>&5
configure:919: checking whether the C compiler (gcc  ) is a cross-compiler
configure:924: checking whether we are using GNU C
configure:933: gcc -E conftest.c
configure:952: checking whether gcc accepts -g
configure:989: checking gcc version
configure:1132: checking for inline
configure:1162: gcc -c -g -O2  conftest.c 1>&5
configure:1190: checking for __attribute__
configure:1213: gcc -c -g -O2  conftest.c 1>&5
configure:1235: checking for u_int8_t using gcc
configure:1253: gcc -c -g -O2  conftest.c 1>&5
configure:1273: checking for u_int16_t using gcc
configure:1291: gcc -c -g -O2  conftest.c 1>&5
configure:1311: checking for u_int32_t using gcc
configure:1329: gcc -c -g -O2  conftest.c 1>&5
configure:1350: checking how to run the C preprocessor
configure:1371: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1433: checking for sys/ioccom.h
configure:1443: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1439:24: sys/ioccom.h: No such file or directory
configure: failed program was:
#line 1438 "configure"
#include "confdefs.h"
#include <sys/ioccom.h>
configure:1433: checking for sys/sockio.h
configure:1443: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1439:24: sys/sockio.h: No such file or directory
configure: failed program was:
#line 1438 "configure"
#include "confdefs.h"
#include <sys/sockio.h>
configure:1433: checking for ifaddrs.h
configure:1443: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1439:21: ifaddrs.h: No such file or directory
configure: failed program was:
#line 1438 "configure"
#include "confdefs.h"
#include <ifaddrs.h>
configure:1433: checking for limits.h
configure:1443: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1433: checking for netinet/if_ether.h
configure:1443: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1439:30: netinet/if_ether.h: No such file or directory
configure: failed program was:
#line 1438 "configure"
#include "confdefs.h"
#include <netinet/if_ether.h>
configure:1472: checking for ANSI ioctl definitions
configure:1496: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:1490: case label does not reduce to an integer constant
configure:1491: case label does not reduce to an integer constant
configure: failed program was:
#line 1477 "configure"
#include "confdefs.h"
/*
		     * This generates a "duplicate case value" when
fixincludes
		     * has not be run.
		     */
#		include <sys/types.h>
#		include <sys/time.h>
#		include <sys/ioctl.h>
#		ifdef HAVE_SYS_IOCCOM_H
#		include <sys/ioccom.h>
#		endif
int main() {
switch (0) {
		    case _IO('A', 1):;
		    case _IO('B', 1):;
		    }
; return 0; }

The ANSI ioctl test fails...

Regards,

Olivier

> -----Original Message-----
> From: Guy Harris
> 
> On Mon, Jun 30, 2003 at 08:46:59AM +0200, Biot Olivier wrote:
> > > -----Original Message-----
> > > From: Guy Harris
> > > 
> > > On Fri, Jun 27, 2003 at 01:10:44PM +0200, Biot Olivier wrote:
> > > > I'm incapable of compiling tethereal under cygwin.
> > > 
> > > Is HAVE_LIBPCAP defined in "config.h"?
> > 
> > it isn't. Do I really *NEED* pcap (I disabled it).
> 
> Currently, yes, because the capture-from-pipe stuff is compiled in
> regardless of whether you are building on Win32 or not and 
> regardless of
> whether you have *pcap or not.
> 
> If we leave it out when building for Win32, or leave it out when
> building for Win32 without libpcap, or possibly get rid of the stuff
> that leaves some definitions for capture-from-pipe out when 
> building on
> Win32, we might be able to eliminate that requirement.
> 
> > $ grep -i pcap config.h
> > /* Define to use libpcap library */
> > /* #undef HAVE_LIBPCAP */
> > /* Define if libpcap version is known */
> > /* #undef HAVE_PCAP_VERSION */
> > 
> > > If not, do you have WinPcap installed, complete with the 
> developer's
> > > kit?
> > > 
> > > If so, and if "config.h" was built by the configure script, 
> > > then either
> > > there's a problem with the configure script on Cygwin that 
> > > causes it not
> > > to find WinPcap, or you need to use "--with-pcap=<directory>" 
> > > to tell it
> > > in which directory to look for WinPcap libraries and headers.
> > 
> > I now installed the WinPcap developer's pack, and tried the 
> following:
> >   a.  --with-pcap=DIR
> >   b.  manualy copying the header files to the 
> /usr/include[/net] directory,
> > and the libs to /usr/lib or /lib
> >   c. Same as b. but with a symlink from libwpcap --> libpcap
> >   d. Compiling winpcap from source
> > 
> > Neither works.
> 
> What does the build do instead of working?
>