why are my apps using the wrong thread library?
Almost all of my gnome apps are dying. I look at the stacktraces, and for all the ones I've checked, they start by referencing the wrong thread library:
Code:
Backtrace was generated from '/usr/glibc2/opt/bin/gnome-background-properties' |
I'm in the process of recompiling everything with the env variable LD_LIBRARY_PATH set to point to the new libraries. I thought this wasn't needed, becuase the gcc I'm using automatically links to new glibc and new libraries. Perhaps this wasn't enough to force it to use new libs. I'll post more once I find out if it works or not.
|
well i mean the libthread_db.so.1 is just the debugging thing
for after it already goes bad i think so yea it tries to initialize the one in /lib/tls first cause thats just the way the beguhher works and the thing is it appears to work fine cause it hunts through the problem. /lib/tls is a distribution added hack to glibc. if you are using new glibc and gnome is compiled against the old one OOPS LD_LIBRARY_PATH works only for the loader not the linker i think in a twist of confusion for linking you should use LD_RUN_PATH as in RUN_LD or "run the native linker" not run an executable or library. man ld says LD_RUN_PATH is used just like -rpath-link. so it specifies directories to look first for secondary libs used by the libs mentioned in -l flags. glibc would be one of those for shure proper way might be to just use -L for linking ld searches -L option first and in order before defaults. plus -rpath-link option or LD_RUN_PATH. and for runtime make sure you have LD_LIBRARY_PATH set |
All times are GMT -5. The time now is 08:36 AM. |