Fix compilation error of events.c in ltrace on i386 target
PATCH 1/1 Fix compilation error of events.c in ltrace on i386 target
on qemux86/minimal, the compilation of ltrace error reporting lack of some macro started with PTRACE_EVENT, this patch fixes this problem.
--- .../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
recipes/ltrace/files/ltrace-fix-ptrace-event-macros.patch new file +12 -0
@@ -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" +
recipes/ltrace/ltrace_0.5.3.bb +4 -0
@@ -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}"
Signature · 1 line
1.5.4.3
Quoted 1 line · Guo Hongruan
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 ?
Quoted 56 lines
---
.../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.patchrecipes/ltrace/files/ltrace-fix-ptrace-event-macros.patch new file +12
-0@@ -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" +recipes/ltrace/ltrace_0.5.3.bb +0
-0@@ -4,6 +4,8 @@ SECTION = "devel"DEPENDS = "libelf"
LICENSE = "GPLv2"recipes/ltrace/ltrace_0.5.3.bb +2
-0+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 \recipes/ltrace/ltrace_0.5.3.bb +1
-0@@ -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 autotoolsexport
TARGET_CFLAGS= "${SELECTED_OPTIMIZATION} -isystem ${STAGING_INCDIR}" --
1.5.4.3_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Yes, you are right.
In ubuntu-8.04, all PTRACE_EVENT* macroes are defined in /usr/include/sys/ptrace.h. The version of glibc in ubuntu 8.04 is 2.7.10. But in glibc-2.6.1 of openembedded, sys/ptrace.h does not include PTRACE_EVENT* macroes. So I believe it is a bug of glibc-2.6.10 or ltrace.
usr/include/sys/ptrace.h renamed from i686-oe-linux/usr/include/sys/ptrace.h +24 -1
@@ -1,5 +1,5 @@/* `ptrace' debugger support interface. Linux version. -Copyright (C) 1996-1999,2000,2006 Free Software Foundation, Inc. +Copyright (C) 1996-1999,2000,2006,2007 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or
@@ -129,6 +129,29 @@#define PT_SETSIGINFO PTRACE_SETSIGINFO }; + +/* Options set using PTRACE_SETOPTIONS. */ +enum __ptrace_setoptions { +PTRACE_O_TRACESYSGOOD =0x00000001 , +PTRACE_O_TRACEFORK =0x00000002 , +PTRACE_O_TRACEVFORK =0x00000004 , +PTRACE_O_TRACECLONE =0x00000008 , +PTRACE_O_TRACEEXEC =0x00000010 , +PTRACE_O_TRACEVFORKDONE =0x00000020 , +PTRACE_O_TRACEEXIT =0x00000040 , +PTRACE_O_MASK =0x0000007f +}; + +/* Wait extended result codes for the above trace options. */ +enum __ptrace_eventcodes { +PTRACE_EVENT_FORK =1 , +PTRACE_EVENT_VFORK =2 , +PTRACE_EVENT_CLONE =3 , +PTRACE_EVENT_EXEC =4 , +PTRACE_EVENT_VFORK_DONE =5 , +PTRACE_EVENT_EXIT =6 +}; +/* Perform process tracing functions. REQUEST is one of the values above, and determines the action to be taken. For all requests except PTRACE_TRACEME, PID specifies the process to be
Quoted 75 lines · 在 Fri, 25 Dec 2009 01:45:08 +0800,Khem Raj <[email protected]> 写道:
Quoted 1 line · Guo Hongruan
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.hwhich 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?Quoted 55 lines
--- .../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.patchrecipes/ltrace/files/ltrace-fix-ptrace-event-macros.patch new file +3
-0@@ -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-2415:58:24.000000000 +0800
++++ltrace-0.5.3/sysdeps/linux-gnu/events.c2009-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>recipes/ltrace/files/ltrace-fix-ptrace-event-macros.patch new file +3
-0+ + #include "common.h" +recipes/ltrace/ltrace_0.5.3.bb +4
-0@@ -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.3Quoted 5 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 4 lines
Guo Hongruan, Embedded Linux Consultant Skype: camelguo Twitter: camelguo http://www.gulessoft.com
Hi Khem Raj
The events.E attached is the preprocessed output of event.c
Quoted 125 lines · 在 Fri, 25 Dec 2009 09:21:45 +0800,Guo Hongruan <[email protected]> 写道:
Yes, you are right.
In ubuntu-8.04, all PTRACE_EVENT* macroes are defined in
/usr/include/sys/ptrace.h. The version of glibc in ubuntu 8.04 is 2.7.10. But in glibc-2.6.1 of openembedded,sys/ptrace.hdoes not include PTRACE_EVENT* macroes. So I believe it is a bug of glibc-2.6.10 or ltrace.---
staging/i686-oe-linux/usr/include/sys/ptrace.h2009-12-24
19:21:47.000000000 +0800
+++/usr/include/sys/ptrace.h2009-08-18 09:02:45.000000000 +0800usr/include/sys/ptrace.h renamed from i686-oe-linux/usr/include/sys/ptrace.h +24
-1@@ -1,5 +1,5 @@/* `ptrace' debugger support interface. Linux version. -Copyright (C) 1996-1999,2000,2006 Free Software Foundation, Inc. +Copyright (C) 1996-1999,2000,2006,2007 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -129,6 +129,29 @@#define PT_SETSIGINFO PTRACE_SETSIGINFO }; + +/* Options set using PTRACE_SETOPTIONS. */ +enum __ptrace_setoptions { +PTRACE_O_TRACESYSGOOD =0x00000001 , +PTRACE_O_TRACEFORK =0x00000002 , +PTRACE_O_TRACEVFORK =0x00000004 , +PTRACE_O_TRACECLONE =0x00000008 , +PTRACE_O_TRACEEXEC =0x00000010 , +PTRACE_O_TRACEVFORKDONE =0x00000020 , +PTRACE_O_TRACEEXIT =0x00000040 , +PTRACE_O_MASK =0x0000007f +}; + +/* Wait extended result codes for the above trace options. */ +enum __ptrace_eventcodes { +PTRACE_EVENT_FORK =1 , +PTRACE_EVENT_VFORK =2 , +PTRACE_EVENT_CLONE =3 , +PTRACE_EVENT_EXEC =4 , +PTRACE_EVENT_VFORK_DONE =5 , +PTRACE_EVENT_EXIT =6 +}; +/* Perform process tracing functions. REQUEST is one of the values above, and determines the action to be taken. For all requests except PTRACE_TRACEME, PID specifies the process to be
Quoted 75 lines · 在 Fri, 25 Dec 2009 01:45:08 +0800,Khem Raj <[email protected]> 写道:
Quoted 1 line · Guo Hongruan
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.hwhich 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?Quoted 55 lines
--- .../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.patchrecipes/ltrace/files/ltrace-fix-ptrace-event-macros.patch new file +3
-0@@ -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-2415:58:24.000000000 +0800
++++ltrace-0.5.3/sysdeps/linux-gnu/events.c2009-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>recipes/ltrace/files/ltrace-fix-ptrace-event-macros.patch new file +3
-0+ + #include "common.h" +recipes/ltrace/ltrace_0.5.3.bb +4
-0@@ -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.3Quoted 5 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 4 lines
Guo Hongruan, Embedded Linux Consultant Skype: camelguo Twitter: camelguo http://www.gulessoft.com
Quoted 45 lines · Guo Hongruan
Yes, you are right.
In ubuntu-8.04, all PTRACE_EVENT* macroes are defined in
/usr/include/sys/ptrace.h. The version of glibc in ubuntu 8.04 is 2.7.10. But in glibc-2.6.1 of openembedded,sys/ptrace.hdoes not include PTRACE_EVENT* macroes. So I believe it is a bug of glibc-2.6.10 or ltrace.---
staging/i686-oe-linux/usr/include/sys/ptrace.h2009-12-24 19:21:47.000000000 +0800
+++/usr/include/sys/ptrace.h2009-08-18 09:02:45.000000000 +0800usr/include/sys/ptrace.h renamed from i686-oe-linux/usr/include/sys/ptrace.h +1
-1@@ -1,5 +1,5 @@ /* `ptrace' debugger support interface. Linux version. -Copyright (C) 1996-1999,2000,2006 Free Software Foundation, Inc. +Copyright (C) 1996-1999,2000,2006,2007 Free Software Foundation, Inc. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
usr/include/sys/ptrace.h renamed from i686-oe-linux/usr/include/sys/ptrace.h +23
-0@@ -129,6 +129,29 @@ #define PT_SETSIGINFO PTRACE_SETSIGINFO }; + +/* Options set using PTRACE_SETOPTIONS. */ +enum __ptrace_setoptions { + PTRACE_O_TRACESYSGOOD = 0x00000001, + PTRACE_O_TRACEFORK = 0x00000002, + PTRACE_O_TRACEVFORK = 0x00000004, + PTRACE_O_TRACECLONE = 0x00000008, + PTRACE_O_TRACEEXEC = 0x00000010, + PTRACE_O_TRACEVFORKDONE = 0x00000020, + PTRACE_O_TRACEEXIT = 0x00000040, + PTRACE_O_MASK = 0x0000007f +}; + +/* Wait extended result codes for the above trace options. */ +enum __ptrace_eventcodes { + PTRACE_EVENT_FORK = 1, + PTRACE_EVENT_VFORK = 2, + PTRACE_EVENT_CLONE = 3, + PTRACE_EVENT_EXEC = 4, + PTRACE_EVENT_VFORK_DONE = 5, + PTRACE_EVENT_EXIT = 6 +}; + /* Perform process tracing functions. REQUEST is one of the values
Quoted 2 lines
above, and determines the action to be taken.
For all requests exceptPTRACE_TRACEME, PID specifies the process to be
the above could be patched into glibc 2.6.1 and if you are not specific I would recommend to use some later version of glibc.
Quoted 95 lines · 在 Fri, 25 Dec 2009 01:45:08 +0800,Khem Raj <[email protected]> 写道:
Quoted 70 lines · Guo Hongruan
Quoted 3 lines
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.hwhich 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?Quoted 57 lines
---
.../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.patchrecipes/ltrace/files/ltrace-fix-ptrace-event-macros.patch new file +3
-0@@ -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-2415:58:24.000000000 +0800
++++ltrace-0.5.3/sysdeps/linux-gnu/events.c2009-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>recipes/ltrace/files/ltrace-fix-ptrace-event-macros.patch new file +3
-0+ + #include "common.h" +recipes/ltrace/ltrace_0.5.3.bb +0
-0@@ -4,6 +4,8 @@ SECTION = "devel"DEPENDS = "libelf"
LICENSE = "GPLv2"recipes/ltrace/ltrace_0.5.3.bb +2
-0+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 \recipes/ltrace/ltrace_0.5.3.bb +1
-0@@ -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 autotoolsexport
TARGET_CFLAGS= "${SELECTED_OPTIMIZATION} -isystem ${STAGING_INCDIR}"
--
1.5.4.3Quoted 10 lines
Quoted 5 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel--
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
I am trying the glibc-2.10.1
Quoted 156 lines · 在 Fri, 25 Dec 2009 09:58:41 +0800,Khem Raj <[email protected]> 写道:
Quoted 48 lines · Guo Hongruan
Yes, you are right.
In ubuntu-8.04, all PTRACE_EVENT* macroes are defined in
/usr/include/sys/ptrace.h. The version of glibc in ubuntu 8.04 is 2.7.10. But in glibc-2.6.1 of openembedded,sys/ptrace.hdoes not include PTRACE_EVENT* macroes. So I believe it is a bug of glibc-2.6.10 or ltrace.---
staging/i686-oe-linux/usr/include/sys/ptrace.h2009-12-24
19:21:47.000000000 +0800
+++/usr/include/sys/ptrace.h2009-08-18 09:02:45.000000000 +0800usr/include/sys/ptrace.h renamed from i686-oe-linux/usr/include/sys/ptrace.h +1
-1@@ -1,5 +1,5 @@/* `ptrace' debugger support interface. Linux version. -Copyright (C) 1996-1999,2000,2006 Free Software Foundation, Inc. +Copyright (C) 1996-1999,2000,2006,2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.The GNU C Library is free software; you can redistribute it and/or
usr/include/sys/ptrace.h renamed from i686-oe-linux/usr/include/sys/ptrace.h +23
-0@@ -129,6 +129,29 @@#define PT_SETSIGINFO PTRACE_SETSIGINFO }; + +/* Options set using PTRACE_SETOPTIONS. */ +enum __ptrace_setoptions { +PTRACE_O_TRACESYSGOOD =0x00000001 , +PTRACE_O_TRACEFORK =0x00000002 , +PTRACE_O_TRACEVFORK =0x00000004 , +PTRACE_O_TRACECLONE =0x00000008 , +PTRACE_O_TRACEEXEC =0x00000010 , +PTRACE_O_TRACEVFORKDONE =0x00000020 , +PTRACE_O_TRACEEXIT =0x00000040 , +PTRACE_O_MASK =0x0000007f +}; + +/* Wait extended result codes for the above trace options. */ +enum __ptrace_eventcodes { +PTRACE_EVENT_FORK =1 , +PTRACE_EVENT_VFORK =2 , +PTRACE_EVENT_CLONE =3 , +PTRACE_EVENT_EXEC =4 , +PTRACE_EVENT_VFORK_DONE =5 , +PTRACE_EVENT_EXIT =6 +}; +/* Perform process tracing functions. REQUEST is one of the values above, and determines the action to be taken. For all requests except PTRACE_TRACEME, PID specifies the process to Quoted 1 line
be
the above could be patched into glibc 2.6.1 and if you are not specific I would recommend to use some later version of glibc.
Quoted 91 lines · 在 Fri, 25 Dec 2009 01:45:08 +0800,Khem Raj <[email protected]> 写道:
Quoted 71 lines · Guo Hongruan
Quoted 3 lines
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.hwhich 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?Quoted 58 lines
--- .../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.patchrecipes/ltrace/files/ltrace-fix-ptrace-event-macros.patch new file +3
-0@@ -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-2415:58:24.000000000 +0800
++++ltrace-0.5.3/sysdeps/linux-gnu/events.c2009-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>recipes/ltrace/files/ltrace-fix-ptrace-event-macros.patch new file +3
-0+ + #include "common.h" +recipes/ltrace/ltrace_0.5.3.bb +4
-0@@ -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.3Quoted 10 lines
Quoted 5 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel--
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.comQuoted 5 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 4 lines
Guo Hongruan, Embedded Linux Consultant Skype: camelguo Twitter: camelguo http://www.gulessoft.com