Hi all, We have a custom system running on FreeBSD 6.3 on which we need to run a java package which is developed using Java 7 features introduced after 2010. We have taken the tip source of openjdk-7u6 from http://hg.openjdk.java.net/bsd-port/bsd-port/jdk/
Here is how we are running the build of this java code: JDK_PATH=/root/openjdk6 gmake ARCH=i586 ARCH_DATA_MODEL=32 PLATFORM=bsd COMPILER_PATH=/usr/bin CC_VERSION=gcc BOOTDIR=$JDK_PATH SLASH_JAVA=/ JDK_IMPORT_PATH=$JDK_PATH CACERTS_FILE=~/openjdk-7u6/jdk/src/share/lib/security/cacerts CC=/usr/bin/cc ALT_FREETYPE_HEADERS_PATH=/usr/local/include ALT_FREETYPE_LIB_PATH=/usr/local/lib LIBARCH=i386 ARCH_FAMILY=i586 ARCHPROP=x86 OS_VERSION=6.3 ANT_HOME=/usr/local ALT_HOTSPOT_IMPORT_PATH=$JDK_PATH clean jdk_only The build always stops with the following error messages: /root/openjdk-7u6/build/bsd-i586/lib/i386/client/libjvm.so: libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x48a79000) libm.so.4 => /lib/libm.so.4 (0x48b44000) RUNPATH for: /root/openjdk-7u6/build/bsd-i586/lib/i386/client/libjvm.so 0x00000001 (NEEDED) Shared library: [libstdc++.so.5] 0x00000001 (NEEDED) Shared library: [libm.so.4] ASSEMBLY_IMPORT: /root/openjdk-7u6/build/bsd-i586/lib/i386/client/Xusage.txt mkdir -p /root/openjdk-7u6/build/bsd-i586/lib/i386/client rm -f /root/openjdk-7u6/build/bsd-i586/lib/i386/client/Xusage.txt cp /root/openjdk6/jre/lib/i386/client/Xusage.txt /root/openjdk-7u6/build/bsd-i586/lib/i386/client/Xusage.txt ASSEMBLY_IMPORT: /root/openjdk-7u6/build/bsd-i586/lib/i386/libjsig.so mkdir -p /root/openjdk-7u6/build/bsd-i586/lib/i386 rm -f /root/openjdk-7u6/build/bsd-i586/lib/i386/libjsig.so cp /root/openjdk6/jre/lib/i386/libjsig.so /root/openjdk-7u6/build/bsd-i586/lib/i386/libjsig.so Checking for mapfile use in: /root/openjdk-7u6/build/bsd-i586/lib/i386/libjsig.so WARNING: File was not built with a mapfile: /root/openjdk-7u6/build/bsd-i586/lib/i386/libjsig.so Library loads for: /root/openjdk-7u6/build/bsd-i586/lib/i386/libjsig.so /root/openjdk-7u6/build/bsd-i586/lib/i386/libjsig.so: RUNPATH for: /root/openjdk-7u6/build/bsd-i586/lib/i386/libjsig.so gmake[5]: *** [/root/openjdk-7u6/build/bsd-i586/lib/i386/libjsig.so] Error 1 gmake[5]: Leaving directory `/root/openjdk-7u6/jdk/make/java/redist' gmake[4]: *** [all] Error 1 gmake[4]: Leaving directory `/root/openjdk-7u6/jdk/make/java' gmake[3]: *** [all] Error 1 gmake[3]: Leaving directory `/root/openjdk-7u6/jdk/make' gmake[2]: *** [jdk-build] Error 2 gmake[2]: Leaving directory `/root/openjdk-7u6' gmake[1]: *** [build_product_image] Error 2 gmake[1]: Leaving directory `/root/openjdk-7u6' gmake: *** [jdk_only] Error 2 Can anyone guide me on how to go about compiling this Java version on FreeBSD 6.3, it's a specific requirement so I don't have an option of changing my FreeBSD version and neither will our java program run on any version of Java 7 without the 2010 features. I have earlier tried running Java 7 from: http://ftp.riken.jp/pub/FreeBSD/ports/i386/packages-6-stable/java/openjdk-7.0.117.tbz but it didn't run our service properly as the Java Features were missing. I look forward to a reply, Regards, Shubhanshu Mishra