Comment 10 for bug 37598

Revision history for this message
Adam Conrad (adconrad) wrote :

Ahh, this is a problem with the person who decided to copy/rename libGL.so.1.2 not having a clue how ldconfig works. Witness:

(base)root@cthulhu:/usr/lib # ls -l libGL.so.1*
lrwxrwxrwx 1 root root 12 2006-03-24 08:12 libGL.so.1 -> libGL.so.1.2
-rw-r--r-- 1 root root 406824 2006-03-24 03:04 libGL.so.1.2
(base)root@cthulhu:/usr/lib # cp -a libGL.so.1.2 libGL.so.1.2.old
(base)root@cthulhu:/usr/lib # ls -l libGL.so.1*
lrwxrwxrwx 1 root root 12 2006-03-24 08:12 libGL.so.1 -> libGL.so.1.2
-rw-r--r-- 1 root root 406824 2006-03-24 03:04 libGL.so.1.2
-rw-r--r-- 1 root root 406824 2006-03-24 03:04 libGL.so.1.2.old
(base)root@cthulhu:/usr/lib # ldconfig
(base)root@cthulhu:/usr/lib # ls -l libGL.so.1*
lrwxrwxrwx 1 root root 16 2006-04-02 20:57 libGL.so.1 -> libGL.so.1.2.old
-rw-r--r-- 1 root root 406824 2006-03-24 03:04 libGL.so.1.2
-rw-r--r-- 1 root root 406824 2006-03-24 03:04 libGL.so.1.2.old

Since "libGL.so.1.2.old" is a "newer" version that "libGL.so.1.2" (based on the versioned filename), ldconfig is updating the symlink to point to the wrong library. Libraries should generally never be copied or backed up into /usr/lib for this very reason, but rather moved out of the way to someplace outside the library search path.