So when I run certain programs in the iliad-dev scratchbox, I get mysterious (to me) errors like:
Code:
rpm: relocation error: /lib/libpthread.so.0: symbol __libc_stack_end, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference
/iliad/bin/ping: /lib/libc.so.6: version `GLIBC_2.3.4' not found (required by /iliad/bin/ping)
./conftest: relocation error: /lib/libpthread.so.0: symbol __libc_stack_end, version GLIBC_PRIVATE not define
d in file ld-linux.so.2 with link time reference
/usr/local/bin/glib-genmarshal: relocation error: /lib/libpthread.so.0: symbol __libc_stack_end, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference
/lib/libpthread.so.0: undefined reference to `__libc_fork@GLIBC_2.1.2'
/lib/libpthread.so.0: undefined reference to `__libc_stack_end@GLIBC_PRIVATE'
I'd greatly appreciate any explanation about what those errors are about. I'm guessing they have something to do with the different levels at work in scratchbox, which I haven't completely wrapped my mind around.
Update: After wasting away many hours, I finally figured out what was going wrong. There's something wrong with the pthread library in /lib/. There's a better one elsewhere, so I fixed it with:
Code:
export LD_LIBRARY_PATH=/scratchbox/compilers/arm-linux-iliad-softfloat/gcc-3.4.2-glibc-2.3.3/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/lib:$LD_LIBRARY_PATH