[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#412873: xserver-xorg-video-neomagic: Produces wrong graphic modes



Package: xserver-xorg-video-neomagic
Version: 1:1.1.1-4
Severity: critical
Tags: patch
Justification: breaks the whole system


The bug itself is caused by an implicit declaration of abs().
As a result the video modes produced can not be handled by the [external] monitor.
After killing the X server, the graphic card is left in a weird state, most of the time unradable
(e.g. totally pink screen with no text visible).

This patch, taken from http://bugs.freedesktop.org/show_bug.cgi?id=7873, fixes the problem.

--- a/src/neo_driver.c
+++ b/src/neo_driver.c
@@ -118,6 +118,9 @@ #define _XF86DGA_SERVER_
 #include <X11/extensions/xf86dgastr.h>
 #endif

+/* For abs() */
+#include <stdlib.h>
+
 /* Mandatory functions */
 static const OptionInfoRec *   NEOAvailableOptions(int chipid, int busid);
 static void     NEOIdentify(int flags);



-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages xserver-xorg-video-neomagic depends on:
ii  libc6                       2.3.6.ds1-11 GNU C Library: Shared libraries
ii  xserver-xorg-core           2:1.1.1-18   X.Org X server -- core server

xserver-xorg-video-neomagic recommends no packages.

-- no debconf information



Reply to: