/etc/ld.so.conf and /etc/ld.so.conf.d/* mismatch

Bug #70315 reported by Olly Betts on 2006-11-05
14
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)
Low
Unassigned

Bug Description

Binary package hint: libc6

I'm running Ubuntu edgy on x86_64, upgraded from dapper (and before that from breezy).

I've noticed that /etc/ld.so.conf contains:

  /lib32
  /usr/lib32
  /usr/X11R6/lib32

  include /etc/ld.so.conf.d/*.conf

But the only file in /etc/ld.so.conf.d is x86_64-linux-gnu (owned by libc6 according to dpkg -S) which doesn't have a ".conf" extension. This file contains:

  # Multiarch support
  /lib/x86_64-linux-gnu
  /usr/lib/x86_64-linux-gnu

Running "ldconfig -N -X -v|grep '^/.*:$'" reports (the first 2 lines are stderr):

ldconfig: Path `/lib32' given more than once
ldconfig: Path `/usr/lib32' given more than once
/lib32:
/usr/lib32:
/usr/X11R6/lib32:
/lib:
/usr/lib:

So the "x86_64-linux-gnu" paths aren't being picked up.

This doesn't cause any problems for me since on my system both /lib/x86_64-linux-gnu and /usr/lib/x86_64-linux-gnu are empty directories, but it seems unlikely this mismatch of filenames is intentional...

Matthias Klose (doko) wrote :

I cannot see, how the lib32 directories are inserted in /etc/ld.so.conf, however I only have a system upgraded from dapper, not from breezy.

Changed in glibc:
importance: Undecided → Low
status: Unconfirmed → Needs Info
Olly Betts (ojwb) wrote :

I wasn't really worrying about the lib32 directories (though now I think about it, that's rather odd too), but rather suggesting that either the include line in /etc/ld.so.conf should read:

include /etc/ld.so.conf.d/*

Or probably better, that /etc/ld.so.conf.d/x86_64-linux-gnu should instead be named /etc/ld.so.conf.d/x86_64-linux-gnu.conf so that the existing include line actually reads it. That's more robust against editors which leave backup files behind.

Does your system have the same "include" line as mine in /etc/ld.so.conf?

Matthias Klose (doko) on 2007-03-21
Changed in glibc:
status: Needs Info → Confirmed
Sylvain Pasche (sylvain-pasche) wrote :

I saw a similar issue after a from scratch feisty i386 installation:

/etc/ld.so.conf contains:
include /etc/ld.so.conf.d/*.conf

And inside /etc/ld.so.conf.d, I can see:

i486-linux-gnu

So I guess this file won't be included

Torsten Knodt (torsknod) wrote :

I was faced with the problem some seconds ago now. I was very suprised that the libraries mentioned in /etc/ld.so.conf.d/ where not found and then saw the file name problem.
Is there a decision about the names of the files?

Olly Betts (ojwb) wrote :

I've just tried bootstrapping chroots for gutsy i386 and amd64 (using debootstrap --variant=buildd). In both cases, this mismatch still occurs.

Launchpad Janitor (janitor) wrote :
Download full text (9.2 KiB)

This bug was fixed in the package glibc - 2.7-9ubuntu1

---------------
glibc (2.7-9ubuntu1) hardy; urgency=low

  * Merge with Debian (r2869); remaining changes:
    - Packaging:
      + External tzdata
      + Use external locale information
      + Addition of Niagara and Niagara2 optimised libraries
      + GFDL Documentation added back in, build glibc-doc from this source.
      + Transition from /usr/include/ppc64-linux-gnu to powerpc64-linux-gnu
      + Use dpkg triggers for ldconfig
      + Do not die if extra libc libraries or symlinks found
      + Do not do a test run of nscd when starting
      + Only apply patches we actually use in Ubuntu
      + Use /lib and /usr/lib for amd64
      + amd64 biarch is i686, not i486.
      + Non-optimised i386 glibc is Xen-friendly.
      + Support sparcv9v, v9v2, 64b, 64v, 64v2
      + Add support for lpia.
    - Patches:
      + sparc/submitted-v9v2
      + hppa/hppalll
      + Applied any/local-ipv6-lookup.
      + Not applied any/local-sysctl.
  * debian/sysdeps/*.mk: Still build main flavours with -O3 (using gcc-4.2).
  * Use <triplet>.conf for files in /etc/ld.so.conf.d. LP: #70315

  * patches/any/local-ipv6-lookup.diff: Update (Tollef van Heen).

  [changes from Debian svn after -9]
  * Update Chinese debconf translation, by LI Daobing.
  * Update Dutch debconf translation, by Bart Cornelis. Closes: #468300.
  * Update Polish debcon translation, by Emilian Nowak.
  * Update Vietnamese debconf translation, by Clytie Siddall. Closes: #468453.
  * Update Basque debconf translation, by Piarres Beobide. Closes: #468463.
  * Update Romanian debconf translation, by Stan Ioan-Eugen. Closes: #468671.
  * Update Czech debconf translation, by Miroslav Kure. Closes: #468910.
  * Update Russian debconf translation, by Sergey Alyoshin. Closes: #469037.
  * Update Korean debconf translation, by Sunjae Park. Closes: #469097.
  * Update French debconf translation, by Christian Perrier. Closes: #469249.
  * patches/localedata/locale-es_CR.diff: chane AM/PM format to "a.m./p.m."
    from "A.M/P.M.".
  * Remove uk_UA from patches/localedata/first_weekday.diff: merged upstream
    in a different way. Closes: bug#469439.
  * patches/any/cvs-rfc3484.diff: update from CVS to allow the definition of
    IPv4 scopes in /etc/gai.conf.
  * patches/all/cvs-gai_conf.diff: update gai.conf from CVS to also mention
    Teredo tunnels and scopev4 defaults.
  * sysdeps/mips.mk, sysdeps/mipsel.mk: define TIMEOUTFACTOR.
  * patches/any/cvs-strtod.diff: new patch from CVS to fix strtod(). Closes:
    #465769.
  * Update Italian debconf translation, by Lica Monducci. Closes: #469985.
  * control.in/main, sysdeps/*.mk, rules: build with gcc-4.3 by default,
    except on alpha, arm, armel, hppa, s390 and hurd-i386.
  * rules, rules.d/build.mk: fix parallel build.
  * control.in/main: build-depends on gcc-4.3 (>= 4.3.0-2) to make sure a cld
    instruction is emitted in the prologue of functions using stringops.
    Closes: #469568.
  * debian/rules.d/build.mk: disable testsuite on ARM machines running a
    2.6.21 to 2.6.24 kernel.

glibc (2.7-9) unstable; urgency=low

  * patches/any/local-ldso-disable-hwcap.diff: r...

Read more...

Changed in glibc:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers