[oe] [PATCH] Fix compilation error of events.c in ltrace on i386 target
Khem Raj
raj.khem at gmail.com
Thu Dec 24 17:45:08 UTC 2009
On Thu, Dec 24, 2009 at 12:17 AM, Guo Hongruan <camelguo at gmail.com> wrote:
> on qemux86/minimal, the compilation of ltrace error reporting lack of some macro started with PTRACE_EVENT, this patch fixes this problem.
All PTRACE_EVENT* defines should come from sys/ptrace.h
which it includes already. If these defines are not there then
there seems to be a problem either in the libc headers that
are installed or the way they are getting included.
Can you post the preprocessed output of event.c ?
> ---
> .../files/ltrace-fix-ptrace-event-macros.patch | 12 ++++++++++++
> recipes/ltrace/ltrace_0.5.3.bb | 4 ++++
> 2 files changed, 16 insertions(+), 0 deletions(-)
> create mode 100644 recipes/ltrace/files/ltrace-fix-ptrace-event-macros.patch
>
> diff --git a/recipes/ltrace/files/ltrace-fix-ptrace-event-macros.patch b/recipes/ltrace/files/ltrace-fix-ptrace-event-macros.patch
> new file mode 100644
> index 0000000..7232ca8
> --- /dev/null
> +++ b/recipes/ltrace/files/ltrace-fix-ptrace-event-macros.patch
> @@ -0,0 +1,12 @@
> +Index: ltrace-0.5.3/sysdeps/linux-gnu/events.c
> +===================================================================
> +--- ltrace-0.5.3.orig/sysdeps/linux-gnu/events.c 2009-12-24 15:58:24.000000000 +0800
> ++++ ltrace-0.5.3/sysdeps/linux-gnu/events.c 2009-12-24 15:58:41.000000000 +0800
> +@@ -8,6 +8,7 @@
> + #include <signal.h>
> + #include <string.h>
> + #include <sys/ptrace.h>
> ++#include <linux/ptrace.h>
> +
> + #include "common.h"
> +
> diff --git a/recipes/ltrace/ltrace_0.5.3.bb b/recipes/ltrace/ltrace_0.5.3.bb
> index 4130c29..1f70878 100644
> --- a/recipes/ltrace/ltrace_0.5.3.bb
> +++ b/recipes/ltrace/ltrace_0.5.3.bb
> @@ -4,6 +4,8 @@ SECTION = "devel"
> DEPENDS = "libelf"
> LICENSE = "GPLv2"
>
> +PR = "r2"
> +
> SRC_URI = "\
> ${DEBIAN_MIRROR}/main/l/ltrace/ltrace_${PV}.orig.tar.gz \
> ${DEBIAN_MIRROR}/main/l/ltrace/ltrace_${PV}-2.diff.gz;patch=1 \
> @@ -12,7 +14,9 @@ SRC_URI = "\
> file://ltrace-mips-remove-CP.patch;patch=1 \
> file://ltrace-mips.patch;patch=1 \
> file://ltrace-ppc.patch;patch=1 \
> + file://ltrace-fix-ptrace-event-macros.patch;patch=1 \
> "
> +
> inherit autotools
>
> export TARGET_CFLAGS = "${SELECTED_OPTIMIZATION} -isystem ${STAGING_INCDIR}"
> --
> 1.5.4.3
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
More information about the Openembedded-devel
mailing list