From: Jon Boden <jon@ubuntubsd.org>
To: Yao Qi <qiyaoltc@gmail.com>
Cc: gdb-patches@sourceware.org
Subject: [PATCH] Re: Patch for GNU/kFreeBSD
Date: Tue, 17 May 2016 20:35:00 -0000 [thread overview]
Message-ID: <20160517203454.GA8967@ubuntubsd.org> (raw)
In-Reply-To: <86k2iu9ml8.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 885 bytes --]
Hi!
On Mon, May 16, 2016 at 02:08:51PM +0100, Yao Qi wrote:
> Jon Boden <jon@ubuntubsd.org> 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 <jon@ubuntubsd.org>
* configure.ac: Search for libutil-freebsd as alternative to libutil.
Thanks
--
Jon Boden
ubuntuBSD -- The power of FreeBSD kernel with familiarity of Ubuntu OS!
http://www.ubuntubsd.org/ -- https://twitter.com/ubuntuBSD
[-- Attachment #2: gdb.diff --]
[-- Type: text/x-diff, Size: 979 bytes --]
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. ])])
next prev parent reply other threads:[~2016-05-17 20:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-13 20:58 Jon Boden
2016-05-16 13:09 ` Yao Qi
2016-05-17 20:35 ` Jon Boden [this message]
2016-05-19 13:34 ` [PATCH] " Yao Qi
2016-05-21 8:06 ` Jon Boden
2016-05-23 7:51 ` Yao Qi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160517203454.GA8967@ubuntubsd.org \
--to=jon@ubuntubsd.org \
--cc=gdb-patches@sourceware.org \
--cc=qiyaoltc@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox