Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292466 - xf86-video-neomagic-1.2.4 symbol error + patch
Summary: xf86-video-neomagic-1.2.4 symbol error + patch
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-09 01:54 UTC by Chris Hall
Modified: 2009-11-22 16:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch (neomagic-usleep.patch,1.50 KB, patch)
2009-11-09 01:55 UTC, Chris Hall
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.