/usr/lib/i686/cmov searched before /usr/local/lib

Bug #384764 reported by Reuben Thomas
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
eglibc (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I have built ffmpeg from source on my system in order to get facilities not available in the Ubuntu versions (including "unstripped"). I use the default configuration, which installs libraries under /usr/local/lib.

However, when /usr/local/bin/ffmpeg is run, the various libraries such as libavcodec and libavutil are still linked from /usr/lib/i686/cmov.

Unfortunately, the way that these paths are searched is not documented as far as I can see, but it is surely wrong that something under /usr/lib is searched before /usr/local/lib, as on my system I have the default library search order, i.e.:

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

$ cat /etc/ld.so.conf.d/*.conf
# Multiarch support
/lib/i486-linux-gnu
/usr/lib/i486-linux-gnu
/usr/lib/alsa-lib
# libc default configuration
/usr/local/lib

Note that /usr/lib is not mentioned in any of the conf files, so according to ld.so(8) it should only be searched after the directories that are mentioned. (On my system at least, /lib/i486-linux-gnu and /usr/lib/i486-linux-gnu are empty.)

ProblemType: Bug
Architecture: i386
Dependencies:
 libgcc1 1:4.3.3-5ubuntu4
 gcc-4.3-base 4.3.3-5ubuntu4
 findutils 4.4.0-2ubuntu4
 libc6 2.9-4ubuntu6
DistroRelease: Ubuntu 9.04
Package: libc6 2.9-4ubuntu6
ProcEnviron:
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: glibc
Uname: Linux 2.6.28-11-generic i686

Revision history for this message
Reuben Thomas (rrt) wrote :

BTW, touching /etc/ld.so.nohwcap makes the libraries under /usr/local/lib be found first, confirming that it's the hwcap stuff that's the problem here, not the basic search order.

Of course, this is not an acceptable workaround; what is is to copy the libraries in /usr/local/lib to /usr/local/lib/i686/cmov.

Revision history for this message
Philipp Kaluza (pixelpapst) wrote :

Hi Reuben, assuming you're still interested to compile ffmpeg or libav from source, could you test if this is still a problem with natty ?

Changed in glibc (Ubuntu):
status: New → Incomplete
Revision history for this message
Philipp Kaluza (pixelpapst) wrote :

Oops, should retarget to eglibc now.

affects: glibc (Ubuntu) → eglibc (Ubuntu)
Revision history for this message
Reuben Thomas (rrt) wrote :

Sorry, I don't have a natty system. I can confirm that the problem still exists in Maverick.

Revision history for this message
Reuben Thomas (rrt) wrote :

I just found a page on installing Natty in virtualbox, so I'm doing that.

Revision history for this message
Reuben Thomas (rrt) wrote :

I can confirm the bug still exists in Natty (I installed from the daily desktop ISO for i386).

Revision history for this message
Reuben Thomas (rrt) wrote :

Any update on this? I'm once again building ffmpeg from source and finding myself in exactly the same situation...

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for eglibc (Ubuntu) because there has been no activity for 60 days.]

Changed in eglibc (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Reuben Thomas (rrt) wrote :

Surely this bug shouldn't be expired: it's still present and confirmed?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.