Bug 130320 - xf86-video-via missing #include <assert.h>, kills screen
Bug#: 130320 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: critical Priority: P2
Resolution: FIXED Assigned To: x11@gentoo.org Reported By: gentoo-bugs@synx.dyndns.org
Component: Applications
URL:  https://bugs.freedesktop.org/show_bug.cgi?id=6668
Summary: xf86-video-via missing #include <assert.h>, kills screen
Keywords:  
Status Whiteboard: 
Opened: 2006-04-17 19:35 0000
Description:   Opened: 2006-04-17 19:35 0000
xf86-video-via updated recently (thanks! :) ) but it was updated with a
critical bug, easily fixed.  Ebuild =x11-drivers/xf86-video-via-0.2.1 dies
during startx with a "symbol 'assert' not found" and in dying it leaves the
video card in a nonfunctional state.  To fix this problem, add:

#include <assert.h>

at the top of the file src/via_dri.c.  After that fix, everything works
"perfectly".  Someone with connections might push this upstream to the X11 via
driver developer too.

------- Comment #1 From Micha&#322; Pytasz 2006-04-18 09:42:58 0000 -------
Created an attachment (id=84909) [details]
Photograph of screen without assert.h

I can confirm that. Without assert.h screen looks more or less like in the
attachment (on Acer Apire 1362, K8N800 based laptop), with assert included
works fine.

------- Comment #2 From Donnie Berkholz 2006-04-18 09:45:00 0000 -------
Please file this upstream at bugs.freedesktop.org in the xorg product. Make it
block bug #5041, and post the URL here.

Thanks!

------- Comment #3 From Bill Krueger 2006-05-15 19:29:23 0000 -------
Did a bit of searching and finally found this upstream so here's the url:


https://bugs.freedesktop.org/show_bug.cgi?id=6668

Hope this helps as it seams this fix is still not in gentoo's portage. 

------- Comment #4 From Joshua Baergen (RETIRED) 2006-05-15 19:37:50 0000 -------
It's not there since no one had brought it to our attention yet :D  Thanks for
finding it.

------- Comment #5 From Joshua Baergen (RETIRED) 2006-05-15 19:43:05 0000 -------
Fixed in CVS.