From: Jeremy Puhlman <jpuhl...@mvista.com>

ALT_CUPS_HEADERS_PATH eventually gets added to some links as
-I/usr/include

If you are using the buildtools-extended-tarball, the limits.h
from the system gets included first then later the limits.h
from the buildtools tarball gets added again, but is missing
glibc definitions, if the system glibc is much older(centos7).

This leads to:
In file included from /usr/include/limits.h:124,
                 from /usr/include/sys/param.h:26,
                 from ../../../src/solaris/javavm/export/jvm_md.h:35,
                 from ../../../src/share/javavm/export/jvm.h:32,
                 from ../../../src/solaris/native/sun/awt/awt.h:33,
                 from ../../../src/solaris/native/sun/awt/awt_p.h:75,
                 from ../../../src/solaris/native/sun/awt/awt_MToolkit.c:26:
/build/buildtools/sysroots/x86_64-montavistasdk-linux/usr/include/limits.h:145:17:
 error: missing binary operator before token "("
  145 | #if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)

Signed-off-by: Jeremy Puhlman <jpuhl...@mvista.com>
---
 recipes-core/icedtea/icedtea7-native.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-core/icedtea/icedtea7-native.inc 
b/recipes-core/icedtea/icedtea7-native.inc
index b0b9419..ba94927 100644
--- a/recipes-core/icedtea/icedtea7-native.inc
+++ b/recipes-core/icedtea/icedtea7-native.inc
@@ -61,6 +61,7 @@ B = "${S}/build"
 # openjdk looks in /usr/include and /usr/lib for freetype by default.
 export ALT_FREETYPE_HEADERS_PATH = "${STAGING_INCDIR}/freetype2"
 export ALT_FREETYPE_LIB_PATH = "${STAGING_LIBDIR}"
+export ALT_CUPS_HEADERS_PATH = "${STAGING_INCDIR}"
 
 # libfreetype.so.6 is copied from STAGING_LIBDIR
 # which is already stripped.
-- 
2.20.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#85497): 
https://lists.openembedded.org/g/openembedded-devel/message/85497
Mute This Topic: https://lists.openembedded.org/mt/75220350/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to