All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Upgrade glibc from 2.6.1 to 2.10.1, the 2.6.1 glibc cause ltrace compilation failed
@ 2009-12-25  3:42 Guo Hongruan
  2009-12-25  4:46 ` Holger Hans Peter Freyther
  0 siblings, 1 reply; 4+ messages in thread
From: Guo Hongruan @ 2009-12-25  3:42 UTC (permalink / raw)
  To: openembedded-devel

the include/sys/ptrace.h of glibc 2.6.1 does not include the PTRACE_EVENT* macroes, which is needed by ltrace. the one of glibc 2.10.1 does include them and on it the compilation of ltrace succeed
---
 conf/distro/include/sane-toolchain.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/conf/distro/include/sane-toolchain.inc b/conf/distro/include/sane-toolchain.inc
index 7bf1963..39bc9aa 100644
--- a/conf/distro/include/sane-toolchain.inc
+++ b/conf/distro/include/sane-toolchain.inc
@@ -9,8 +9,8 @@ PREFERRED_GCC_VERSION                ?= "4.4.2"
 PREFERRED_BINUTILS                   ?= "2.20"
 
 # Prefer glibc 2.6 and uclibc 0.9.30, these have had the most testing.
-PREFERRED_VERSION_glibc             ?= "2.6.1"
-PREFERRED_VERSION_glibc-initial     ?= "2.6.1"
+PREFERRED_VERSION_glibc             ?= "2.10.1"
+PREFERRED_VERSION_glibc-initial     ?= "2.10.1"
 PREFERRED_VERSION_eglibc             ?= "2.10"
 PREFERRED_VERSION_eglibc-initial     ?= "2.10"
 PREFERRED_VERSION_uclibc            ?= "0.9.30.1"
-- 
1.5.4.3




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Upgrade glibc from 2.6.1 to 2.10.1, the 2.6.1 glibc cause ltrace compilation failed
  2009-12-25  3:42 [PATCH] Upgrade glibc from 2.6.1 to 2.10.1, the 2.6.1 glibc cause ltrace compilation failed Guo Hongruan
@ 2009-12-25  4:46 ` Holger Hans Peter Freyther
  2009-12-25  6:16   ` Guo Hongruan
  0 siblings, 1 reply; 4+ messages in thread
From: Holger Hans Peter Freyther @ 2009-12-25  4:46 UTC (permalink / raw)
  To: openembedded-devel

On Friday 25 December 2009 04:42:53 Guo Hongruan wrote:
> the include/sys/ptrace.h of glibc 2.6.1 does not include the PTRACE_EVENT*
>  macroes, which is needed by ltrace. the one of glibc 2.10.1 does include
>  them and on it the compilation of ltrace succeed ---

That is quite a bad reason to upgrade the default. The problem is you would 
have to convince us that glibc 2.10.1 is working just fine for arm, armeb, 
mips, mipsel, powerpc, avr, sparc, i486, i586... Or at least your commit 
message should include the information that you have tested builds with it.


Then again. It is pretty common that older versions of a library do not have 
newere definitions of syscalls and syscall parameters (e.g. most notable this 
happened with the addition of inotify and early adaption of it). The fix is the 
one you proposed. Check if the system has the definition, if not define it 
locally.


regards
	holger





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Upgrade glibc from 2.6.1 to 2.10.1, the 2.6.1 glibc cause ltrace compilation failed
  2009-12-25  4:46 ` Holger Hans Peter Freyther
@ 2009-12-25  6:16   ` Guo Hongruan
  2009-12-25 10:54     ` Holger Hans Peter Freyther
  0 siblings, 1 reply; 4+ messages in thread
From: Guo Hongruan @ 2009-12-25  6:16 UTC (permalink / raw)
  To: openembedded-devel

在 Fri, 25 Dec 2009 12:46:52 +0800,Holger Hans Peter Freyther  
<holger+oe@freyther.de> 写道:

> On Friday 25 December 2009 04:42:53 Guo Hongruan wrote:
>> the include/sys/ptrace.h of glibc 2.6.1 does not include the  
>> PTRACE_EVENT*
>>  macroes, which is needed by ltrace. the one of glibc 2.10.1 does  
>> include
>>  them and on it the compilation of ltrace succeed ---
>
> That is quite a bad reason to upgrade the default. The problem is you  
> would
> have to convince us that glibc 2.10.1 is working just fine for arm,  
> armeb,
> mips, mipsel, powerpc, avr, sparc, i486, i586... Or at least your commit
> message should include the information that you have tested builds with  
> it.

The include/sys/ptrace.h of glibc 2.6.1 lacks of the above macroes, this  
is a bug of it, which was fixed by the later glibc There is a newer  
version of glibc recipes, so I have no reason to not test with it.

Yes, I have not validated on some much architecture. It is only verified  
on qemux86 and minimal.conf.

>
>
> Then again. It is pretty common that older versions of a library do not  
> have
> newere definitions of syscalls and syscall parameters (e.g. most notable  
> this
> happened with the addition of inotify and early adaption of it). The fix  
> is the
> one you proposed. Check if the system has the definition, if not define  
> it
> locally.
>
>
> regards
> 	holger
>
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


-- 
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Upgrade glibc from 2.6.1 to 2.10.1, the 2.6.1 glibc cause ltrace compilation failed
  2009-12-25  6:16   ` Guo Hongruan
@ 2009-12-25 10:54     ` Holger Hans Peter Freyther
  0 siblings, 0 replies; 4+ messages in thread
From: Holger Hans Peter Freyther @ 2009-12-25 10:54 UTC (permalink / raw)
  To: openembedded-devel

On Friday 25 December 2009 07:16:00 Guo Hongruan wrote:
> 在 Fri, 25 Dec 2009 12:46:52 +0800,Holger Hans Peter Freyther

> The include/sys/ptrace.h of glibc 2.6.1 lacks of the above macroes, this
> is a bug of it, which was fixed by the later glibc There is a newer
> version of glibc recipes, so I have no reason to not test with it.

Sure you have no reason to not test it but that is different from changing the 
default for everyone else. The other thing from released software something is 
always missing...






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-12-25 10:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-25  3:42 [PATCH] Upgrade glibc from 2.6.1 to 2.10.1, the 2.6.1 glibc cause ltrace compilation failed Guo Hongruan
2009-12-25  4:46 ` Holger Hans Peter Freyther
2009-12-25  6:16   ` Guo Hongruan
2009-12-25 10:54     ` Holger Hans Peter Freyther

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.