From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29249 invoked by alias); 15 May 2015 10:57:07 -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 29239 invoked by uid 89); 15 May 2015 10:57:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=no 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 (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 15 May 2015 10:57:05 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t4FAv1cu010607 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 15 May 2015 06:57:01 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t4FAuxhb003584; Fri, 15 May 2015 06:57:00 -0400 Message-ID: <5555D0FB.8080200@redhat.com> Date: Fri, 15 May 2015 10:57:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Joel Brobecker CC: gdb-patches@sourceware.org Subject: Re: [RFA] Fix gdbserver build failure on arm-android. References: <1431100919-8245-1-git-send-email-brobecker@adacore.com> <555479CC.9030808@redhat.com> <20150514141734.GJ4767@adacore.com> In-Reply-To: <20150514141734.GJ4767@adacore.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2015-05/txt/msg00379.txt.bz2 On 05/14/2015 03:17 PM, Joel Brobecker wrote: >> BTW, do you also trip on this one? : >> >> https://sourceware.org/ml/gdb/2015-04/msg00025.html > > We don't, at the moment. But we're planning on upgrading to a newer > version in the next few weeks, so we might eventually hit that issue > too. We don't know yet which version we'll target, so I can't say > much more at the moment. OK. Seems the clash is with the group_from_gid / user_from_uid BSD functions that do a similar thing from what our versions do. E.g.,: http://nixdoc.net/man-pages/openbsd/man3/group_from_gid.3.html https://developer.apple.com/library/ios/documentation/System/Conceptual/ManPages_iPhoneOS/man3/group_from_gid.3.html "functions first appeared in 4.4BSD". Though BSD's return a pointer to a statically allocated buffer, while gdb's take a buffer pointer as argument. As glibc doesn't support those BSD functions, we don't trip on that on GNU/Linux. I think we should just rename our symbols. E.g., group_from_gid -> gdb_group_from_gid user_from_uid -> gdb_user_from_uid Thanks, Pedro Alves