← Back to team overview

desktop-packages team mailing list archive

[Bug 1462515] [NEW] fglrx ldconfig priority should be above mesa's

 

Public bug reported:

I'm using Ubuntu 14.10 on x64 with the latest updates.

The Factor language dynamically loads ``libGL.so`` for its graphical
environment. On machines with a Radeon card and the ``fglrx-updates``
package, the preferred ``libGL.so`` path is ``/usr/lib/fglrx/libGL.so``.

However, if ``libgl1-mesa-dev`` is installed, there's another
``libGL.so`` in ``/usr/lib/x86_64-linux-gnu/libGL.so``.

Now, I would like to remove `libgl1-mesa-dev`, except that it is
required for `libgtkglext1-dev` which contains the function
`gtk_gl_init()`, which is required for the graphical environment for
Factor.


The crux of the issue is that ``/usr/lib/x86_64-linux-gnu`` has higher priority than ``/usr/lib/fglrx``, so programs that load ``libGL.so`` find the mesa version first:

```
erg@erglinux:~$ ldconfig -v | grep "^/"
/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: /lib/x86_64-linux-gnu/ld-2.19.so is the dynamic linker, ignoring

/usr/lib/x86_64-linux-gnu/libfakeroot:
/usr/local/lib:
/lib/x86_64-linux-gnu:
/usr/lib/x86_64-linux-gnu:
/sbin/ldconfig.real: /lib32/ld-2.19.so is the dynamic linker, ignoring

/usr/lib/x86_64-linux-gnu/mesa-egl:
/usr/lib/fglrx:
/usr/lib32/fglrx:
/usr/lib/x86_64-linux-gnu/mir/client8driver/mesa:
/lib32:
/usr/lib32:
/lib:
/usr/lib:
```


Would there be anything wrong with moving the ``/usr/lib/fglrx`` entries above ``/lib/x86_64-linux-gnu:``?

This appears to be an issue with nvidia's binary drivers as well, since
``/usr/lib/nvidia`` gets searched after ``/usr/x86_64-linux-gnu``.

Finally, if ``libgl1-mesa-dev`` wasn't required for
``libgtkglext1-dev``, that would also solve my problem because I
wouldn't have the mesa drivers installed at all.

Thanks,
Doug

** Affects: fglrx-installer (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to fglrx-installer in Ubuntu.
https://bugs.launchpad.net/bugs/1462515

Title:
  fglrx ldconfig priority should be above mesa's

Status in fglrx-installer package in Ubuntu:
  New

Bug description:
  I'm using Ubuntu 14.10 on x64 with the latest updates.

  The Factor language dynamically loads ``libGL.so`` for its graphical
  environment. On machines with a Radeon card and the ``fglrx-updates``
  package, the preferred ``libGL.so`` path is
  ``/usr/lib/fglrx/libGL.so``.

  However, if ``libgl1-mesa-dev`` is installed, there's another
  ``libGL.so`` in ``/usr/lib/x86_64-linux-gnu/libGL.so``.

  Now, I would like to remove `libgl1-mesa-dev`, except that it is
  required for `libgtkglext1-dev` which contains the function
  `gtk_gl_init()`, which is required for the graphical environment for
  Factor.

  
  The crux of the issue is that ``/usr/lib/x86_64-linux-gnu`` has higher priority than ``/usr/lib/fglrx``, so programs that load ``libGL.so`` find the mesa version first:

  ```
  erg@erglinux:~$ ldconfig -v | grep "^/"
  /sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
  /sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
  /sbin/ldconfig.real: /lib/x86_64-linux-gnu/ld-2.19.so is the dynamic linker, ignoring

  /usr/lib/x86_64-linux-gnu/libfakeroot:
  /usr/local/lib:
  /lib/x86_64-linux-gnu:
  /usr/lib/x86_64-linux-gnu:
  /sbin/ldconfig.real: /lib32/ld-2.19.so is the dynamic linker, ignoring

  /usr/lib/x86_64-linux-gnu/mesa-egl:
  /usr/lib/fglrx:
  /usr/lib32/fglrx:
  /usr/lib/x86_64-linux-gnu/mir/client8driver/mesa:
  /lib32:
  /usr/lib32:
  /lib:
  /usr/lib:
  ```

  
  Would there be anything wrong with moving the ``/usr/lib/fglrx`` entries above ``/lib/x86_64-linux-gnu:``?

  This appears to be an issue with nvidia's binary drivers as well,
  since ``/usr/lib/nvidia`` gets searched after ``/usr/x86_64-linux-
  gnu``.

  Finally, if ``libgl1-mesa-dev`` wasn't required for
  ``libgtkglext1-dev``, that would also solve my problem because I
  wouldn't have the mesa drivers installed at all.

  Thanks,
  Doug

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/1462515/+subscriptions


Follow ups

References