This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help with ld.so debug output? (repost to group also)


On Wed, May 13, 2009 at 6:23 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> On Wednesday 13 May 2009 20:18:20 john h wrote:
>> On Wed, May 13, 2009 at 6:13 PM, john h <johnh.nm@gmail.com> wrote:
>> > On Wed, May 13, 2009 at 5:48 PM, Mike Frysinger <vapier@gentoo.org> wrote:
>> >> On Wednesday 13 May 2009 19:32:41 john h wrote:
>> >>> / # ./hello
>> >>> ./hello: /lib/libm.so.6: version `GLIBC_2.1.3' not found (required by
>> >>> /lib/libm. so.6)
>> >>
>> >> it means your binary was compiled against a newer version of glibc than
>> >> the version found at runtime
>> >> -mike
>> >
>> > It seems that our ld.so is not finding all the versions. We moved from
>> > 2.3.3 of glibc to 2.3.6 and the old ld.so seems to work fine (even
>> > with 2.3.6 so files), but the new ld.so gives this.
>> >
>> > We have a port of glibc to our custom processor.
>> >
>> > Is there somewhere that we need to update something so that the
>> > versioning is right?
>>
>> Or is ld.so just broken and not built right?
>
> i highly doubt it's related to the ld.so at all

But I can run the old ld.so using the new libm.so and it finds it fine?

I appreciate the help, if there's something I should be reading to
find this out please let me know.

>
>> From 2.3.6 ld.so which is broken.
>>
>> ./hello: /lib/libm.so.6: version `GLIBC_2.1.3' not found (required by
>> /lib/libm. so.6)
>> ? ? ? ? libm.so.6 => /lib/libm.so.6 (0x4801c000)
>
> sounds like your glibc 2.3.6 build is broken then. ?libm.so.6 should have
> GLIBC_2.1.3 version info. ?use `readelf -V` on it to make sure.
> -mike
>

Looks like the new 2.3.6 libm.so does have 2.1.3 in it based on readelf output.

Version needs section '.gnu.version_r' contains 1 entries:
 Addr: 0x00000000000030b8  Offset: 0x0030b8  Link to section: 4 (.dynstr)
  000000: Version: 1  File: libc.so.6  Cnt: 2
  0x0010:   Name: GLIBC_2.1.3  Flags: none  Version: 6
  0x0020:   Name: GLIBC_2.0  Flags: none  Version: 5


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]