Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 292466

Summary: xf86-video-neomagic-1.2.4 symbol error + patch
Product: Gentoo Linux Reporter: Chris Hall <dylix98>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: SebastianLuther
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch

Description Chris Hall 2009-11-09 01:54:27 UTC
X: symbol lookup error: /usr/lib/xorg/modules/drivers/neomagic_drv.so: undefined symbol: xf86UDelay

xorg-server 1.7.1 w/ xf86-video-neomagic-1.2.4

patch is included..

Reproducible: Always

Steps to Reproduce:
1. xorg-server 1.7.1
2. xf86-video-neomagic-1.2.4
3. produces X: symbol lookup error: /usr/lib/xorg/modules/drivers/neomagic_drv.so: undefined symbol: xf86UDelay




 #include <X11/extensions/xf86dgastr.h>
 #endif

+#include <unistd.h>
+
 /* Mandatory functions */
 static const OptionInfoRec *   NEOAvailableOptions(int chipid, int busid);
 static void     NEOIdentify(int flags);
@@ -2489,7 +2491,7 @@ neoRestore(ScrnInfoPtr pScrn, vgaRegPtr VgaReg, NeoRegPtr restore,
      * In some rare cases a lockup might occur if we don't delay
      * here. (Reported by Miles Lane)
      */
-    xf86UDelay(200000);
+    usleep(200000);
     /*
      * Disable horizontal and vertical graphics and text expansions so
      * that vgaHWRestore works properly.
@@ -2502,7 +2504,7 @@ neoRestore(ScrnInfoPtr pScrn, vgaRegPtr VgaReg, NeoRegPtr restore,
      * Sleep for 200ms to make sure that the two operations above have
      * had time to take effect.
      */
-    xf86UDelay(200000);
+    usleep(200000);
     /*
      * This function handles restoring the generic VGA registers.  */
     vgaHWRestore(pScrn, VgaReg,
--
1.6.4.4
Comment 1 Chris Hall 2009-11-09 01:55:51 UTC
Created attachment 209698 [details, diff]
patch

oops :P
Comment 2 Sebastian Luther (few) 2009-11-09 07:57:39 UTC
This seems to the same as bug 291825 which is marked as fixed. Please run emerge --sync and emerge xf86-video-neomagic again.