First, thanks to both Mike and Marco for the answers!
As I understood it, the USB dev environment from Technologic contained
a pre-built, installed, and configured crosstool file set that I could
mount directly on my TS-7250 to build and test. In the past, when I
needed a library (like when I needed ncurses support) I just copied
the library files from the USB to the TS-7250's internal memory. That
didn't quite work with libpthread (although I did copy the version you
both referenced, and I did create the link). Perhaps that is because
I didn't run the 'strip' command, or perhaps I am missing something
else. Unfortunately, I lost access to the hardware for a while "while
I research this" (paraphrasing my boss), so it is difficult to check
things.
FWIW, we have the ts11 kernel and I'll try to find a better match for
libpthread than the one of the USB (but all the other libraries from
the USB worked, so why not this one?).
Thanks again.
--- In "Mike Charnoky" <> wrote:
>
> --- In "Anouk Ahamitet" <snowcone27@> wrote:
> >
> > I've got a multi-threaded application that needs to run on the
> > TS-7250. Unfortunately, libpthread wasn't installed, and when I
> > copied it (from Technologic's USB development environment) my app now
> > gets an error about undefined symbols in GLIBC_2.1. I've searched
> > this forum and found references that lead me to believe others have
> > resolves this issue, but I've been unable to locate anything about
> > /how/ the issue was resolved.
> >
> > Hopefully, someone here can enlighten me and save me the onerous task
> > of redesigning and rewriting the app as single threaded... Please?
>
> I needed the pthread lib for a java runtime. Here's what I did to get
> it working. First, on my desktop machine (where the crosstool was
> installed), I stripped unneeded symbols from the lib:
>
> cp
>
/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/arm-linux/lib/libpthread-0.10.so
> /tmp
>
/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/bin/arm-linux-strip
> --strip-unneeded -vv /tmp/libpthread-0.10.so
>
> Then, I copied the lib to /lib on the board, then created a symbolic
link:
>
> ln -fs /lib/libpthread-0.10.so /lib/libpthread.so.0
>
>
> Mike
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|