From patchwork Tue May 17 20:34:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Boden X-Patchwork-Id: 12324 Received: (qmail 15502 invoked by alias); 17 May 2016 20:35:08 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 15485 invoked by uid 89); 17 May 2016 20:35:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD, URIBL_RHS_DOB autolearn=ham version=3.3.2 spammy=os, OS, UD:twitter.com, done! X-HELO: gtw.aybabtu.com Received: from archive.ubuntubsd.org (HELO gtw.aybabtu.com) (78.46.208.135) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 17 May 2016 20:34:57 +0000 Received: from jon by gtw.aybabtu.com with local (Exim 4.82) (envelope-from ) id 1b2lhe-0002Le-76; Tue, 17 May 2016 22:34:54 +0200 Date: Tue, 17 May 2016 22:34:54 +0200 From: Jon Boden To: Yao Qi Cc: gdb-patches@sourceware.org Subject: [PATCH] Re: Patch for GNU/kFreeBSD Message-ID: <20160517203454.GA8967@ubuntubsd.org> References: <20160513205750.GA23358@ubuntubsd.org> <86k2iu9ml8.fsf@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <86k2iu9ml8.fsf@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Hi! On Mon, May 16, 2016 at 02:08:51PM +0100, Yao Qi wrote: > Jon Boden writes: > > > GDB 7.11 needs a tiny fix to build on GNU/kFreeBSD systems. Please can > > you apply this? > > Hi, > Thanks for the patch. Could you describe what is the build problem > without your patch? Yes. GDB needs kinfo_getvmmap() on GNU/kFreeBSD systems same as on pure FreeBSD. However on these systems the FreeBSD version of libutil is renamed to libutil-freebsd. > You also need to regenerate configure file, and > include the changes in the patch too. ChangeLog is needed as well. Done! For ChangeLog: 2016-05-17 Jon Boden * configure.ac: Search for libutil-freebsd as alternative to libutil. Thanks diff -ur gdb-7.11.50.20160517.old/gdb/configure gdb-7.11.50.20160517/gdb/configure --- gdb-7.11.50.20160517.old/gdb/configure 2016-05-16 21:48:40.000000000 -0400 +++ gdb-7.11.50.20160517/gdb/configure 2016-05-17 16:29:07.000000000 -0400 @@ -7074,7 +7074,7 @@ return 0; } _ACEOF -for ac_lib in '' util; do +for ac_lib in '' util util-freebsd; do if test -z "$ac_lib"; then ac_res="none required" else diff -ur gdb-7.11.50.20160517.old/gdb/configure.ac gdb-7.11.50.20160517/gdb/configure.ac --- gdb-7.11.50.20160517.old/gdb/configure.ac 2016-05-16 21:48:40.000000000 -0400 +++ gdb-7.11.50.20160517/gdb/configure.ac 2016-05-17 16:29:07.000000000 -0400 @@ -535,7 +535,7 @@ AM_ZLIB # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c). -AC_SEARCH_LIBS(kinfo_getvmmap, util, +AC_SEARCH_LIBS(kinfo_getvmmap, util util-freebsd, [AC_DEFINE(HAVE_KINFO_GETVMMAP, 1, [Define to 1 if your system has the kinfo_getvmmap function. ])])