From owner-freebsd-x11@freebsd.org Thu Jul 28 09:33:48 2016 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7F445BA7216 for ; Thu, 28 Jul 2016 09:33:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 647F21200 for ; Thu, 28 Jul 2016 09:33:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 63A54BA7212; Thu, 28 Jul 2016 09:33:48 +0000 (UTC) Delivered-To: x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 633DFBA7211 for ; Thu, 28 Jul 2016 09:33:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5284011FD for ; Thu, 28 Jul 2016 09:33:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u6S9XlH5075113 for ; Thu, 28 Jul 2016 09:33:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: maintainer-feedback requested: [Bug 211418] x11-drivers/xf86-video-vesa: X11 fails to start; vesa_drv.so Undefined symbol "ioBase" Date: Thu, 28 Jul 2016 09:33:47 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2016 09:33:48 -0000 Damon Zwolinski has reassigned Bugzilla Automation 's request for maintainer-feedback to x11@FreeBSD.org: Bug 211418: x11-drivers/xf86-video-vesa: X11 fails to start; vesa_drv.so Undefined symbol "ioBase" https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211418 --- Description --- OVERVIEW: When I run startx, the (X) server can't load the vesa driver and without a working driver, X fails to start. The log indicates that ioBase can't be f= ound in vesa_drv.so but I can see it defined in vesa.h which vesa.c includes. STEPS TO REPRODUCE: 1) Tell xorg to use the vesa driver (the radeon driver doesn't seem to be available for PowerPC) $ cat /usr/local/etc/X11/xorg.conf.d/driver-radeon.conf # https://www.freebsd.org/doc/handbook/x-config.html#x-config-video-cards-f= ile # http://mac.linux.be/content/g4-emac-1ghz-radeon Section "Device" Identifier "ATI Technologies Inc Radeon RV200 QW [Radeon 7500]" # Driver "radeon" Driver "vesa" BusID "PCI:0:16:0" EndSection 2) As a user (i.e. not root), run `startx` Note I've tried building xorg from ports as well as using prebuilt packages from https://joshcummings.net/pub/FreeBSD/FreeBSD%3a10%3apowerpc/2016Q1/All/ which were apparently built using Poudriere. ACTUAL RESULTS:=20 (stdout) $ startx xauth: file /home/damonz/.serverauth.887 does not exist xauth: (argv):1: bad display name "emac.local:0" in "list" command xauth: (stdin):1: bad display name "emac.local:0" in "add" command X.Org X Server 1.17.4 Release Date: 2015-10-28 X Protocol Version 11, Revision 0 Build Operating System: FreeBSD 10.2-RELEASE powerpc Current Operating System: FreeBSD emac.local 10.3-RELEASE FreeBSD 10.3-RELE= ASE #0 r297264: Fri Mar 25 05:18:20 UTC 2016 ro ot@releng1.nyi.freebsd.org:/usr/obj/powerpc.powerpc/usr/src/sys/GENERIC pow= erpc Build Date: 22 March 2016 06:14:55PM Current version of pixman: 0.32.8 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (=3D=3D) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (=3D=3D) Log file: "/var/log/Xorg.0.log", Time: Wed Jul 27 19:41:47 2016 (=3D=3D) Using config directory: "/usr/local/etc/X11/xorg.conf.d" (EE) Fatal server error: (EE) no screens found(EE) (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. (EE) (EE) Server terminated with error (1). Closing log file. xinit: giving up xinit: unable to connect to X server: Connection refused xinit: server error xauth: (argv):1: bad display name "emac.local:0" in "remove" command feel sad (/var/log/Xorg.0.log) [ 396.980]=20 X.Org X Server 1.17.4 Release Date: 2015-10-28 [ 396.981] X Protocol Version 11, Revision 0 [ 396.981] Build Operating System: FreeBSD 10.2-RELEASE powerpc=20 [ 396.981] Current Operating System: FreeBSD emac.local 10.3-RELEASE Free= BSD 10.3-RELEASE #0 r297264: Fri Mar 25 05:18:20 UTC 2016=09=20 root@releng1.nyi.freebsd.org:/usr/obj/powerpc.powerpc/usr/src/sys/GENERIC powerpc [ 396.982] Build Date: 22 March 2016 06:14:55PM [ 396.982]=20=20 [ 396.982] Current version of pixman: 0.32.8 [ 396.982] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 396.982] Markers: (--) probed, (**) from config file, (=3D=3D) default = setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 396.983] (=3D=3D) Log file: "/var/log/Xorg.0.log", Time: Wed Jul 27 19:= 41:47 2016 [ 397.071] (=3D=3D) Using config directory: "/usr/local/etc/X11/xorg.conf= .d" [ 397.102] (=3D=3D) ServerLayout "Default Layout" [ 397.102] (**) |-->Screen "Screen0" (0) [ 397.102] (**) | |-->Monitor "Monitor[0]" [ 397.103] (**) | |-->Device "ATI Technologies Inc Radeon RV200 QW [Rad= eon 7500]" [ 397.103] (=3D=3D) Automatically adding devices [ 397.103] (=3D=3D) Automatically enabling devices [ 397.103] (=3D=3D) Not automatically adding GPU devices [ 397.257] (=3D=3D) FontPath set to: /usr/local/share/fonts/misc/, /usr/local/share/fonts/TTF/, /usr/local/share/fonts/OTF/, /usr/local/share/fonts/Type1/, /usr/local/share/fonts/100dpi/, /usr/local/share/fonts/75dpi/ [ 397.257] (=3D=3D) ModulePath set to "/usr/local/lib/xorg/modules" [ 397.257] (II) The server relies on devd to provide the list of input devices. If no devices become available, reconfigure devd or disable AutoAddDevices. [ 397.257] (II) Loader magic: 0x1a2001c [ 397.258] (II) Module ABI versions: [ 397.258] X.Org ANSI C Emulation: 0.4 [ 397.258] X.Org Video Driver: 19.0 [ 397.258] X.Org XInput driver : 21.0 [ 397.258] X.Org Server Extension : 9.0 [ 397.258] (WW) xf86EnableIO -1 [ 397.258] (II) xf86EnableIO: ffffffff [ 397.258] (WW) Can't map IO space! [ 397.259] (--) PCI: (0:0:16:0) 1002:5157:1002:5157 rev 0, Mem @ 0x98000000/134217728, 0x90000000/65536, I/O @ 0x00000400/256, BIOS @ 0x????????/65536 [ 397.259] (II) "glx" will be loaded by default. [ 397.259] (II) LoadModule: "int10" [ 397.277] (II) Loading /usr/local/lib/xorg/modules/libint10.so [ 397.282] (II) Module int10: vendor=3D"X.Org Foundation" [ 397.282] compiled for 1.17.4, module version =3D 1.0.0 [ 397.282] ABI class: X.Org Video Driver, version 19.0 [ 397.282] (II) LoadModule: "vbe" [ 397.283] (II) Loading /usr/local/lib/xorg/modules/libvbe.so [ 397.285] (II) Module vbe: vendor=3D"X.Org Foundation" [ 397.285] compiled for 1.17.4, module version =3D 1.1.0 [ 397.285] ABI class: X.Org Video Driver, version 19.0 [ 397.285] (II) LoadModule: "glx" [ 397.286] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so [ 397.332] (II) Module glx: vendor=3D"X.Org Foundation" [ 397.332] compiled for 1.17.4, module version =3D 1.0.0 [ 397.332] ABI class: X.Org Server Extension, version 9.0 [ 397.333] (=3D=3D) AIGLX enabled [ 397.333] (II) LoadModule: "vesa" [ 397.333] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so [ 397.338] (EE) Failed to load /usr/local/lib/xorg/modules/drivers/vesa_drv.so: /usr/local/lib/xorg/modules/drivers/vesa_drv.so: Undefined symbol "ioBase" [ 397.338] (II) UnloadModule: "vesa" [ 397.338] (II) Unloading vesa [ 397.338] (EE) Failed to load module "vesa" (loader failed, 7) [ 397.338] (EE) No drivers available. [ 397.338] (EE)=20 Fatal server error: [ 397.338] (EE) no screens found(EE)=20 [ 397.338] (EE)=20 Please consult the The X.Org Foundation support=20 at http://wiki.x.org for help.=20 [ 397.339] (EE) Please also check the log file at "/var/log/Xorg.0.log" f= or additional information. [ 397.339] (EE)=20 [ 397.339] (EE) Server terminated with error (1). Closing log file. EXPECTED RESULTS: xorg starts and displays twm and xterm BUILD DATE & HARDWARE:=20 I have an Apple eMac. $ uname -a FreeBSD emac.local 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 05:18:20 UTC 2016=20=20=20=20 root@releng1.nyi.freebsd.org:/usr/obj/powerpc.powerpc/usr/src/sys/GENERIC=20 powerpc # pciconf -lcv hostb0@pci0:0:11:0: class=3D0x060000 card=3D0x00000000 chip=3D0x002d106b re= v=3D0x00 hdr=3D0x00 vendor =3D 'Apple Inc.' device =3D 'UniNorth 1.5 AGP' class =3D bridge subclass =3D HOST-PCI cap 02[80] =3D AGP 4x 2x 1x SBA disabled vgapci0@pci0:0:16:0: class=3D0x030000 card=3D0x51571002 chip=3D0x51571002 r= ev=3D0x00 hdr=3D0x00 vendor =3D 'Advanced Micro Devices, Inc. [AMD/ATI]' device =3D 'RV200 [Radeon 7500/7500 LE]' class =3D display subclass =3D VGA cap 02[58] =3D AGP 4x 2x 1x SBA disabled cap 01[50] =3D powerspec 2 supports D0 D1 D2 D3 current D0 ... # dmesg | grep cpu cpu0: Motorola PowerPC 7455 revision 3.3, 1000.26 MHz cpu0: Features 9c000000 cpu0: HID0 8450c0bc cpulist0: on ofwbus0 cpu0: on cpulist0 ADDITIONAL NOTES: In spite of the ports manual I don't know enough about patching ports yet to change the code and print things out. When I try to make changes to /usr/ports/x11-drivers/xf86-video-vesa/work/xf86-video-vesa-2.3.4/src/vesa.= c, make install clobbers them. Let me know if I can provide other details. Thank you, - d