Bug 10430 - xf86-video-intel compilation fails with errors in xf86EdidModes.c
Summary: xf86-video-intel compilation fails with errors in xf86EdidModes.c
Status: CLOSED WORKSFORME
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium critical
Assignee: Eric Anholt
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-27 11:22 UTC by Anson Gardner
Modified: 2007-08-02 18:31 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Anson Gardner 2007-03-27 11:22:20 UTC
I'm running debian testing, whose kernel version doesn't quite support the Intel i946gz chipset, so I'm running 2.6.19 vanilla, and the video drivers (drm, mesa and xf86-video-intel) from freedesktop.org. I ran "git-clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-intel" today (March 27).

I am not a programmer, so if there is anything useful that I haven't provided, please let me know. The error occurs running make against the xf86-video-intel sources.

Thanks for your time

Here is the relevant output:
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DXFree86Server -DIN_MODULE -DXFree86Module -DXFree86LOADER -I/usr/include/xorg -I/usr/local/include -I/usr/local/include/drm -I/usr/include/X11/dri -DXF86_MODES_RENAME -I../src/modes -I../src/parser -DI830_XV -DI830_USE_XAA -DI830_USE_EXA -g -O2 -MT xf86EdidModes.lo -MD -MP -MF .deps/xf86EdidModes.Tpo -c modes/xf86EdidModes.c  -fPIC -DPIC -o .libs/xf86EdidModes.o
modes/xf86EdidModes.c:394: warning: no previous prototype for 'xf86DDCMonitorSet'
modes/xf86EdidModes.c: In function 'xf86DDCMonitorSet':
modes/xf86EdidModes.c:451: error: 'struct <anonymous>' has no member named 'maxPixClock'
modes/xf86EdidModes.c:452: error: 'struct <anonymous>' has no member named 'maxPixClock'
make[3]: *** [xf86EdidModes.lo] Error 1
make[3]: Leaving directory `/home/anson/archive/i946gz/xserver/xf86-video-intel/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/anson/archive/i946gz/xserver/xf86-video-intel/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/anson/archive/i946gz/xserver/xf86-video-intel'
make: *** [all] Error 2
Comment 1 Eric Anholt 2007-03-27 13:25:51 UTC
Are you building against a current version of the server?  You must either have a current server installed, use --with-xserver-source appropriately pointing at current server source, or use the distributed tarball.
Comment 2 Anson Gardner 2007-03-28 07:26:01 UTC
(In reply to comment #1)
> Are you building against a current version of the server?  You must either have
> a current server installed, use --with-xserver-source appropriately pointing at
> current server source, or use the distributed tarball.
> 

I knew I left out some information: in order to get the xf86-video-intel/autogen.sh script to complete, I had to download the xserver sources into the parent dir. Once I had done that, the script would finish without asking for xserver sources >= version 1.3. I ran git-clone git://anongit.freedesktop.org/git/xorg/xserver to obtain the source. 

As a test, I have re-run the autogen.sh script on a clean source tree using the --with-xserver-source=/path/to/xserver-source switch. The script output was the same as before, and make produced the same error.

Thanks for looking into this.

Regards,
Comment 3 Eric Anholt 2007-04-09 13:51:51 UTC
no, what version of the xserver do you have installed?  7.2 or newer is required.
Comment 4 Anson Gardner 2007-04-09 14:56:07 UTC
"Are you building against a current version of the server?  You must either have a current server installed, use --with-xserver-source appropriately pointing at current server source, or use the distributed tarball."

"no, what version of the xserver do you have installed?  7.2 or newer is
required."

I hope I've not been wasting your time. 7.1 is installed; what I had read online led me to believe that I could compile the new driver with the 7.2 xserver sources using the --with-xserver-source switch. Your first reply (above) seemed to indicate that this was acceptable.

Is this not the case?

Thanks
Comment 5 Gordon Jin 2007-07-31 19:22:54 UTC
Anson, are you stilling seeing this error with the latest driver?
Comment 6 Michael Fu 2007-08-02 18:29:09 UTC
need to have right build version. we can't reproduce this bug on upstream driver.
Comment 7 Eric Anholt 2007-08-02 18:31:39 UTC
You need to be building against server 1.3, not 1.2 (7.2)


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.