Pthread Stubs in C Library
libc.2 => /usr/lib/pa20_64/libc.2
libpthread.1 => /lib/pa20_64/libpthread.1
libdl.1 => /usr/lib/pa20_64/libdl.1
Example 2 (archived libc):
If the link line of your shared library contains -lc to explicitly link in libc, remove –lc. Otherwise, shared libraries
may be referencing libc.2 while the a.out may reference some older (archived) libc version. Thus the application will
actually be using two different versions of libc and possibly mixing code. This may cause compatibility problems.
Basically, an application or library should never directly link against libc. All programs need to be linked against libc
(which the compiler does automatically), so a shared library will always have the interfaces it needs to execute
properly without needing to specify -lc on the link line.