Subject: X11R6 rebuild breaks acroread and xwp
To: NetBSD current-users <>
From: Thomas Miller <>
List: current-users
Date: 06/01/2002 18:03:01

I could use some help because my newer -current X11R6 builds break
some Linux X binaries, and I don't know how to fix the problem.
Here are the particulars:

On i386 with suse64 pkgsrc compatibility package, after rebuilding
/usr/X11R6 by running "make build" in /usr/xsrc containing sources
updated with cvs on 20020429, Acrobat Reader (Linux acroread-4.05
from pkgsrc) and xwp (the free version of Corel Linux WordPerfect
7, local non-pkgsrc install) no longer displayed graphics properly.

Both acroread and xwp still launched and retrieved files, but xwp
no longer displayed the menu bar button images, the graphic in the
splash box, and the graphic in the program control window.  Acroread
displayed the table of contents frame properly but images and text
in the contents frame were corrupted.  Acroread sometimes exited
with error code 0x400e009, but googling this error code didn't
produce much that seemed helpful.

Rebuilding /usr/X11R6 from xsrc sources freshly checked out on
20020518 didn't help.  Reinstalling acroread and xwp when the
machine had newer /usr/X11R6 builds from 20020429 or 20020518
sources didn't help either.

Happily, both acroread and xwp resume working fine when I restore
/usr/X11R6 from a backup of my previous build from xsrc sources
checked out on 20020222.

Notably, all three builds work great on native NetBSD X stuff like
dillo.  Also opera-5.999.2 (from pkgsrc) works fine with 20020222
and 20020429 X111R6 builds (don't recall testing Opera with the
build from 20020518 sources).

The problem appears only with acroread and xwp and only when using
the two later X11R6 builds.  The problem is easily repeatable or
cureable at will by creating /usr/X11R6 as a link and switching
the link between directories containing X11R6 builds from 20020222
and 20020429 sources.

Here is the output from "startx >& startx.txt" with the link 
connected to 20020429 sources and simply starting X, then 
immediately exiting (running acroread or xwp doesn't seem to
produce additional information):

XFree86 Version 3.3.6a / X Window System
(protocol Version 11, revision 0, vendor release 6300)
Release Date: November 30 2000
	If the server is older than 6-12 months, or if your card is newer
	than the above date, look for a newer version before reporting
	problems.  (see http://www.XFree86.Org/FAQ)
Operating System: NetBSD/i386 1.5ZC [ELF] The NetBSD Foundation, Inc.
Configured drivers:
  SVGA: server for SVGA graphics adaptors (Patchlevel 1):
      GeForce DDR, Quadro, GeForce2 GTS, GeForce2 GTS (rev1),
      GeForce2 Ultra, Quadro 2 Pro, GeForce2 MX, GeForce2 MX DDR,
      Quadro 2 MXR, ET4000, ET4000W32, ET4000W32i, ET4000W32i_rev_b,
      ET4000W32i_rev_c, ET4000W32p, ET4000W32p_rev_a, ET4000W32p_rev_b,
      ET4000W32p_rev_c, ET4000W32p_rev_d, ET6000, ET6100, et3000, pvga1,
      wd90c00, wd90c10, wd90c30, wd90c24, wd90c31, wd90c33, gvga, r128, ati,
      sis86c201, sis86c202, sis86c205, sis86c215, sis86c225, sis5597,
      sis5598, sis6326, sis530, sis620, sis300, sis630, sis540, tvga8200lx,
      tvga8800cs, tvga8900b, tvga8900c, tvga8900cl, tvga8900d, tvga9000,
      tvga9000i, tvga9100b, tvga9200cxr, tgui9400cxi, tgui9420, tgui9420dgi,
      tgui9430dgi, tgui9440agi, cyber9320, tgui9660, tgui9680, tgui9682,
      tgui9685, cyber9382, cyber9385, cyber9388, cyber9397, cyber9520,
      cyber9525, 3dimage975, 3dimage985, cyber9397dvd, blade3d, cyberblade,
      clgd5420, clgd5422, clgd5424, clgd5426, clgd5428, clgd5429, clgd5430,
      clgd5434, clgd5436, clgd5446, clgd5480, clgd5462, clgd5464, clgd5465,
      clgd6205, clgd6215, clgd6225, clgd6235, clgd7541, clgd7542, clgd7543,
      clgd7548, clgd7555, clgd7556, ncr77c22, ncr77c22e, cpq_avga, mga2064w,
      mga1064sg, mga2164w, mga2164w AGP, mgag200, mgag100, mgag400, oti067,
      oti077, oti087, oti037c, al2101, ali2228, ali2301, ali2302, ali2308,
      ali2401, cl6410, cl6412, cl6420, cl6440, video7, ark1000vl, ark1000pv,
      ark2000pv, ark2000mt, mx, realtek, s3_virge, AP6422, AT24, AT3D,
      s3_savage, s3_svga, NM2070, NM2090, NM2093, NM2097, NM2160, NM2200,
      ct65520, ct65525, ct65530, ct65535, ct65540, ct65545, ct65546,
      ct65548, ct65550, ct65554, ct65555, ct68554, ct69000, ct64200,
      ct64300, mediagx, V1000, V2100, V2200, p9100, spc8110, i740, i740_pci,
      Voodoo Banshee, Voodoo3, smi, generic
Using wscons driver (version 3.32)
XF86Config: /etc/XF86Config
(**) stands for supplied, (--) stands for probed/default values
(**) XKB: rules: "xfree86"
(**) XKB: model: "pc105"
(**) XKB: layout: "us"
(**) Mouse: type: wsmouse, device: /dev/wsmouse0, samplerate: 50
(**) Mouse: resolution: 200, buttons: 3
(**) Mouse: 3 button emulation (timeout: 50ms)
(**) SVGA: Graphics device ID: "Primary Card"
(**) SVGA: Monitor ID: "Primary Monitor"
(**) FontPath set to "/usr/X11R6/lib/X11/fonts/local,/usr/X11R6/lib/X11/fonts/misc:unscaled,/usr/X11R6/lib/X11/fonts/75dpi:unscaled,/usr/X11R6/lib/X11/fonts/100dpi:unscaled,/usr/X11R6/lib/X11/fonts/Type1,/usr/X11R6/lib/X11/fonts/Speedo,/usr/X11R6/lib/X11/fonts/misc,/usr/X11R6/lib/X11/fonts/75dpi,/usr/X11R6/lib/X11/fonts/100dpi"
(--) SVGA: PCI: ATI Mach64 GT IIc rev 122, Memory @ 0xfd000000, MMIO @ 0xfeaff000, I/O @ 0xd800
Using XFree86 ATI driver version 4.9.
ATI 3D Rage IIc graphics controller detected.
Chip type 4757 "GW", version 2, foundry UMC, class 0, revision 0x01.
AGP interface detected;  Block I/O base is 0xD800.
ATI Mach64 video adapter detected.
Internal RAMDAC (subtype 1) detected.
Using 8MB linear aperture at 0xFD000000.
4096 kB of SDRAM (1:1) detected.
Internal programmable clock generator detected.
Reference clock 157.5/11 (14.318) MHz.
(--) SVGA: chipset:  ati
(--) SVGA: videoram: 4096k
(**) SVGA: Using 24 bpp, Depth 24, Color weight: 888
(--) SVGA: Maximum allowed dot-clock: 230.000 MHz
(**) SVGA: Mode "1024x768": mode clock =  65.000
(**) SVGA: Mode "800x600": mode clock =  50.000
(**) SVGA: Mode "640x480": mode clock =  45.800
(--) SVGA: Virtual resolution set to 1024x768

waiting for X server to shut down X connection to :0.0 broken 
(explicit kill or server shutdown).


I probably made some really simple mistake.  Thanks in advance for
helping. :-)