Summary: | x11-drivers/xf86-video-mga - mga_drv.so fails to load: undefined symbol: xf86WriteMmio16 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Christopher May-Townsend <chris> |
Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alpha |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | Alpha | ||
OS: | Linux | ||
URL: | https://lists.x.org/archives/xorg-devel/2018-June/057071.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | patch |
Description
Christopher May-Townsend
2015-05-08 12:17:27 UTC
Calculating dependencies ..... .... done! [ebuild R ~] x11-base/xorg-server-1.17.1-r1:0/1.17.1::gentoo USE="glamor ipv6 nptl suid udev xorg -dmx -doc -kdrive -minimal (-selinux) -static-libs -systemd -tslib (-unwind) (-wayland) -xephyr -xnest -xvfb" 0 KiB [ebuild R ~] x11-drivers/xf86-video-mga-1.6.4::gentoo USE="dri" 0 KiB I can confirm the bug. The commit that broke this is commit 9db2af6f757ef9680c70eb731698b7c9f9aca203 Author: Adam Jackson <ajax@redhat.com> Date: Fri May 2 12:14:10 2014 -0400 xfree86: Remove xf86{Map,Unmap}VidMem which is indeed first in xserver 1.17. I understand the breakage and have a simple fix. There's a better fix that involves deleting some code. When I return from vacation I'll do that and upstream it. It'll probably be in one of the 1.20.x stable releases. Oh, just in case you're still waiting with baited breath for a fix after almost exactly three years, here's the simple fix: diff --git a/hw/xfree86/os-support/linux/lnx_video.c b/hw/xfree86/os-support/linux/lnx_video.c index c09d71947..258c92e73 100644 --- a/hw/xfree86/os-support/linux/lnx_video.c +++ b/hw/xfree86/os-support/linux/lnx_video.c @@ -38,12 +38,11 @@ #include "xf86Priv.h" #include "xf86_OSlib.h" #include "xf86OSpriv.h" +#include "compiler.h" static Bool ExtendedEnabled = FALSE; #ifdef __ia64__ - -#include "compiler.h" #include <sys/io.h> #elif !defined(__powerpc__) && \ Wouldn't say baited breath but I have been hoping someone would look into this! (for the life of me I can't get another OS working properly on this box). So I'll give this a go over the weekend, and I look forward to raising other issues I come against! Thanks again! Created attachment 532658 [details, diff]
patch
Please give this a try. It's what I plan to send to the mailing list for review if it fixes the problem for you. You will have to rebuild xf86-video-mga against the new Xserver, FWIW.
Evening, just wanted to confirm that I have the alpha out and running again. It's almost 3yrs out of date (which feels like a 100 in Gentoo years). So I'm busy getting the system into a "safe" state. Luckily I have a crossdev node up and running as of 5mins ago to help. Once done, I'll test this, just wanted to confirm that I am getting there! Cheers again! Evening, so finally at the point I can try this (thanks to a drive with bad sectors) anyways, I've tried to put the above patch file in "/etc/portage/patches/x11-base/xorg-server/" and it flat out doesn't work. In "/var/tmp/portage/x11-base/xorg-server-1.19.5-r2/work/xorg-server-1.19.5" I can run; "patch -p1 -g0 -E --no-backup-if-mismatch --dry-run -f < '/etc/portage/patches//x11-base/xorg-server/0001-xfree86-Inline-xf86-Read-Write-Mmio-8-16-32-on-alpha.patch'" and it mostly works, but not completely, is this patch for a very specific version of xorg-server? #### checking file configure.ac Hunk #1 succeeded at 1964 (offset 56 lines). Hunk #2 succeeded at 2129 (offset 57 lines). checking file hw/xfree86/common/compiler.h checking file hw/xfree86/os-support/bsd/Makefile.am checking file hw/xfree86/os-support/linux/Makefile.am Hunk #1 succeeded at 1 with fuzz 2. Hunk #2 succeeded at 28 (offset -3 lines). checking file hw/xfree86/os-support/linux/lnx_video.c can't find file to patch at input line 216 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/hw/xfree86/os-support/meson.build b/hw/xfree86/os-support/meson.build |index 901422786..b6e5c975d 100644 |--- a/hw/xfree86/os-support/meson.build |+++ b/hw/xfree86/os-support/meson.build -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored ##### ignore me - I just realised you would have this against 1.20, so doing that now. Will have results "later"! congratulations - [ 87315.353] (II) MGA(0): MAPPED Framebuffer 09000000 400000 to 20001332000. [ 87315.354] (II) MGA(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0 [ 87315.370] (--) MGA(0): 32 DWORD fifo [ 87315.390] (==) MGA(0): Default visual is TrueColor [ 87315.390] (EE) MGA(0): Static buffer allocation failed, not initializing the DRI [ 87315.390] (EE) MGA(0): Need at least 10800 kB video memory at this resolution, bit depth [ 87315.417] (II) MGA(0): Using 99 lines for offscreen memory. [ 87315.417] (==) MGA(0): Backing store enabled [ 87315.417] (==) MGA(0): Silken mouse enabled [ 87315.433] (==) MGA(0): DPMS enabled [ 87315.433] (WW) MGA(0): Direct rendering disabled X loaded first time. First time I've managed to get it working on Alpha. So that's loads for this! Excellent! Thank you. I will send the patch upstream. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b48a745f377d884219c60a6169a1aee94b59975 commit 2b48a745f377d884219c60a6169a1aee94b59975 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2018-06-11 02:45:35 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2018-06-11 02:48:01 +0000 x11-base/xorg-server: Apply patch to fix module loading on alpha Closes: https://bugs.gentoo.org/548906 ...ine-xf86-Read-Write-Mmio-8-16-32-on-alpha.patch | 224 +++++++++++++++++++++ x11-base/xorg-server/xorg-server-1.20.0.ebuild | 2 + 2 files changed, 226 insertions(+) The patch is just waiting to be pushed upstream at this point. Since I don't know when 1.20.1 will be released I've added it to our 1.20.0 ebuild. Thanks a bunch for the report and the testing (and the patience!) |