xserver-xorg-video-radeon has insufficient (even missing) dependency on libdrm-radeon1

Bug #507618 reported by Michael Bienia
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
xserver-xorg-video-ati (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: xserver-xorg-video-ati

During a partial upgrade from karmic to lucid, I wanted to restart X after updating the X packages but it didn't come back.
Looking at the gdm log the error could be found pretty fast:
  /usr/bin/X: symbol lookup error: /usr/lib/xorg/modules/drivers/radeon_drv.so: undefined symbol: radeon_cs_create

At this point xserver-xorg-video-radeon was already updated to 1:6.12.99+git20091125.0061c4db-0ubuntu2 (lucid) while libdrm-radeon1 was still at 2.4.14-1ubuntu1 (karmic). Updating libdrm-radeon1 to 2.4.17-0ubuntu1 (lucid) fixed it and my X started again.

I looked then at the dependencies of xserver-xorg-video-radeon I saw that it's missing a dependency on libdrm-radeon1 at all:
  Depends: libc6 (>= 2.2.5), libpciaccess0, xserver-xorg-core (>= 2:1.6.99.900)
Looking further at the needed libraries of /usr/lib/xorg/modules/drivers/radeon_drv.so:
$ objdump -x /usr/lib/xorg/modules/drivers/radeon_drv.so | grep NEEDED
  NEEDED libpixman-1.so.0
  NEEDED libdrm_radeon.so.1
  NEEDED libdrm.so.2
  NEEDED libpciaccess.so.0
  NEEDED libc.so.6
other needed libraries are missing in Depends too. While at least libpixman-1-0 and libdrm2 are pulled in through xserver-xorg-core depending on them (still are direct dependency would be better than a indirect one), libdrm-radeon1 is only pulled in through a recommendation:
$ aptitude why xserver-xorg-video-radeon libdrm-radeon1
i xserver-xorg-video-radeon Depends xserver-xorg-core (>= 2:1.6.99.900)
i A xserver-xorg-core Recommends libgl1-mesa-dri (>= 7.1~rc1)
i libgl1-mesa-dri Depends libdrm-radeon1 (>= 2.4.12)
But this doesn't assure that libdrm-radeon1 is installed at all and even in the correct version needed by xserver-xorg-video-radeon.

[lspci]
00:00.0 RAM memory [0500]: nVidia Corporation MCP65 Memory Controller [10de:0444] (rev a3)
     Subsystem: Giga-byte Technology Device [1458:5001]
02:00.0 VGA compatible controller [0300]: ATI Technologies Inc RV670PRO [Radeon HD 3850] [1002:9505]
     Subsystem: ASUSTeK Computer Inc. Device [1043:0234]

Revision history for this message
Howard Chu (hyc) wrote :

I'm hitting the same problem now, having just updated to Lucid Alpha 2 from Karmic. Unfortunately, my libdrm-radeon1 is already at the correct version and the problem persists. objdump -T confirms that /usr/lib/libdrm_radeon.so.1 exports radeon_cs_create but I'm still getting this error. Quite puzzling...

Revision history for this message
Howard Chu (hyc) wrote :

Never mind me.... I found an old libdrm in /lib. Deleting that fixed the issue.

Revision history for this message
Bryce Harrington (bryce) wrote :

Hi geser,

Please attach the output of `lspci -vvnn` and `dmesg`, and attach your /var/log/Xorg.0.log (and maybe Xorg.0.log.old) file from after reproducing this issue. If you're using a custom /etc/X11/xorg.conf please attach that as well.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: needs-xorglog
tags: added: needs-lspci-vvnn
Changed in xserver-xorg-video-ati (Ubuntu):
status: New → Incomplete
Revision history for this message
Michael Bienia (geser) wrote :

To be able to provided the needed logs, I had to uninstall libdrm-radeon1 (which went without problems).

(II) Loading /usr/lib/xorg/modules/drivers/radeon_drv.so
dlopen: libdrm_radeon.so.1: cannot open shared object file: No such file or directory
(EE) Failed to load /usr/lib/xorg/modules/drivers/radeon_drv.so
(II) UnloadModule: "radeon"
(EE) Failed to load module "radeon" (loader failed, 7)

Revision history for this message
Michael Bienia (geser) wrote :

After installing the version from karmic (libdrm-radeon1 2.4.14-1ubuntu1) on my lucid installation (nothing required a newer version).

(II) RADEON(0): [DRI2] Setup complete
/usr/bin/X: symbol lookup error: /usr/lib/xorg/modules/drivers/radeon_drv.so: undefined symbol: radeon_cs_create

Revision history for this message
Michael Bienia (geser) wrote :
Revision history for this message
Michael Bienia (geser) wrote :
Changed in xserver-xorg-video-ati (Ubuntu):
status: Incomplete → New
Bryce Harrington (bryce)
Changed in xserver-xorg-video-ati (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Bryce Harrington (bryce)
description: updated
Revision history for this message
Robert Hooker (sarvatt) wrote :

Package: xserver-xorg-video-radeon
Version: 1:6.12.191-1ubuntu2
Depends: libc6 (>= 2.7), libdrm-radeon1 (>= 2.4.17), libdrm2 (>= 2.4.16), libpciaccess0 (>= 0.10.2), libpixman-1-0, xserver-xorg-core (>= 2:1.6.99.900)

Changed in xserver-xorg-video-ati (Ubuntu):
status: Confirmed → Fix Released
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.