This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: gdb/546: GDB fails to build under Cygwin on Windows Hosts
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 14 May 2002 18:18:01 -0000
- Subject: Re: gdb/546: GDB fails to build under Cygwin on Windows Hosts
- Reply-to: Daniel Jacobowitz <drow at mvista dot com>
The following reply was made to PR gdb/546; it has been noted by GNATS.
From: Daniel Jacobowitz <drow@mvista.com>
To: craig@triscend.com
Cc: gdb-gnats@sources.redhat.com
Subject: Re: gdb/546: GDB fails to build under Cygwin on Windows Hosts
Date: Tue, 14 May 2002 14:15:22 -0400
On Tue, May 14, 2002 at 05:22:08PM -0000, craig@triscend.com wrote:
>
> >Number: 546
> >Category: gdb
> >Synopsis: GDB fails to build under Cygwin on Windows Hosts
> >Confidential: no
> >Severity: serious
> >Priority: medium
> >Responsible: unassigned
> >State: open
> >Class: sw-bug
> >Submitter-Id: net
> >Arrival-Date: Tue May 14 10:27:59 PDT 2002
> >Closed-Date:
> >Last-Modified:
> >Originator: craig@triscend.com
> >Release: unknown-1.0
> >Organization:
> >Environment:
>
> >Description:
> The build error is due to a missing header file called udp.h in /usr/include/netinet
>
> The following change causes the problem.
>
> 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
>
> * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
> and tcp_close to net_open and net_close.
> (net_open): Accept "udp:" and "tcp:" specifications. Connect
> using UDP if requested. Don't try to disable Nagle on UDP
> sockets.
> * remote.c (remote_serial_open): New function. Warn about UDP.
> (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
I didn't guard this include because <netinet/tcp.h> was changed to be
unconditionally included on Cygwin. Is <netinet/tcp.h> really present
without <netinet/udp.h>?
I see that <netinet/tcp.h> is a dummy file... perhaps <netinet/udp.h>
should also be...
> >How-To-Repeat:
> Build GDB on a windows host using Cygwin.
> >Fix:
>
> >Release-Note:
> >Audit-Trail:
> >Unformatted:
>
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer