Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 May 2011 18:44:21 +1000 (EST)
From:      Peter Jeremy <peterjeremy@acm.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        peter@vk2pj.dyndns.org
Subject:   ports/156905: java/jdk15 doesn't build with latest open-motif
Message-ID:  <201105090844.p498iL5D041150@server.vk2pj.dyndns.org>
Resent-Message-ID: <201105091050.p49Ao5nZ052975@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         156905
>Category:       ports
>Synopsis:       java/jdk15 doesn't build with latest open-motif
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 09 10:50:04 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Peter Jeremy
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
n/a
>Environment:
System: FreeBSD server.vk2pj.dyndns.org 8.2-STABLE FreeBSD 8.2-STABLE #11: Fri Apr 22 11:55:58 EST 2011 root@server.vk2pj.dyndns.org:/var/obj/usr/src/sys/server amd64

>Description:

Following the recent update to open-motif-2.3.3, jdk15 no longer
builds.  open-motif now depends on and uses xft but jave does not
handle this dependency.  The failing point is:

/usr/bin/gcc -O2 -fno-strict-aliasing -fPIC -W -Wall  -Wno-unused -Wno-parentheses -pipe -fno-omit-frame-pointer -DMLIB_NO_LIBSUNMATH -DMOTIF_VERSION=2 -DXMSTRINGDEFINES=1 -DMOTIF_VERSION=2  -Damd64 -DARCH='"amd64"' -DRELEASE='"1.5.0_16-p9"' -DFULL_VERSION='"1.5.0_16-p9-peter_07_may_2011_08_28"' -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -D_ALLBSD_SOURCE  -D_LP64=1 -I. -I/tank/obj/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/CClassHeaders -I../../../src/solaris/javavm/export -I../../../src/share/javavm/export -I../../../src/share/javavm/include -I../../../src/solaris/javavm/include -I../../../src/share/native/common -I../../../src/solaris/native/common -I../../../src/share/native/sun/awt -I../../../src/solaris/native/sun/awt   -I/usr/local/include -I/usr/local/include  -I../../../src/share/native/sun/awt/debug -I../../../src/share/native/sun/awt/../font -I../../../src/solaris/native/sun/awt/../font -I../../../src/share/native/sun/awt/image -I../..!
 /../src/share/native/sun/awt/image/cvutils -I../../../src/share/native/sun/awt/shell -I../../../src/share/native/sun/awt/alphacomposite -I../../../src/share/native/sun/awt/medialib -I../../../src/solaris/native/sun/awt/medialib -I../../../src/share/native/sun/awt/../java2d -I../../../src/solaris/native/sun/awt/../java2d -I../../../src/share/native/sun/awt/../java2d/loops -I../../../src/share/native/sun/awt/../java2d/pipe -I../../../src/share/native/sun/awt/../java2d/opengl -I../../../src/solaris/native/sun/awt/../java2d/opengl -I../../../src/share/native/sun/awt/../dc/doe -I../../../src/share/native/sun/awt/../dc/path -I../../../src/solaris/native/sun/awt/../jdga  -I/usr/local/include -I/usr/local/include/X11/extensions -DX11DIR=\"/usr/local\" -DLOCALDIR=\"/usr/local\"  -c -o /tank/obj/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/awt_TextField.o  ../../../src/solaris/native/sun/awt/awt_TextField.c
In file included from ../../../src/solaris/native/sun/awt/awt_TextField.c:25:
../../../src/solaris/native/sun/awt/awt_TextField.h:13: warning: useless storage class specifier in empty declaration
In file included from /usr/local/include/X11/Xft/Xft.h:39,
                 from /usr/local/include/Xm/TextFP.h:47,
                 from ../../../src/solaris/native/sun/awt/awt_TextField.c:31:
/usr/local/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory
In file included from /usr/local/include/Xm/TextFP.h:47,
                 from ../../../src/solaris/native/sun/awt/awt_TextField.c:31:
/usr/local/include/X11/Xft/Xft.h:40:10: error: #include expects "FILENAME" or <FILENAME>
In file included from /usr/local/include/Xm/TextFP.h:47,
                 from ../../../src/solaris/native/sun/awt/awt_TextField.c:31:

The include of /usr/local/include/X11/Xft/Xft.h is new with
open-motif-2.3.3:  /usr/local/include/Xm/TextFP.h now contains
 #ifdef USE_XFT
 #include <X11/Xft/Xft.h>
 #endif
and USE_XFT is defined by /usr/local/include/Xm/Xm.h which is earlier
included via the "#include <Xm/VirtKeys.h>" from awt_TextField.c

<freetype/config/ftheader.h> exists on the system but print/freetype2
installs it into /usr/include/freetype2 which isn't in the search path.

>How-To-Repeat:
	cd /usr/ports/java/jdk15 && make
>Fix:
	unknown
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105090844.p498iL5D041150>