[PATCH] xfree86: Fix undefined reference to `XNFsprintf' on sparc.

Cyril Brulebois kibi at debian.org
Sun Feb 20 07:26:13 PST 2011


Build failure on sparc:
| copying selected object files to avoid basename conflicts...
|   CCLD   Xorg
| ./.libs/libxorg.a(xf86sbusBus.o): In function `xf86SbusConfigureNewDev':
| […]/hw/xfree86/common/xf86sbusBus.c:712: undefined reference to `XNFsprintf'
| collect2: ld returned 1 exit status

Fix typo introduced in:
  3a9bb93dd178084f4ff1abcea331ca5a62f88ce6

Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
 hw/xfree86/common/xf86sbusBus.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

BIG FAT WARNING: Not actually tested yet. Waiting for other builds to
finish before uploading a new revision with that fix.

(https://buildd.debian.org/status/package.php?p=xorg-server&suite=experimental)

diff --git a/hw/xfree86/common/xf86sbusBus.c b/hw/xfree86/common/xf86sbusBus.c
index 8cfac84..181c6ab 100644
--- a/hw/xfree86/common/xf86sbusBus.c
+++ b/hw/xfree86/common/xf86sbusBus.c
@@ -709,6 +709,6 @@ xf86SbusConfigureNewDev(void *busData, sbusDevicePtr sBus, GDevRec *GDev)
         XNFasprintf(&GDev->busID, "SBUS:%s", promPath);
         free(promPath);
     } else {
-        XNFsprintf(&GDev->busID, "SBUS:fb%d", sBus->fbNum);
+        XNFasprintf(&GDev->busID, "SBUS:fb%d", sBus->fbNum);
     }
 }
-- 
1.7.4.1



More information about the xorg-devel mailing list