BUILD_HEADLESS_ONLY (original) (raw)

martin burtscher mar.burtscher at gmail.com
Tue Mar 6 14:17:33 UTC 2012


Am 6. März 2012 13:05 schrieb David Holmes <david.holmes at oracle.com>:

On 6/03/2012 8:16 PM, martin burtscher wrote:

Hello,

i get the following error when i try to compile openjdk7: /home/marty/openjdk/build/linux-i586/tmp/sun/sun.awt/ jawt/obj/jawt.o -L/home/marty/openjdk/build/**linux-i586/lib/i386 -lawt -L/home/marty/openjdk/build/**linux-i586/lib/i386/headless -lmawt -ljava -L/home/marty/openjdk/build/**linux-i586/lib/i386/server -ljvm -lc /home/marty/openjdk/build/**linux-i586/tmp/sun/sun.awt/**jawt/obj/jawt.o: In function JAWTGetAWT':_ _jawt.c:(.text+0x2a): undefined reference to awtGetDrawingSurface' jawt.c:(.text+0x39): undefined reference to awtFreeDrawingSurface'_ _jawt.c:(.text+0x49): undefined reference to awtLock' jawt.c:(.text+0x52): undefined reference to awtUnlock'_ _jawt.c:(.text+0x5b): undefined reference to awtGetComponent' collect2: ld returned 1 exit status make[4]: *** [/home/marty/openjdk/build/**linux-i586/lib/i386/libjawt.**so] Error 1 make[4]: Leaving directory /home/marty/openjdk/jdk/make/**sun/jawt'_ _make[3]: *** [all] Error 1_ _make[3]: Leaving directory /home/marty/openjdk/jdk/make/**sun i dont think this is a known issue, because i couldn't find anything about it. But what i'm really wondering is, that it's compiling awt altough i try to build it headless. Heres how i start the build: make LANG=C ALTBOOTDIR=/usr/lib/jvm/java-**6-openjdk ALLOWDOWNLOADS=true BUILDHEADLESSONLY=true CROSSCOMPILEARCH=i586 ALTCOMPILERPATH=/usr/bin Don't use BUILDHEADLESSONLY it isn't really part of the OpenJDK build. It's an artifact of embedded builds for platforms where there are no graphics headers or libs available at build time - and may not even still work correctly. Normal OpenJDK builds will build both headless and headful (by setting BUILDHEADLESS true). Why are you cross-compiling for x86 on linux-x86 using the local build tools ??? By doing this you've lost the defaults paths to the X11 headers etc and so need to set ALTOPENWINPATH. David ----- As it doesn't seem to happen to someone else, i think its probably a configuration problem by myself. But i really have no idea what i could be. Any ideas are welcome. Greetz Marty Hello,

if I use BUILD_HEADLESS=true the awt packages are included and useable. So either I understand BUILD_HEADLESS wrong or it doesnt do what its supposed to do.

Second point is: Why do i need ALT_OPENWIN_HOME? I wanna build it headless, so there's no use of X11. I removed the CROSS_COMPILE options to test the headless build. (Just try to use the cross compile to be sure its working before i use a different compiler...) btw: changing ALT_OPENWIN_HOME doesnt change anything with the errors (Xrender.h missing) i'll get when im using crosscompile.

Greetz Marty -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20120306/28fbbabd/attachment.htm>



More information about the build-dev mailing list