Bug 37877 - Fail to build Xserver and some other X components after update macro to 1.14.0
Summary: Fail to build Xserver and some other X components after update macro to 1.14.0
Status: VERIFIED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: high critical
Assignee: Alan Coopersmith
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-03 06:59 UTC by zhao jian
Modified: 2011-06-06 20:11 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description zhao jian 2011-06-03 06:59:33 UTC
We updated Xserver recently to 1.10.99.901 (1.11 RC1) which requires xorg-macros 1.14, and after upgrade macros to 1.14.0, there will be a build error that make xserver failed to build. The error info is as following: 

configure:13553: error: possibly undefined macro: AC_LANG_DEFINES_PROVIDED
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1

The culprit commit in xorg macro that lead to the xserver fail to build is e03a5cb9f313c6f5de3edc46327eb18b300b92c2. 

commit e03a5cb9f313c6f5de3edc46327eb18b300b92c2
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Sat May 14 09:10:13 2011 -0700

    Add AC_LANG_DEFINES_PROVIDED to XORG_RAW_CPP to silence autoconf warnings
Comment 1 Alan Coopersmith 2011-06-03 08:51:59 UTC
Yes, we've been discussing on xorg-devel the best way to fix this for
users using autoconf older than the 2.67 release which added it.
Comment 3 Gaetan Nadon 2011-06-05 05:57:26 UTC
Fixed in util/macros commit 45c7d622657d295b2c02a46061765827ea37f00f

    XORG_PROG_RAWCPP: use AC_LANG_SOURCE to prevent warnings
    
    The source for the AC_LANG_CONFTEST should be passed to AC_LANG_SOURCE
    to satisfy the more stringent testing done by autoconf 2.68.
    It is available in autoconf 2.60 where AC_LANG_DEFINES_PROVIDED is not.

Available from git master
Comment 4 zhao jian 2011-06-06 20:11:19 UTC
(In reply to comment #3)
> Fixed in util/macros commit 45c7d622657d295b2c02a46061765827ea37f00f
> 
>     XORG_PROG_RAWCPP: use AC_LANG_SOURCE to prevent warnings
> 
>     The source for the AC_LANG_CONFTEST should be passed to AC_LANG_SOURCE
>     to satisfy the more stringent testing done by autoconf 2.68.
>     It is available in autoconf 2.60 where AC_LANG_DEFINES_PROVIDED is not.
> 
> Available from git master

verified with util/macros commit 45c7d622657d295b2c02a46061765827ea37f00f.


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.