Repairing truncated file

Michael Schwendt mschwendt at gmail.com
Tue Jun 4 16:40:40 UTC 2013


On Tue, 04 Jun 2013 10:58:59 -0400, Frank McCormick wrote:

> > Do you run ldconfig as root?
>     Yes
> 
> > What files /etc/ld.so.cache* do you have?
> 
> [frank at franksfedora19 ~]$ ls /etc/ld.so.cache*
> /etc/ld.so.cache
> [frank at franksfedora19 ~]$
> 
> > What does "ldconfig -v" show about that library?
>     This comes first
> ldconfig: Path `/usr/lib' given more than once
> ldconfig: file /lib/libQtOpenGL.so.4.8.4;51a94e8f is truncated
> 
> then the list of the libraries it knows about.

That means the file does exist. How have you searched for the file?
Is /lib a link to /usr/lib?

Remove /etc/ld.so.cache* and the file, then run ldconfig again. As
root. Be careful that you really let it recreate the cache file.

ldconfig doesn't make up any file names. It processes what it finds.
Btw, it understands option -n to process a specific directory only,
(ldconfig -n /usr/lib -v).

> > It's _good_ that nothing is reported, because -Vf means "verify the
> > package this file belongs into".
> >
> > The query to show a package a file belongs into is this:
> >   rpm -qf /lib/libQtOpenGL.so.4.8.4
> 
>     [frank at franksfedora19 ~]$ rpm -qf /lib/libQtOpenGL.so.4.8.4
> qt-x11-4.8.4-19.fc19.i686

Expected. That's the lib, which is tracked by the RPM package. The
temporary file will never belong into any package (in case you try
to run a query for its path).

-- 
Fedora release 19 (Schrödinger’s Cat) - Linux 3.9.4-300.fc19.x86_64
loadavg: 0.01 0.03 0.05


More information about the test mailing list