On Thu, 2013-02-14 at 03:40 -0800, Linda Walsh wrote:
I don't see why you don't hard code the load time library version number you want into the link phase. Just stop linking with libc.so.6 or libperl.so
Why can't you do this: -rwxr-xr-x 1 1960896 Jul 15 2012 /lib64/libc-2.15.so* -rwxr-xr-x 1 1966974 Oct 11 23:35 /lib64/libc-2.16.so* -rwxr-xr-x 1 10160535 Jan 16 17:24 /lib64/libc-2.17.so* lrwxrwxrwx 1 12 Jan 30 02:15 /lib64/libc.so.6 -> libc-2.17.so*
It is not enough to make the link. The link just makes compiling easier. The magic happens whrn /lib64/libc-2.17.so /lib64/libc-2.16.so are made.
From the ld man page:
-h name -soname=name When creating an ELF shared object, set the internal DT_SONAME field to the specified name. When an exe- cutable is linked with a shared object which has a DT_SONAME field, then when the executable is run the dynamic linker will attempt to load the shared object specified by the DT_SONAME field rather than the using the file name given to the linker. Then, the libXX folk must ensure that the 2.15 version of their library is ABI compatible. When that changes, they should bump the version. Both libraries can be present on the system, providing different ABI versions. Any binary simply uses the one it was built with, independent of what any other bins may be up to. But this only works if the -h option was used when the library was built - and that the version numbers are truly reflecting ABI compatibility. Is Perl doing this properly? I do not mean that they have libs with different version numbers. But are those numbers properly tracking ABI compatibility? It sounds like openSUSE feel this is not the case. Yours sincerely, Roger Oberholtzer Ramböll RST / Systems Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org