|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Problems with the latest nptl uclibc branchHello,
Does any have a usable uclibc config (10/31/2009 snapshot nptl branch) and toolchain (10/31/2009 trunk snapshot ) that I can use as a baseline. I get everything to compile but the libpthread that is created is not usable ... applications complain about it not being compiled with fPIC. I checked with "make V=1" and everything looks correct. Out of desperation I started compiling all the applications that used pthreads statically and for the most part they work but shared libraries that use pthreads end up messed up even when including pthreads statically. The applications that call them also complain about them not having fPIC Thanks in advance, Sergio _______________________________________________ uClibc mailing list uClibc@... http://lists.busybox.net/mailman/listinfo/uclibc |
|
|
Re: Problems with the latest nptl uclibc branchSergio M. Ammirata, Ph.D. wrote:
> Hello, > > Does any have a usable uclibc config (10/31/2009 snapshot nptl branch) and > toolchain (10/31/2009 trunk snapshot ) that I can use as a baseline. > > I get everything to compile but the libpthread that is created is not usable > ... applications complain about it not being compiled with fPIC. I checked > with "make V=1" and everything looks correct. > > Out of desperation I started compiling all the applications that used > pthreads statically and for the most part they work but shared libraries > that use pthreads end up messed up even when including pthreads statically. > The applications that call them also complain about them not having fPIC > > Thanks in advance, > > Sergio Hi Sergio, for which arch are you compiling the nptl branch ? Could you please post exactly the error message you get ? I guess it's due to TEXTREL you may have into your shared libraries. Ciao, Carmelo > _______________________________________________ > uClibc mailing list > uClibc@... > http://lists.busybox.net/mailman/listinfo/uclibc > _______________________________________________ uClibc mailing list uClibc@... http://lists.busybox.net/mailman/listinfo/uclibc |
|
|
Re: Problems with the latest nptl uclibc branchHello Carmelo,
I am compiling for x86. Here is the error (ldd vlc): librt.so.0 => /lib/librt.so.0 (0xb7fe8000) Can't modify /lib/libpthread.so.0's text section. Use GCC option -fPIC for shared objects, please. checking sub-depends for '/lib/librt.so.0' checking sub-depends for '/lib/libpthread.so.0' checking sub-depends for '/lib/libdl.so.0' checking sub-depends for '/usr/lib/libz.so.1' checking sub-depends for '/lib/libfaac.so.0' checking sub-depends for '/lib/libm.so.0' checking sub-depends for '/lib/libc.so.0' librt.so.0 => /lib/librt.so.0 (0x00000000) libpthread.so.0 => /lib/libpthread.so.0 (0x00000000) libdl.so.0 => /lib/libdl.so.0 (0x00000000) libz.so.1 => /usr/lib/libz.so.1 (0x00000000) libfaac.so.0 => /lib/libfaac.so.0 (0x00000000) libm.so.0 => /lib/libm.so.0 (0x00000000) libc.so.0 => /lib/libc.so.0 (0x00000000) /lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x00000000) Thanks, Sergio On 11/6/09 1:14 AM, "Carmelo Amoroso" <carmelo73@...> wrote: > Sergio M. Ammirata, Ph.D. wrote: >> Hello, >> >> Does any have a usable uclibc config (10/31/2009 snapshot nptl branch) and >> toolchain (10/31/2009 trunk snapshot ) that I can use as a baseline. >> >> I get everything to compile but the libpthread that is created is not usable >> ... applications complain about it not being compiled with fPIC. I checked >> with "make V=1" and everything looks correct. >> >> Out of desperation I started compiling all the applications that used >> pthreads statically and for the most part they work but shared libraries >> that use pthreads end up messed up even when including pthreads statically. >> The applications that call them also complain about them not having fPIC >> >> Thanks in advance, >> >> Sergio > > Hi Sergio, > for which arch are you compiling the nptl branch ? > > Could you please post exactly the error message you get ? I guess it's due to > TEXTREL you may have into your shared libraries. > > Ciao, > Carmelo > >> _______________________________________________ >> uClibc mailing list >> uClibc@... >> http://lists.busybox.net/mailman/listinfo/uclibc >> _______________________________________________ uClibc mailing list uClibc@... http://lists.busybox.net/mailman/listinfo/uclibc |
|
|
Re: Problems with the latest nptl uclibc branchSergio M. Ammirata, Ph.D. wrote:
> Hello Carmelo, > Hi, > I am compiling for x86. > firstly, nptl branch does not support x86 > Here is the error (ldd vlc): > > librt.so.0 => /lib/librt.so.0 (0xb7fe8000) > Can't modify /lib/libpthread.so.0's text section. Use GCC option -fPIC for > shared objects, please. exactly, you have some text relocation in your libpthread, and likely you have configured uCLibc with FORCE_SHAREABLE_TEXT_SEGMENTS=y. You could try disabling this option (it should work), anyway the best solution should be to remove all TEXTREL To verify if this is actually what I said, please do readeld -D libpthread.so | grep TEXTREL There is a tool, called scanelf, that could help you to figure out where they are located. But, again, you should use the mater branch (not nptl) for x86, at least for now. > checking sub-depends for '/lib/librt.so.0' > checking sub-depends for '/lib/libpthread.so.0' > checking sub-depends for '/lib/libdl.so.0' > checking sub-depends for '/usr/lib/libz.so.1' > checking sub-depends for '/lib/libfaac.so.0' > checking sub-depends for '/lib/libm.so.0' > checking sub-depends for '/lib/libc.so.0' > librt.so.0 => /lib/librt.so.0 (0x00000000) > libpthread.so.0 => /lib/libpthread.so.0 (0x00000000) > libdl.so.0 => /lib/libdl.so.0 (0x00000000) > libz.so.1 => /usr/lib/libz.so.1 (0x00000000) > libfaac.so.0 => /lib/libfaac.so.0 (0x00000000) > libm.so.0 => /lib/libm.so.0 (0x00000000) > libc.so.0 => /lib/libc.so.0 (0x00000000) > /lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x00000000) > > Thanks, > > Sergio Cheers, Carmelo > > On 11/6/09 1:14 AM, "Carmelo Amoroso" <carmelo73@...> wrote: > >> Sergio M. Ammirata, Ph.D. wrote: >>> Hello, >>> >>> Does any have a usable uclibc config (10/31/2009 snapshot nptl branch) and >>> toolchain (10/31/2009 trunk snapshot ) that I can use as a baseline. >>> >>> I get everything to compile but the libpthread that is created is not usable >>> ... applications complain about it not being compiled with fPIC. I checked >>> with "make V=1" and everything looks correct. >>> >>> Out of desperation I started compiling all the applications that used >>> pthreads statically and for the most part they work but shared libraries >>> that use pthreads end up messed up even when including pthreads statically. >>> The applications that call them also complain about them not having fPIC >>> >>> Thanks in advance, >>> >>> Sergio >> Hi Sergio, >> for which arch are you compiling the nptl branch ? >> >> Could you please post exactly the error message you get ? I guess it's due to >> TEXTREL you may have into your shared libraries. >> >> Ciao, >> Carmelo >> >>> _______________________________________________ >>> uClibc mailing list >>> uClibc@... >>> http://lists.busybox.net/mailman/listinfo/uclibc >>> > > > _______________________________________________ uClibc mailing list uClibc@... http://lists.busybox.net/mailman/listinfo/uclibc |
| Free embeddable forum powered by Nabble | Forum Help |