Linker question (proper library names)

walt wa1ter at myrealbox.com
Tue Jul 27 20:46:52 PDT 2004


I managed to compile the xorg-libraries on DFly with a little
fudging here and there.  (No, I haven't installed them yet.)
I ran across one linker error which stumped me:  ld stopped
with "can't find XThrStub" even though it was exactly where
it was supposed to be.
The file the loader needed was actually a symlink, like this:
libXThrStub.so.6.1 -> ../../lib/XThrStub/libXThrStub.so.6.1
The symlink was correct, but ld insisted the file couldn't
be found.
I eventually changed the name of the symlink to just plain
'libXThrStub.so' which made ld very happy and the compile
finished without further error.
What puzzles me is that there were dozens of similar symlinks
in that same directory and AFAIK ld must have used all
of them but didn't complain about any of the others.
My question is:  why did ld pick that one symlink to fuss
about?  Why not all the others as well?
Thanks for any clues.






More information about the Bugs mailing list