libgl1-mesa-dev links libGL.so to mesa/libGL.so which conflicts with nvidia's libGL.

Bug #943162 reported by Lorenz Mösenlechner
60
This bug affects 12 people
Affects Status Importance Assigned to Milestone
mesa (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

It seems like libgl1-mesa-dev creates the symbolic link /usr/lib/x86_64-linux-gnu/libGL.so, pointing to mesa/libGL.so. This conflicts with NVidia's libGL.so and ignores the alternative settings. For instance, a call to dlopen will load the mesa library instead of the nvidia library. This is in particular a problem when using OpenGL in dynamic languages such as Python or Common Lisp since they foreign function interfaces use something like dlopen.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: libgl1-mesa-dev 7.11-0ubuntu3
ProcVersionSignature: Ubuntu 3.0.0-16.28-generic 3.0.17
Uname: Linux 3.0.0-16-generic x86_64
NonfreeKernelModules: nvidia
.proc.driver.nvidia.gpus.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 280.13 Wed Jul 27 16:53:56 PDT 2011
 GCC version: gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
.tmp.unity.support.test.0:

ApportVersion: 1.23-0ubuntu4
Architecture: amd64
CompizPlugins: [core,bailer,detection,composite,opengl,decor,compiztoolbox,grid,vpswitch,resize,imgpng,snap,regex,animation,workarounds,mousepoll,expo,place,move,gnomecompat,unitymtgrabhandles,wall,ezoom,session,fade,scale,unityshell]
CompositorRunning: None
Date: Wed Feb 29 11:13:06 2012
DistUpgraded: Fresh install
DistroCodename: oneiric
DistroVariant: ubuntu
DkmsStatus: nvidia-current-updates, 280.13, 3.0.0-16-generic, x86_64: installed
ExtraDebuggingInterest: Yes, whatever it takes to get this fixed in Ubuntu
GraphicsCard:
 nVidia Corporation G94 [GeForce 9600 GT] [10de:0622] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: ASUSTeK Computer Inc. Device [1043:827c]
JockeyStatus:
 xorg:nvidia_173 - NVIDIA accelerated graphics driver (Proprietary, Disabled, Not in use)
 xorg:nvidia_173_updates - NVIDIA accelerated graphics driver (post-release updates) (Proprietary, Disabled, Not in use)
 xorg:nvidia_current - NVIDIA accelerated graphics driver (Proprietary, Disabled, Not in use)
 xorg:nvidia_current_updates - NVIDIA accelerated graphics driver (post-release updates) (Proprietary, Enabled, In use)
MachineType: System manufacturer System Product Name
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
 LC_PAPER=de_DE.UTF-8
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-16-generic root=UUID=cc3cd9ea-6f90-44c3-a6e8-67758cff1603 ro splash quiet vt.handoff=7
SourcePackage: mesa
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 03/27/2009
dmi.bios.vendor: Phoenix Technologies, LTD
dmi.bios.version: ASUS M3N78 PRO ACPI BIOS Revision 0801
dmi.board.name: M3N78 PRO
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: 1.XX
dmi.chassis.asset.tag: 123456789000
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnPhoenixTechnologies,LTD:bvrASUSM3N78PROACPIBIOSRevision0801:bd03/27/2009:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnM3N78PRO:rvr1.XX:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer
version.compiz: compiz 1:0.9.6+bzr20110929-0ubuntu6.1
version.ia32-libs: ia32-libs 20090808ubuntu26
version.libdrm2: libdrm2 2.4.26-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 7.11-0ubuntu3
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 7.11-0ubuntu3
version.nvidia-graphics-drivers: nvidia-graphics-drivers N/A
version.xserver-xorg: xserver-xorg 1:7.6+7ubuntu7.1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.6.0-1ubuntu13
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.99~git20110811.g93fc084-0ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.15.901-1ubuntu2.1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110411+8378443-1

Revision history for this message
Lorenz Mösenlechner (moesenle) wrote :
summary: - libgl1-mesa-dev libGL.so to mesa/libGL.so which conflicts with nvidia's
- libGL.
+ libgl1-mesa-dev libGL.so links to mesa/libGL.so which conflicts with
+ nvidia's libGL.
summary: - libgl1-mesa-dev libGL.so links to mesa/libGL.so which conflicts with
+ libgl1-mesa-dev links libGL.so to mesa/libGL.so which conflicts with
nvidia's libGL.
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mesa (Ubuntu):
status: New → Confirmed
Revision history for this message
Xerxes Rånby (xranby) wrote :

This bug hits on armel ac100 users who use the nvidia-tegra package in precise.
The same issue exist for libEGL that mesa-dev installs a link from libEGL.so to mesa-egl/libEGL.so and this disable override the user seleted driver using alternatives.

tags: added: armel precise
Revision history for this message
ragtag (ragtag-ragtag) wrote :

This bug is still present in Ubuntu 12.04 LTS.

As a workaround, is it safe to simply remove the /usr/lib/x86_64-linux-gnu/libGL.so pointing to mesa/libGL.so symlink?

Revision history for this message
Doug Coleman (doug-coleman) wrote :

Also still in 13.04 and affects the Factor programming language.

Revision history for this message
assassini (assassini) wrote :

This is still an issue in 14.04.

Revision history for this message
Denis Bernard (db47h) wrote :

Same issue with libgles1-mesa-dev and libgles2-mesa-dev in 14.04

As a workaround, it is safe to remove the following:

/usr/lib/x86_64-linux-gnu/libGL.so
/usr/lib/x86_64-linux-gnu/libEGL.so
/usr/lib/x86_64-linux-gnu/libGLESv1_CM.so
/usr/lib/x86_64-linux-gnu/libGLESv2.so

Then run ldconfig

This only affects programs that try to dlopen() lib*GL*.so instead of lib*GL*.so.1 (like Factor)

onecoin (onecoin6016)
Changed in mesa (Ubuntu):
assignee: nobody → onecoin (onecoin6016)
dino99 (9d9)
Changed in mesa (Ubuntu):
assignee: onecoin (onecoin6016) → nobody
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

shouldn't be an issue anymore with libglvnd

Changed in mesa (Ubuntu):
status: Confirmed → Invalid
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.