RFR: JDK-8062521: 9-dev glinux/elinux "configure: error: Could not find all X11 headers" since 2014-10-28
erik.joelsson at oracle.com
Thu Oct 30 11:40:24 UTC 2014
In my fix for "JDK-8062159 Fix Xrender check to work with sysroot", I
added $SYSROOT_CFLAGS to the CFLAGS used when looking for X11 headers.
Unfortunately, this didn't work with at least one of the cross compile
kits we use. The reason for the failure is in the definition of
It adds explicit extra quotes around the value. These quotes seem to not
be a problem when the variable is used in a recipe in make, but when the
variable is used directly in the shell from configure, the extra quotes
become part of the argument to gcc. Gcc will fail resolving the path and
the test for X11 headers fails.
I see no reason for having these quotes other than if we expected spaces
in the path to the sysroot, which I sure hope we aren't, as we do not
employ any such protection for any other paths that I know of. The fix
is then simply to remove the extra quotes when using gcc. I chose not to
change the other defintions of the variable as they seem to be working.
diff -r ce3b04a39f79 common/autoconf/flags.m4
@@ -136,8 +136,8 @@
elif test "x$TOOLCHAIN_TYPE" = xgcc; then
elif test "x$TOOLCHAIN_TYPE" = xclang; then
More information about the build-dev