openJDK7 build fails on 64bit cblfs linux
David Holmes
David.Holmes at oracle.com
Sun Apr 17 05:50:42 UTC 2011
luxInteg said the following on 04/17/11 07:32:
> For and Update:-
> =========
> I added
> OTHER_LDFLAGS += -liconv
> at line 61 of jdk/make/java/npt/Makefile
>
> and ran make like so
> make [ARCH_DATA_MODEL=64] OTHER_LDFLAGS=-liconv [ALT_OUTPUTDIR=/opt/openJDK]
I don't think you need to add it in both places. By setting it on the
command-line you augment any value set in the Makefile.
> and this is what resulted
> ########
> In file included from
> ../../../src/solaris/native/sun/awt/../java2d/opengl/GLXGraphicsConfig.h:30:0,
> from ../../../src/solaris/native/sun/awt/awt_p.h:82,
> from ../../../src/solaris/native/sun/awt/awt_MToolkit.c:26:
> ../../../src/solaris/native/sun/awt/../java2d/opengl/J2D_GL/glx.h:69:22: fatal
> error: X11/Xlib.h: No such file or directory
> compilation terminated.
Looks like your X11 header files are not in the usual/expected place.
Try setting ALT_OPENWIN_HOME to point to the "root" of your X11 headers.
Grep for ALT_OPENWIN_HOME to see what the expected location is.
> the build terminated earlier earlier that when this ix was applied.
> AND the system it seems is seen as 'solaris' as opposed to linux.
No, in the jdk repository (as opposed to the hotspot repository) the
"solaris" directory tree actually means "non-Windows" or "unix-like".
ifdefs are then used for solaris and linux specific code.
>
> advice would be appreciated
HTH
David Holmes
More information about the build-dev
mailing list