Re: How can I know if libraries are old?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/21/10 05:40 PM, Ian Lance Taylor wrote:
"Dr. David Kirkby"<david.kirkby@xxxxxxxxxx>  writes:

drkirkby@hawk:~$ elfdump -v /usr/local/gcc-4.5.0/lib/libstdc++.so.6

Version Needed Section:  .SUNW_version
      index  file                        version
        [2]  libm.so.2                   SUNW_1.2
        [3]  libgcc_s.so.1               GCC_3.0              [ INFO ]
        [4]                              GCC_3.3              [ INFO ]
        [5]                              GCC_4.2.0
drkirkby@hawk:~$

So why is this showing 4.2.0 when gcc 4.5.0 was used to build this?
Perhaps that's the latest API ???

Please reply to the mailing list, not just to me.  Thanks.

I replied to you, since you replied only to me - not the list! I've set to "reply-to" field as the list now. IMHO, that should be the default, but I think that is like religion - you will never get agreement over it.

That is telling you that it does not need anything from libgcc_s.so.1
that is more recent than that is available in gcc_4.2.0.  That is
normal.

But this is uninteresting.  What I was hoping it would show you is the
versions *defined* by libstdc++.so.6, not the versions that it uses.
I suppose it's possible that libstdc++.so.6 doesn't define any versions
on Solaris; what happens when you run elfdump -v on libgcc_s.so.1?  Do
you see version definitions, or only version uses?

Ian


drkirkby@hawk:~$ elfdump -v /usr/local/gcc-4.5.0/lib/libgcc_s.so.1

Version Definition Section:  .SUNW_version
     index  version                     dependency
       [1]  libgcc_s.so.1                                    [ BASE ]
       [2]  GCC_3.0
       [3]  GCC_3.3                     GCC_3.0
       [4]  GCC_3.3.1                   GCC_3.3
       [5]  GCC_3.4                     GCC_3.3.1
       [6]  GCC_3.4.2                   GCC_3.4
       [7]  GCC_4.0.0                   GCC_3.4.2
       [8]  GCC_4.2.0                   GCC_4.0.0
       [9]  GCC_4.3.0                   GCC_4.2.0
      [10]  GCC_4.5.0                   GCC_4.3.0

Version Needed Section:  .SUNW_version
     index  file                        version
      [11]  libc.so.1                   SUNW_1.1
      [12]                              SUNW_0.9             [ INFO ]
      [13]                              SYSVABI_1.3          [ INFO ]




And here's what I thought was a library from gcc 3 4.3, though that seems highly unlikely due to the references of gcc versions up to 4.3.




drkirkby@hawk:~$ elfdump -v /usr/lib/libgcc_s.so.1

Version Definition Section:  .SUNW_version
     index  version                     dependency
       [1]  libgcc_s.so.1                                    [ BASE ]
       [2]  GCC_3.0
       [3]  GCC_3.3                     GCC_3.0
       [4]  GCC_3.3.1                   GCC_3.3
       [5]  GCC_3.4                     GCC_3.3.1
       [6]  GCC_3.4.2                   GCC_3.4
       [7]  GCC_4.0.0                   GCC_3.4.2
       [8]  GCC_4.2.0                   GCC_4.0.0
       [9]  GCC_4.3.0                   GCC_4.2.0

Version Needed Section:  .SUNW_version
     index  file                        version
      [10]  libc.so.1                   SUNW_1.1
      [11]                              SUNW_0.9             [ INFO ]
      [12]                              SYSVABI_1.3          [ INFO ]
drkirkby@hawk:~$



Dave


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux