On Wed, 5 Jan 2005, Jeff Chua wrote:
> Got the following with the latest cvs ...
>
>
> gcc -o scanpci -O2 -fno-strength-reduce -ansi -Wall -Wpointer-arith
> -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
> -Wredundant-decls -Wnested-externs -Wundef
> -L../../../../../exports/lib scanpci.o -L../os-support -lxf86_os
> -L../scanpci -lscanpci -L../dummylib -ldummy
> -Wl,-rpath-link,../../../../../exports/lib
> ../os-support/libxf86_os.a(Pci.o)(.text+0x131d): In function
> `xf86scanpci':
> : undefined reference to `pciWriteWprd'
> collect2: ld returned 1 exit status
> make[6]: *** [scanpci] Error 1
> make[6]: Leaving directory
> `/v6/src2/xfree86/xc/programs/Xserver/hw/xfree86/etc'
> make[5]: *** [all] Error 2
Patch attached.
Still building, so this may not be a complete fix.
--
Andrew C. Aitchison Cambridge
[EMAIL PROTECTED]
Index: xc/programs/Xserver/hw/xfree86/os-support/bus/Pci.c
===================================================================
RCS file:
/home/CVS/XFree86/xc/programs/Xserver/hw/xfree86/os-support/bus/Pci.c,v
retrieving revision 1.88
diff -u -r1.88 Pci.c
--- xc/programs/Xserver/hw/xfree86/os-support/bus/Pci.c 2005/01/04 15:26:38
1.88
+++ xc/programs/Xserver/hw/xfree86/os-support/bus/Pci.c 2005/01/05 09:18:51
@@ -1037,7 +1037,7 @@
/* Allow master aborts to complete normally on secondary buses */
if (!(devp->pci_bridge_control & PCI_PCI_BRIDGE_MASTER_ABORT_EN))
break;
- pciWriteWprd(tag, PCI_PCI_BRIDGE_CONTROL_REG,
+ pciWriteWord(tag, PCI_PCI_BRIDGE_CONTROL_REG,
devp->pci_bridge_control &
~(PCI_PCI_BRIDGE_MASTER_ABORT_EN |
PCI_PCI_BRIDGE_SECONDARY_RESET));