Errors compiling xf86-video-intel on Debian 4.0
Eamon Walsh
ewalsh at tycho.nsa.gov
Thu Dec 20 18:01:00 PST 2007
Joseph Alten wrote:
> Hi,
>
> I'm trying to transfer my setup from a Gentoo system to a Debian one.
> My main problem at the moment is trying to get the xf86-video-intel
> driver to compile; it has a number of errors which I need help with.
> I've been following the guide here:
> http://ubuntuforums.org/showpost.php?p=2399695&postcount=102
>
> When I try to actually compile xf86-video-intel, I get the following
> error:
>
> modes/xf86Modes.c: In function 'xf86ValidateModesBandwidth':
> modes/xf86Modes.c:512: error: 'MODE_BANDWIDTH' undeclared (first use
> in this function)
>
> The actual code it's choking on is this:
>
> for (mode = modeList; mode != NULL; mode = mode->next) {
> if (xf86ModeBandwidth(mode, depth) > bandwidth)
> mode->status = MODE_BANDWIDTH;
> }
>
> After a bit of grepping, it appears that MODE_BANDWIDTH is defined in
> xf86str.h, and so I tried (I can't remember the exact path)
> #include'ing the absolute path, but that didn't seem to help. Finally
> I just commented out the if() statement to see if it would compile,
> but then I got further errors.
>
I see xf86Modes.c including xf86Priv.h which includes xf86Privstr.h
which includes xf86str.h. The MODE_BANDWIDTH constant was just
introduced on Dec 13.
The intel driver symlinks to a bunch of stuff in the X server, including
xf86Modes.c and xf86Cursors.c and it looks like you have copies of those
files that are more recent than the X server header files they are
including. If you haven't built and installed the xserver package from
git, I would recommend doing that. This step doesn't seem to be in the
instructions you linked to. Hope this helps!
> modes/xf86Cursors.c: In function 'xf86_set_cursor_colors':
> modes/xf86Cursors.c:229: warning: implicit declaration of function
> 'dixLookupPri vate'
> modes/xf86Cursors.c:229: warning: nested extern declaration of
> 'dixLookupPrivate '
> modes/xf86Cursors.c:229: error: 'struct _Cursor' has no member named
> 'devPrivate s'
> modes/xf86Cursors.c:230: warning: pointer/integer type mismatch in
> conditional e xpression
> modes/xf86Cursors.c: In function 'intel_xf86_reload_cursors':
> modes/xf86Cursors.c:616: error: 'struct _Cursor' has no member named
> 'devPrivate s'
> modes/xf86Cursors.c:616: warning: passing argument 2 of 'cursor_info-
> >LoadCursor Image' makes pointer from integer without a cast
>
> Thanks for helping.
>
> --Joe
> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg
>
>
--
Eamon Walsh <ewalsh at tycho.nsa.gov>
National Security Agency
More information about the xorg
mailing list