Fix x11 header check (was: Re: New official README-builds.html)

Andrew Hughes gnu.andrew at redhat.com
Tue Mar 19 14:47:39 UTC 2013


----- Original Message -----
> On 03/15/2013 03:55 PM, Omair Majid wrote:
> > In file included from
> > /builddir/build/BUILD/java-1.8.0-openjdk/jdk8/build/jdk8.build/jdk/gensrc_x11wrappers/sizer.64.c:11:0:
> > /builddir/build/BUILD/java-1.8.0-openjdk/jdk8/jdk/src/solaris/native/sun/awt/awt_p.h:51:36:
> > fatal error: X11/extensions/Xrender.h: No such file or directory
> >  #include <X11/extensions/Xrender.h>
> 
> So this one turns out to be a bug in how we use AC_CHECK_HEADERS. If
> I
> remove the package that provides this header file on my machine,
> configure tells me that the header is missing but does not indicate
> an
> error:
> 
> checking for IceConnectionNumber in -lICE... yes
> checking for X11/extensions/shape.h... yes
> checking for X11/extensions/Xrender.h... no
> checking for X11/extensions/XTest.h... yes
> checking cups/cups.h usability... yes
> checking cups/cups.h presence... yes
> 
> The documentation for AC_CHECK_HEADERS [1] states:
> 
> """
> If action-if-found is given, it is additional shell code to execute
> when
> one of the header files is found
> """
> 
> So what happens is that as long as the last header in the list
> [X11/extensions/shape.h X11/extensions/Xrender.h
> X11/extensions/XTest.h]
> is found, X11_A_OK is set to "yes", and the build continues.
> 
> A one-line fix is:
> http://cr.openjdk.java.net/~omajid/webrevs/x11-header-check/00/
> 
> Thanks,
> Omair
> 
> [1]
> http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Generic-Headers.html
> --
> PGP Key: 66484681 (http://pgp.mit.edu/)
> Fingerprint = F072 555B 0A17 3957 4E95  0056 F286 F14F 6648 4681
> 

Looks good to me.

Needs a bug ID... sigh.
-- 
Andrew :)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F  8F91 3B96 A578 248B DC07




More information about the build-dev mailing list