<br><br><div class="gmail_quote">Am 6. März 2012 13:05 schrieb David Holmes <span dir="ltr"><<a href="mailto:david.holmes@oracle.com">david.holmes@oracle.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 6/03/2012 8:16 PM, martin burtscher wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
i get the following error when i try to compile openjdk7:<br>
<br>
    /home/marty/openjdk/build/<u></u>linux-i586/tmp/sun/sun.awt/<u></u>jawt/obj/jawt.o<br>
   -L/home/marty/openjdk/build/<u></u>linux-i586/lib/i386 -lawt<br>
-L/home/marty/openjdk/build/<u></u>linux-i586/lib/i386/headless -lmawt<br>
-ljava -L/home/marty/openjdk/build/<u></u>linux-i586/lib/i386/server -ljvm<br>
-lc<br>
/home/marty/openjdk/build/<u></u>linux-i586/tmp/sun/sun.awt/<u></u>jawt/obj/jawt.o:<br>
In function `JAWT_GetAWT':<br>
jawt.c:(.text+0x2a): undefined reference to `awt_GetDrawingSurface'<br>
jawt.c:(.text+0x39): undefined reference to `awt_FreeDrawingSurface'<br>
jawt.c:(.text+0x49): undefined reference to `awt_Lock'<br>
jawt.c:(.text+0x52): undefined reference to `awt_Unlock'<br>
jawt.c:(.text+0x5b): undefined reference to `awt_GetComponent'<br>
collect2: ld returned 1 exit status<br>
make[4]: *** [/home/marty/openjdk/build/<u></u>linux-i586/lib/i386/libjawt.<u></u>so] Error 1<br>
make[4]: Leaving directory `/home/marty/openjdk/jdk/make/<u></u>sun/jawt'<br>
make[3]: *** [all] Error 1<br>
make[3]: Leaving directory `/home/marty/openjdk/jdk/make/<u></u>sun<br>
<br>
i dont think this is a known issue, because i couldn't find anything<br>
about it. But what i'm really wondering is, that it's compiling awt<br>
altough i try to build it headless. Heres how i start the build:<br>
<br>
make LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-<u></u>6-openjdk<br>
ALLOW_DOWNLOADS=true BUILD_HEADLESS_ONLY=true CROSS_COMPILE_ARCH=i586<br>
ALT_COMPILER_PATH=/usr/bin<br>
</blockquote>
<br></div></div>
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).<br>

<br>
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.<br>
<br>
David<br>
-----<div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As it doesn't seem to happen to someone else, i think its probably a<br>
configuration problem by myself. But i really have no idea what i<br>
could be. Any ideas are welcome.<br>
<br>
Greetz<br>
<br>
Marty<br>
</blockquote>
</div></div></blockquote></div><br><div>Hello,</div><div><br></div><div>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.</div>
<div><br></div><div>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.</div>
<div><br></div><div>Greetz</div><div>Marty</div>