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

Bug#263494: /usr/bin/ldd: The 32/64bit ldd 'fails' to work with a 32bit kernel



Package: libc6
Version: 2.3.2.ds1-11
Severity: normal
File: /usr/bin/ldd

Hi,

while working on adding rudimentary amd64 support to i386 I noticed
that the 32/64 bit ldd script gives out an extra error message when
its run under a 32bit kernel on e.g. a shell script.

The 32/64 bit ldd script goes through a list of possible ld.so till it
finds the right one (which it can't in this example):
----------------------------------------------------------------------
    RTLD=
    for rtld in ${RTLDLIST}; do
      if test -x $rtld; then
        verify_out=`${rtld} --verify "$file"`
        ret=$?
        case $ret in
        [02]) RTLD=${rtld}; break;;
        esac
      fi
    done
----------------------------------------------------------------------

But since we only have a 32bit kernel the '${rtld} --verify "$file"'
will fail with an error message on the 64bit ld.so. I believe that
error message should be oppressed (into verify_out) with a 2>&1.

It would be nice if you could fix this for the t-p-u upload. I only
noticed this on i386/amd64 but it looks like s390/s390x, ppc/ppc64,
mips/mips64 and sparc/sparc64 would have the same inconvenience.

MfG
	Goswin

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.5-amd64
Locale: LANG=C, LC_CTYPE=de_DE

Versions of packages libc6 depends on:
ii  libdb1-compat                 2.1.3-7    The Berkeley database routines [gl

-- no debconf information



Reply to: