Re: uClibc-0.9.29 Compilation error for mips32

2008-09-11 Thread Khem Raj
On (09/09/08 20:05), Gurminder wrote: Hi, I tried compiling uClibc-0.9..29 for MIPS32 Big endian arch. Cross Compiler used - mips-linux-gcc 3.4.4 Host Distro - Fedora Core 4 Kernel Headers used = mips-linux-2.6.15 First Error I get is AS lib/crti.o

set fPIC option for librt

2008-09-11 Thread JACOB BENJAMIN-VGH684
Hello ppl, I am totally new to uClibc. I did search for my problem in the archives but could not really find a solution. My problem: I wrote a simple program : #include time.h #include stdio.h int main() { timer_t tid;

Re: set fPIC option for librt

2008-09-11 Thread Bernhard Reutner-Fischer
On Thu, Sep 11, 2008 at 07:32:09PM +0800, JACOB BENJAMIN-VGH684 wrote: Hello ppl, and ran the resultant a.out on a monta vista box I got an error saying something to the effect of Can't modify text section. Use GCC option -fPIC for shared objects, please. I looked into the config files and

Re: set fPIC option for librt

2008-09-11 Thread Carmelo AMOROSO
Bernhard Reutner-Fischer wrote: On Thu, Sep 11, 2008 at 07:32:09PM +0800, JACOB BENJAMIN-VGH684 wrote: Hello ppl, and ran the resultant a.out on a monta vista box I got an error saying something to the effect of Can't modify text section. Use GCC option -fPIC for shared objects, please. I

Re: set fPIC option for librt

2008-09-11 Thread Bernhard Reutner-Fischer
On Thu, Sep 11, 2008 at 02:13:07PM +0200, Carmelo AMOROSO wrote: Bernhard Reutner-Fischer wrote: On Thu, Sep 11, 2008 at 07:32:09PM +0800, JACOB BENJAMIN-VGH684 wrote: Now how and where do i make the config files to have fPIC set for the cross compiler?? I was under the impression that we

wait call returns when not expected

2008-09-11 Thread Christopher Taylor
I'm forking and demonizing a process with setsid and then calling execl and when I call wait, --sometimes-- wait returns saying that the child pid has exited and sometimes it does not. I can see the argument both ways, but I'm confused why it occurs both ways. Does anyone have any input on this?

Re: svn commit: trunk/uClibc: include libc/sysdeps/linux/common

2008-09-11 Thread Bernhard Reutner-Fischer
On Thu, Sep 11, 2008 at 08:48:01AM -0700, [EMAIL PROTECTED] wrote: Author: aldot Date: 2008-09-11 08:48:00 -0700 (Thu, 11 Sep 2008) New Revision: 23379 Log: - remove relocations for clock_getres Note that i think that this should work since

Re: reentrant functions

2008-09-11 Thread Bernhard Reutner-Fischer
On Thu, Sep 11, 2008 at 04:22:55PM +0200, Bernhard Reutner-Fischer wrote: On Tue, Sep 09, 2008 at 05:41:40PM +0200, Bernhard Reutner-Fischer wrote: On Tue, Sep 09, 2008 at 12:45:39PM +0200, Bernhard Reutner-Fischer wrote: On Sun, Jun 08, 2008 at 02:18:03PM +0200, Bernd Schmidt wrote: Bernhard

[PATCH] Xtensa strcoll problem with LOCALE support

2008-09-11 Thread Bob Wilson
The Xtensa-specific strcmp.S file is testing the __UCLIBC_HAS_LOCALE__ macro but it does not include features.h, so that macro is never defined. This causes problems with strcoll when locale support is enabled. Index: libc/string/xtensa/strcmp.S

[PATCH] Xtensa truncate64 args

2008-09-11 Thread Bob Wilson
The Xtensa port needs to define the __UCLIBC_TRUNCATE64_HAS_4_ARGS__ macro so that a dummy argument will be inserted before the long long length argument, which is expected to be in an even/odd register pair. Index: libc/sysdeps/linux/xtensa/bits/uClibc_arch_features.h

[PATCH] avoid clobbering Xtensa return address

2008-09-11 Thread Bob Wilson
Stack unwinding on Xtensa requires that the return address register always be valid. This patch fixes a part of ldso that had been using an Xtensa CALL0 instruction to get the current PC value, which temporarily clobbered the return address register. The revised code just loads the address of

Re: set fPIC option for librt

2008-09-11 Thread Khem Raj
On (11/09/08 19:32), JACOB BENJAMIN-VGH684 wrote: Hello ppl, I am totally new to uClibc. I did search for my problem in the archives but could not really find a solution. My problem: I wrote a simple program : #include time.h #include stdio.h int main()