BUILD_HEADLESS_ONLY (original) (raw)
David Holmes david.holmes at oracle.com
Tue Mar 6 12:05:50 UTC 2012
- Previous message (by thread): BUILD_HEADLESS_ONLY
- Next message (by thread): BUILD_HEADLESS_ONLY
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 toawtFreeDrawingSurface'_ _jawt.c:(.text+0x49): undefined reference to
awtLock' jawt.c:(.text+0x52): undefined reference toawtUnlock'_ _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 BUILD_HEADLESS_ONLY 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 BUILD_HEADLESS 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 ALT_OPENWIN_PATH.
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
- Previous message (by thread): BUILD_HEADLESS_ONLY
- Next message (by thread): BUILD_HEADLESS_ONLY
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]