From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19642 invoked by alias); 9 Feb 2014 16:35:01 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 19632 invoked by uid 89); 9 Feb 2014 16:35:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout21.012.net.il Received: from mtaout21.012.net.il (HELO mtaout21.012.net.il) (80.179.55.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 09 Feb 2014 16:34:48 +0000 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0N0Q00H00LPWPV00@a-mtaout21.012.net.il> for gdb-patches@sourceware.org; Sun, 09 Feb 2014 18:34:45 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N0Q00HJVM1XI080@a-mtaout21.012.net.il>; Sun, 09 Feb 2014 18:34:45 +0200 (IST) Date: Sun, 09 Feb 2014 16:35:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH] Add IPv6 support for remote TCP connections In-reply-to: <20140209130501.GA15183@host2.jankratochvil.net> To: Jan Kratochvil Cc: fercerpav@gmail.com, gdb-patches@sourceware.org, ktietz@redhat.com Reply-to: Eli Zaretskii Message-id: <83k3d4utwr.fsf@gnu.org> References: <1391878435-19340-1-git-send-email-fercerpav@gmail.com> <20140209083056.GA32481@host2.jankratochvil.net> <20140209095308.GH2320@home.lan> <20140209130501.GA15183@host2.jankratochvil.net> X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00258.txt.bz2 > Date: Sun, 9 Feb 2014 14:05:01 +0100 > From: Jan Kratochvil > Cc: gdb-patches@sourceware.org, Kai Tietz > > On Sun, 09 Feb 2014 10:53:08 +0100, Paul Fertser wrote: > > Do you take into account that there're currently two competing > > solutions for providing windows support: MinGW and MinGW-w64? > > Yes, recent Fedoras AFAIK follow the MinGW-w64 port: > https://fedoraproject.org/wiki/MinGW?rd=SIGs/MinGW > https://fedoraproject.org/wiki/MinGW/CrossCompilerFramework > http://mingw-w64.sourceforge.net/ > > > > I've just tried cross-compiling code with getaddrinfo with mingw-w64 > > without any replacements and it was built (and run with wine) just > > fine. > > I have different results for gdb-7.7 with your patch on Fedora Rawhide > (=F-21pre) x86_64: > > ../../gdb/ser-tcp.c: In function 'net_open': > ../../gdb/ser-tcp.c:162:19: error: storage size of 'hints' isn't known > struct addrinfo hints; > ^ > ../../gdb/ser-tcp.c:196:30: error: invalid application of 'sizeof' to incomplete type 'struct addrinfo' > memset (&hints, 0, sizeof (struct addrinfo)); > ^ > ../../gdb/ser-tcp.c:205:3: warning: implicit declaration of function 'getaddrinfo' [-Wimplicit-function-declaration] > tmp = getaddrinfo (hostname, port_str, &hints, &result); > ^ > [...] Did you include ws2tcpip.h? That's the header where getaddrinfo and all that is needed to use it are declared, per the MSDN documentation: http://msdn.microsoft.com/en-us/library/windows/desktop/ms738520%28v=vs.85%29.aspx