Skip to contentSkip to conversation

Revert of 406cd0fee12ad99ba6d6f7d55f743cc4c6697955

DISCUSSION Koen Kooi 5 participants 7 messages Nov 18, 2009 – Jan 23, 2010

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

Hi,

Since 406cd0fee12ad99ba6d6f7d55f743cc4c6697955 broke all glibc-internal-iconv builds and I'm too lazy/stupid to fix it properly for uclibc I reverted this commit.

Koen

#1 lore raw
Quoted 5 lines · Koen Kooi

Hi,

Since 406cd0fee12ad99ba6d6f7d55f743cc4c6697955 broke all glibc-internal-iconv builds and I'm too lazy/stupid to fix it properly for uclibc I reverted this commit.

for unpatched uClibc you could just
TARGET_CPPFLAGS += -D_Exit=_exit

#2 lore raw

Hello Bernhard,

Quoted 10 lines · Bernhard Reutner-Fischer
Quoted 5 lines · Koen Kooi

Hi,

Since 406cd0fee12ad99ba6d6f7d55f743cc4c6697955 broke all glibc-internal-iconv builds and I'm too lazy/stupid to fix it properly for uclibc I reverted this commit.

for unpatched uClibc you could just
TARGET_CPPFLAGS += -D_Exit=_exit

Thanks, and what's the patched uClibc alternative (and where's the patch)? It defines _Exit()?

Maybe that's better for OE.

Regards,

Signature · 1 line
Leon
#3 lore raw
Quoted 11 lines · Leon Woestenberg

Hello Bernhard,

Quoted 7 lines · Bernhard Reutner-Fischer
Quoted 5 lines · Koen Kooi

Hi,

Since 406cd0fee12ad99ba6d6f7d55f743cc4c6697955 broke all glibc-internal-iconv builds and I'm too lazy/stupid to fix it properly for uclibc I reverted this commit.

Quoted 5 lines
Quoted 3 lines

for unpatched uClibc you could just
TARGET_CPPFLAGS += -D_Exit=_exit

Thanks, and what's the patched uClibc alternative (and where's the patch)? It defines _Exit()?

I suggest to just #define it to _exit, yes.
(glibc has it as weak alias but i'd prefer to get away with a define), like:

_Exit(): define to _exit()

Signed-off-by Bernhard Reutner-Fischer <me>
---
 include/stdlib.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
include/stdlib.h +0 -0
index e462c1c..c993f8f 100644
@@ -545,12 +545,14 @@ extern void exit (int __status) __THROW

__attribute__ ((__noreturn__));
libc_hidden_proto(exit)
__END_NAMESPACE_STD

-#ifdef __USE_ISOC99
+#if 0 /* def __USE_ISOC99 */
__BEGIN_NAMESPACE_C99
/* Terminate the program with STATUS without calling any of the
functions registered with atexit' or on_exit'. */
extern void _Exit (int __status) __THROW __attribute__
((__noreturn__));
__END_NAMESPACE_C99
+#else
+# define _Exit _exit
#endif

Signature · 1 line
1.6.5.2
#4 lore raw

Hi Bernhard,

thanks for the patch, but _exit is not the problem. Problem is crappy iconv stuff. But I will fix it now the right way.

Bye Henning

#5 lore raw
In reply to Bernhard Reutner-Fischer
Quoted 15 lines · Bernhard Reutner-Fischer
Quoted 14 lines · Leon Woestenberg

Hello Bernhard,

Quoted 10 lines · Bernhard Reutner-Fischer
Quoted 5 lines · Koen Kooi

Hi,

Since 406cd0fee12ad99ba6d6f7d55f743cc4c6697955 broke all glibc-internal-iconv builds and I'm too lazy/stupid to fix it properly for uclibc I reverted this commit.

for unpatched uClibc you could just
TARGET_CPPFLAGS += -D_Exit=_exit

Quoted 8 lines
Quoted 2 lines

Thanks, and what's the patched uClibc alternative (and where's the patch)? It defines _Exit()?

I suggest to just #define it to _exit, yes.
(glibc has it as weak alias but i'd prefer to get away with a define), like:

_Exit(): define to _exit()

OTOH someone may want to override it locally, so to play safe let's follow suite:
http://git.uclibc.org/uClibc/commit/?h=0_9_30&id=e4adfdc4128c5909adeefecdaf870e30172922a9

#6 lore raw
In reply to Bernhard Reutner-Fischer
Quoted 3 lines · On Wednesday 18 November 2009 13:30:12 Bernhard Reutner-Fischer wrote:

I suggest to just #define it to _exit, yes.
(glibc has it as weak alias but i'd prefer to get away with a define), like:

Two things..

1.) The patch can not be applied as someone's mailer has linewrapped it 2.) Does the issue still apply?