<div dir="ltr"><div class="gmail_extra"><span class="gmail-"></span>Dan,<br><br></div><div class="gmail_extra"><span class="gmail-"></span><div class="gmail_quote"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span class="gmail-">
</span>How did you get openjdk8 to compile on OmniOS?  We thought about moving off of openjdk7, but had Real Problems (TM) making it happen.  Did you bootstrap with an Oracle binary?<span class="gmail-HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div><br></div><div class="gmail_extra">So the following should work. Apart from the beefit in OmniOS having a current<br>JDK, I wanted to be sure we could build from scratch just in case the Oracle<br>binaries stopped working for any reason.<br><br>This is on a vanilla r151014, updated to current. I'm Primary Administrator and have<br>a private copy of Studio 12u1 under $HOME, so the java bootstrap is the java7 that<br>ships with omnios.</div><div class="gmail_extra"><br></div><div class="gmail_extra">To get the sources:<br><br><br></div><div class="gmail_extra">wget <a href="http://hg.openjdk.java.net/jdk8u/jdk8u/archive/jdk8u112-b15.tar.bz2">http://hg.openjdk.java.net/jdk8u/jdk8u/archive/jdk8u112-b15.tar.bz2</a><br>foreach file ( corba hotspot jaxp jaxws langtools jdk nashorn )<br>wget <a href="http://hg.openjdk.java.net/jdk8u/jdk8u/${file}/archive/jdk8u112-b15.tar.bz2">http://hg.openjdk.java.net/jdk8u/jdk8u/${file}/archive/jdk8u112-b15.tar.bz2</a> -O ${file}-jdk8u112-b15.tar.bz2<br>end<br>bzcat jdk8u112-b15.tar.bz2 | tar xf -<br>mv jdk8u-jdk8u112-b15 openjdk8u112<br>foreach file ( corba hotspot jaxp jaxws langtools jdk nashorn )<br>bzcat ${file}-jdk8u112-b15.tar.bz2 | tar xf -<br>mv ${file}-jdk8u112-b15 openjdk8u112/$file<br>end<br><br><br></div><div class="gmail_extra">Install the 64-bit pkgsrc bootstrap<br><a href="https://pkgsrc.joyent.com/install-on-illumos/">https://pkgsrc.joyent.com/install-on-illumos/</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Install appropriate pkgsrc and omnios packages.<br></div><div class="gmail_extra">There was a little trial and error to get this list...<br><br>pfexec pkg install developer/build/gnu-make system/header system/header/header-audio developer/macro/cpp developer/object-file developer/gnu-binutils<br><br>pfexec /opt/local/bin/pkgin -y update<br>pfexec /opt/local/bin/pkgin -y install libX11 libXrender renderproto libXext libXtst libXt xproto xextproto inputproto kbproto cups freetype2<br><br>Fix up some errant stupidities:<br><br>pfexec mv /usr/bin/gobjcopy /usr/bin/not-gobjcopy-honestly<br>pfexec ln -s /opt/local/include/X11 /usr/include<br>pfexec ln -s /opt/local/lib/libX11.so* /usr/lib/amd64<br>pfexec ln -s /opt/local/lib/libXext.so* /usr/lib/amd64<br>pfexec ln -s /opt/local/lib/libXrender.so* /usr/lib/amd64<br><br></div><div class="gmail_extra">[Note: the gobjcopy thing is the only true magic here. You don't need the X11<br></div><div class="gmail_extra">symlinks for configure, but the build will fail as it doesn't seem to pass along the<br></div><div class="gmail_extra">locations of the X11 libs and includes correctly.]<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">cd to the openjdk8u112 directory from your download.<br><br>env PATH=${HOME}/sunstudio12.1/bin:/usr/bin:/usr/sbin bash ./configure --with-milestone=fcs --with-update-version=112 --with-build-number=b15 --enable-unlimited-crypto --x-includes=/opt/local/include --x-libraries=/opt/local/lib --with-cups=/opt/local --with-freetype-include=/opt/local/include/freetype2 --with-freetype-lib=/opt/local/lib<br><br>env PATH=${HOME}/sunstudio12.1/bin:/usr/bin:/usr/sbin gmake all<br><br></div><div class="gmail_extra">and the built image is in<br><br>build/solaris-x86_64-normal-server-release/images/j2sdk-image<br><br></div><div class="gmail_extra">Then there's a little tinkering with sunpkcs11-solaris.cfg, and you'll need<br></div><div class="gmail_extra">a full copy of cacerts, but otherwise you should be good to go.<br clear="all"></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature">-Peter Tribble<br><a target="_blank" href="http://www.petertribble.co.uk/">http://www.petertribble.co.uk/</a> - <a target="_blank" href="http://ptribble.blogspot.com/">http://ptribble.blogspot.com/</a></div>
</div></div>