Bug 20118 - xf86-video-intel-2.6.0 tarball doesn't build on Debian "lenny"
Summary: xf86-video-intel-2.6.0 tarball doesn't build on Debian "lenny"
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: 7.1 (2006.05)
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Gordon Jin
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2009-02-14 07:33 UTC by Andrew Reid
Modified: 2009-02-18 23:23 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Andrew Reid 2009-02-14 07:33:07 UTC
Hi all --

I have a Sony Vaio PCG-R505ECX with the Intel 82830 CGC video system, which I have recently upgraded to Debian "lenny", and was having some strange video corruption issues.

As a sanity check on the hardware, I wanted to try a different video driver for the same chipset, and soon found my way to the driver at http://www.intellinuxgraphics.com, whose latest stable release is the "xf86-video-intel-2.6.0.tar.bz2" download.

This file would initially not configure, due to a requirement for libdrm version 2.4.4, but the same page provides the tarball for this version of the library, and it built fine on my system, using "./configure --prefix=/usr/local; make; make install".

Subsequent to this, the xf86-video-intel-2.6.0 tarball would then configure, but it would not build.  The makefile gets an error attempting to build i830_lvds.c.  The error, starting from the build line for the problem file, is:

> ../doltcompile gcc -DHAVE_CONFIG_H -I. -I..   -I/usr/include/xorg -I/usr/include/pixman-1    -I/usr/local/stow/libdrm-2.4.4/include -I/usr/local/stow/libdrm-2.4.4/include/drm   -Wall -Wpointer-arith -Wstrict-prototypes      -Wmissing-prototypes -Wmissing-declarations     -Wnested-externs -fno-strict-aliasing -I/usr/include/xorg -I/usr/include/pixman-1   -I/usr/local/stow/libdrm-2.4.4/include -I/usr/local/stow/libdrm-2.4.4/include/drm   -I/usr/include/X11/dri -I../uxa -DI830_XV -DI830_USE_XAA -DI830_USE_EXA -g -O2 -MT i830_lvds.lo -MD -MP -MF .deps/i830_lvds.Tpo -c -o i830_lvds.lo i830_lvds.c
> i830_lvds.c: In function ‘i830_lvds_get_modes’:
> i830_lvds.c:827: error: ‘DS_VENDOR’ undeclared (first use in this function)
> i830_lvds.c:827: error: (Each undeclared identifier is reported only once
> i830_lvds.c:827: error: for each function it appears in.)
> make[4]: *** [i830_lvds.lo] Error 1
> make[4]: Leaving directory `/home/reid/download/intel/xf86-video-intel-2.6.0/src'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/home/reid/download/intel/xf86-video-intel-2.6.0/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/reid/download/intel/xf86-video-intel-2.6.0/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/reid/download/intel/xf86-video-intel-2.6.0'
> make: *** [all] Error 2


  Debian "lenny" has version 7.1 of the X.org server, and provides the associated header files and so forth in a "-dev" package.

  Is this just too old of an X.org installation to build this driver?  If so, can you point me to an older version of the driver?  The chipset in question is rather old, so I don't imagine there's a real requirement for new software, but I was unable to find any archives of previous xf86-video-intel tarballs which might work.
Comment 1 Gordon Jin 2009-02-14 21:05:34 UTC
Yes, the latest driver may not work with older server. So better you just use the xf86-video-intel driver shipped in Debian. How about to try a newer Debian than Lenny?
Comment 2 Wang Zhenyu 2009-02-15 22:42:29 UTC
git master has the fix already, but not included in any releases yet.

commit f126aabdf8952177bb15f392041da7a7094eb31b
Author: Eric Anholt <eric@anholt.net>
Date:   Wed Jan 21 12:52:36 2009 -0800

    Fix build with server 1.4.
    
    Debian "unstable" is still stuck with this ancient version.

Comment 3 Julien Cristau 2009-02-16 05:16:36 UTC
This should be fixed with:

commit f126aabdf8952177bb15f392041da7a7094eb31b
Author: Eric Anholt <eric@anholt.net>
Date:   Wed Jan 21 12:52:36 2009 -0800

    Fix build with server 1.4.
    
    Debian "unstable" is still stuck with this ancient version.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.