Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Bug#433874: mklibs: strips older versions of symbols that can still be needed

From: Frans Pop <elendil(at)planet.nl>
Date: Thu Jul 19 2007 - 19:58:14 EDT


Package: mklibs
Version: 0.1.24
tags: d-i

Test runs using current daily builds for sparc and alpha are showing the following error:

   udevd: relocation error: udevd: symbol snprintf, version GLIBC_2.0 not

          defined in file libc.so.6 with link time reference

Turns out that on some arches, libc contains two versions of snprintf:
$ readelf -a /lib/libc.so.6 | grep " sprintf@"

  1. 0011cf60 48 FUNC GLOBAL DEFAULT 10 sprintf@GLIBC_2.0
  2. 00053df8 48 FUNC GLOBAL DEFAULT 10 sprintf@@GLIBC_2.4

And udev is still using the old one:
$ readelf -a /sbin/udevd | grep " sprintf@"

  1. 0002e600 48 FUNC GLOBAL DEFAULT UND sprintf@GLIBC_2.0 (2)

However, after library stripping, only the new version is included:
$ readelf -a tmp/sparc64_netboot-2.6/tree/lib/libc.so.6 | grep " sprintf@"

   933: 0003627c 48 FUNC GLOBAL DEFAULT 10 sprintf@@GLIBC_2.4

Do you need help?X

It turns out that this can be resolved by including the version when calling gcc, i.e. using '-usprintf@GLIBC_2.0 -usprintf@@GLIBC_2.4'.

After manually stripping libc using that as parameters, I got:
$ readelf -a libc.so.6-stripped | grep " sprintf@"

   724: 0000d614 48 FUNC GLOBAL DEFAULT 10 sprintf@GLIBC_2.0    725: 00019d94 48 FUNC GLOBAL DEFAULT 10 sprintf@@GLIBC_2.4

Note that binNMUs for udev have been scheduled to resolve this issue for affected architectures, but maybe a structural solution for this issue should be implemented in mklibs.

-- 
To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  • application/pgp-signature attachment: stored
Received on Thu Jul 19 20:02:24 2007

This archive was generated by hypermail 2.1.8 : Thu Aug 09 2007 - 18:02:23 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library