Solved: glibc-2.2.5 undefined _dl_cpuclock_offset

Andreas Schwab schwab@suse.de
Mon May 13 02:04:00 GMT 2002


Ingo Krabbe <i.krabbe@dokom.net> writes:

|> Wow, that was a real hard one:
|> 
|> I thought that `gcc -L/glibc225/lib main.c -lpthread' would be enough to link
|> against /glibc225/lib/libpthread.so.0. But that isn't so, at least it isn't
|> with new binutils package (You can get all version Numbers from the attachment
|> I made to the first E-mail of this thread).
|> 
|> Gcc actually links to what is contained in /lib/ld.so.cache I think, though
|> when using /glibc225/lib/ld-linux.so.2 gcc should use
|> /glibc225/etc/ld.so.cache, if it should link against a cache at all ?!

Dependent libraries (from DT_NEEDED) that are not linked in explicitly are
searched by the linker in the same way as during runtime.  This means that
-L options are ignored, and DT_RPATH, LD_LIBRARY_PATH, --rpath-link and
/etc/ld.so.cache are used instead (probably in this order, I'm not sure).

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Libc-alpha mailing list