Bug 13899 - make fails to compile i810
Summary: make fails to compile i810
Status: RESOLVED NOTOURBUG
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Eric Anholt
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-02 16:11 UTC by Richard Lynch
Modified: 2008-01-03 16:18 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Richard Lynch 2008-01-02 16:11:26 UTC
As of 2008-JAN-02:

Did emerge --sync, emerge portage, emerge xorg-server to get up to xserver 1.3

Used git to download intel driver source from:
git-clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-intel

./autogen.sh seemed to work fine

make, however, yields this:
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..    -Wall -Wpointer-arith -Wstrict-prototypes  -Wmissing-prototypes -Wmissing-declarations     -Wnested-externs -fno-strict-aliasing -I/usr/include/xorg   -I/usr/include/drm -I/usr/include/X11/dri -DI830_XV -DI830_USE_XAA -DI830_USE_EXA -g -O2 -MT i810_driver.lo -MD -MP -MF .deps/i810_driver.Tpo -c -o i810_driver.lo i810_driver.c
 gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -I/usr/include/xorg -I/usr/include/drm -I/usr/include/X11/dri -DI830_XV -DI830_USE_XAA -DI830_USE_EXA -g -O2 -MT i810_driver.lo -MD -MP -MF .deps/i810_driver.Tpo -c i810_driver.c  -fPIC -DPIC -o .libs/i810_driver.o
i810_driver.c:453: error: 'PACKAGE_VERSION_MAJOR' undeclared here (not in a function)
i810_driver.c:453: error: 'PACKAGE_VERSION_MINOR' undeclared here (not in a function)
i810_driver.c:453: error: 'PACKAGE_VERSION_PATCHLEVEL' undeclared here (not in a function)
make[3]: *** [i810_driver.lo] Error 1
make[3]: Leaving directory `/usr/src/xf86-video-intel/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/xf86-video-intel/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/xf86-video-intel'
make: *** [all] Error 2


I already have a working i810 driver, with the 915 (?) patch installed, at least for the previous install.

Have not re-started X to use latest xserver.

Surely compiling from the source doesn't need me to be already running in a specific version?...
Comment 1 WuNian 2008-01-02 18:46:36 UTC
Please update xorg/util/macro package firstly.
If still can not help, please update "pkgconfig".
Comment 2 Richard Lynch 2008-01-03 16:05:08 UTC
(In reply to comment #1)
> Please update xorg/util/macro package firstly.

Upgrading x11-misc/util-macros from 1.0.2 to 1.1.5 and re-doing './autogen.sh; make' has got me past this hurdle.

Thanks!!!

I'm not sure who would do what to make this dependency seemless, so am leaving this open in case it should remain on somebody's "to do" list.


> If still can not help, please update "pkgconfig".

I'll update this as a matter of principle later, but does not seem to be required for this to succeed.
Comment 3 Eric Anholt 2008-01-03 16:18:48 UTC
User's build environment was mismatched, fault of the downstream packaging system.


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.