From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23039 invoked by alias); 9 Feb 2014 08:31:21 -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 23027 invoked by uid 89); 9 Feb 2014 08:31:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS,T_FRT_STOCK2 autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 09 Feb 2014 08:31:19 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s198V1Gs014006 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 9 Feb 2014 03:31:01 -0500 Received: from host2.jankratochvil.net (ovpn-116-25.ams2.redhat.com [10.36.116.25]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s198Uvaw004446 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 9 Feb 2014 03:30:59 -0500 Date: Sun, 09 Feb 2014 08:31:00 -0000 From: Jan Kratochvil To: Paul Fertser Cc: gdb-patches@sourceware.org, Kai Tietz Subject: Re: [PATCH] Add IPv6 support for remote TCP connections Message-ID: <20140209083056.GA32481@host2.jankratochvil.net> References: <1391878435-19340-1-git-send-email-fercerpav@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1391878435-19340-1-git-send-email-fercerpav@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00253.txt.bz2 On Sat, 08 Feb 2014 17:53:55 +0100, Paul Fertser wrote: > This patch implements target host lookup the modern way, > see ``man 3 getaddrinfo'' for details; as a result, both IPv4 and IPv6 > are transparently supported. Such patch is pending around since ~2006 https://bugzilla.redhat.com/show_bug.cgi?id=198365#c1 and currently a different patch is on jankratochvil/ipv6 git://sourceware.org/git/archer.git It should also implement IPv6 in gdbserver (which you may not need). The problem is that MinGW (=MS-Windows) port does not have getaddrinfo, there are multiple way how to deal with it, the most clean should be via extending gdb/gnulib/ : ------------------------------------------------------------------------------ I was trying to fix it myself but I found out one needs to know mingw/cygwin more than I do. More the chat below, about current GDB #ifdefs for MS-Windows vs. probably the preferred way of using gdb/gnulib/ . For IPv6 mingw build I found I need to add these modules to gdb/gnulib/update-gnulib.sh : IMPORTED_GNULIB_MODULES="$IMPORTED_GNULIB_MODULES getaddrinfo inet_pton accept" IMPORTED_GNULIB_MODULES="$IMPORTED_GNULIB_MODULES bind getsockname listen recv" IMPORTED_GNULIB_MODULES="$IMPORTED_GNULIB_MODULES send setsockopt socket close" IMPORTED_GNULIB_MODULES="$IMPORTED_GNULIB_MODULES sys_select select getsockopt" IMPORTED_GNULIB_MODULES="$IMPORTED_GNULIB_MODULES gettimeofday connect" (the initial few modules are required by the IPv6 patch, all the remaining ones came in as some dependencies IIRC) But then mingw build fails. I tried to fix it in archer/jankratochvil/ipv6 ( git://sourceware.org/git/archer.git ) but I got lost in what is the right way so I guess you should do it from scratch on your own. I tried it more a quick&dirty way but it probably needs a more clean thorough rework IMO. ------------------------------------------------------------------------------ So due to buggy MinGW normal OSes still can't use IPv6 after 7 years while IPv4 even no longer exists on some networks. Jan