From owner-freebsd-bugs@FreeBSD.ORG Sat Jul 3 13:50:05 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0A5E106566B for ; Sat, 3 Jul 2010 13:50:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 94BA28FC0C for ; Sat, 3 Jul 2010 13:50:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o63Do1HI072302 for ; Sat, 3 Jul 2010 13:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o63Do1NC072301; Sat, 3 Jul 2010 13:50:01 GMT (envelope-from gnats) Resent-Date: Sat, 3 Jul 2010 13:50:01 GMT Resent-Message-Id: <201007031350.o63Do1NC072301@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andreas Wetzel Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40241106564A for ; Sat, 3 Jul 2010 13:40:30 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 2FE508FC0A for ; Sat, 3 Jul 2010 13:40:30 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o63DeTes022720 for ; Sat, 3 Jul 2010 13:40:29 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o63DeTqR022686; Sat, 3 Jul 2010 13:40:29 GMT (envelope-from nobody) Message-Id: <201007031340.o63DeTqR022686@www.freebsd.org> Date: Sat, 3 Jul 2010 13:40:29 GMT From: Andreas Wetzel To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/148340: x11-drivers/xf86-video-neomagic: unresolved symbol xf86UDelay X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jul 2010 13:50:06 -0000 >Number: 148340 >Category: misc >Synopsis: x11-drivers/xf86-video-neomagic: unresolved symbol xf86UDelay >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jul 03 13:50:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Andreas Wetzel >Release: 8.0-RELEASE-p1 >Organization: >Environment: FreeBSD escape.enforcer.cc 8.0-RELEASE-p1 FreeBSD 8.0-RELEASE-p1 #2: Wed Dec 16 08:17:36 CET 2009 root@escape.enforcer.cc:/export/obj/usr/src/sys/ESCAPE i386 >Description: Using the neomagic driver xf86-video-neomagic-1.2.4 with xorg-server-1.7.5,1 results in an unresolved symbol 'xf86UDelay' at runtime. >How-To-Repeat: Using the above stated versions of xorg-server and xf86-video-neomagic: $ startx Screen goes black, X doesn't start, and the last message on the terminal on which startx was executed contains the unresolved symbol 'xf86UDelay' message. >Fix: Patch attached with submission follows: --- src/neo_driver.c.orig 2009-07-28 07:18:09.000000000 +0200 +++ src/neo_driver.c 2010-07-03 15:27:57.000000000 +0200 @@ -113,6 +113,7 @@ #define _XF86DGA_SERVER_ #include #endif +#include /* Mandatory functions */ static const OptionInfoRec * NEOAvailableOptions(int chipid, int busid); @@ -2489,7 +2490,7 @@ * 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 +2503,7 @@ * 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, >Release-Note: >Audit-Trail: >Unformatted: