From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/3] ltrace: Fix "strndup not declared" build failure on powerpc/uclibc
Date: Fri, 9 Aug 2013 13:24:42 +0300 [thread overview]
Message-ID: <20130809102442.GD3703@tarshish> (raw)
In-Reply-To: <1376041019-26688-4-git-send-email-jezz@sysmic.org>
Hi J?r?me,
On Fri, Aug 09, 2013 at 11:36:59AM +0200, J?r?me Pouiller wrote:
> On some systems, strndup is declared only if _GNU_SOURCE is defined
>
> Signed-off-by: J?r?me Pouiller <jezz@sysmic.org>
> ---
> package/ltrace/ltrace-fix-strndup-usage.patch | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
> create mode 100644 package/ltrace/ltrace-fix-strndup-usage.patch
>
> diff --git a/package/ltrace/ltrace-fix-strndup-usage.patch b/package/ltrace/ltrace-fix-strndup-usage.patch
> new file mode 100644
> index 0000000..ccc0e2c
> --- /dev/null
> +++ b/package/ltrace/ltrace-fix-strndup-usage.patch
> @@ -0,0 +1,15 @@
> +With some systems, strndup is declared only if __USE_GNU is defined.
Please add your sign-off on this patch.
baruch
> +
> +--- a/sysdeps/linux-gnu/ppc/plt.c 2012-11-29 18:46:57.000000000 +0100
> ++++ b/sysdeps/linux-gnu/ppc/plt.c 2013-08-09 10:30:07.452044496 +0200
> +@@ -20,6 +20,10 @@
> + * 02110-1301 USA
> + */
> +
> ++#ifndef _GNU_SOURCE
> ++# define _GNU_SOURCE 1
> ++#endif
> ++
> + #include <gelf.h>
> + #include <sys/ptrace.h>
> + #include <errno.h>
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
next prev parent reply other threads:[~2013-08-09 10:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-09 9:36 [Buildroot] [PATCH 0/3] Fix ltrace autobuilder failures Jérôme Pouiller
2013-08-09 9:36 ` [Buildroot] [PATCH 1/3] ltrace: Explicit enable/disable of libunwind Jérôme Pouiller
2013-08-09 10:23 ` Baruch Siach
2013-08-09 10:24 ` Thomas Petazzoni
2013-08-09 9:36 ` [Buildroot] [PATCH 2/3] ltrace: Fix a May be unitialized variable Jérôme Pouiller
2013-08-09 10:20 ` Baruch Siach
2013-08-09 10:28 ` Thomas Petazzoni
2013-08-09 9:36 ` [Buildroot] [PATCH 3/3] ltrace: Fix "strndup not declared" build failure on powerpc/uclibc Jérôme Pouiller
2013-08-09 10:24 ` Baruch Siach [this message]
2013-08-09 10:29 ` Thomas Petazzoni
2013-08-09 11:05 ` Thomas De Schampheleire
2013-08-09 20:30 ` Thomas Petazzoni
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=20130809102442.GD3703@tarshish \
--to=baruch@tkos.co.il \
--cc=buildroot@busybox.net \
/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