This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Help with ld.so debug output? (repost to group also)
- From: john h <johnh dot nm at gmail dot com>
- To: Mike Frysinger <vapier at gentoo dot org>, libc-help at sourceware dot org
- Date: Wed, 13 May 2009 18:18:20 -0600
- Subject: Re: Help with ld.so debug output? (repost to group also)
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?
>
> Thanks,
> John
>
>From 2.3.3 ld.so that works.
/ # ./hello
libm.so.6 => /lib/libm.so.6 (0x4801e000)
libc.so.6 => /lib/libc.so.6 (0x480f2000)
/lib/ld.so.1 (0x48000000)
Version information:
./hello:
libm.so.6 (GLIBC_2.0) => /lib/libm.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/lib/libm.so.6:
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/lib/libc.so.6:
ld.so.1 (GLIBC_2.1) => /lib/ld.so.1
ld.so.1 (GLIBC_PRIVATE) => /lib/ld.so.1
ld.so.1 (GLIBC_2.0) => /lib/ld.so.1
/ #
>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)
Version information:
./hello:
libm.so.6 (GLIBC_2.0) => /lib/libm.so.6
libc.so.6 (GLIBC_2.0) => /lib/libm.so.6
/lib/libm.so.6:
libc.so.6 (GLIBC_2.1.3) => not found
libc.so.6 (GLIBC_2.0) => /lib/libm.so.6