From owner-freebsd-questions@FreeBSD.ORG Sat Apr 14 20:20:18 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8D5F216A406 for ; Sat, 14 Apr 2007 20:20:18 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by mx1.freebsd.org (Postfix) with ESMTP id 6BA3613C489 for ; Sat, 14 Apr 2007 20:20:18 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout3.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l3EKKHMH008971 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 14 Apr 2007 13:20:17 -0700 X-Auth-Received: from [192.168.10.45] (c-24-7-142-221.hsd1.ca.comcast.net [24.7.142.221]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l3EKKH1G027717 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 14 Apr 2007 13:20:17 -0700 Message-ID: <4621379B.5060905@u.washington.edu> Date: Sat, 14 Apr 2007 13:20:43 -0700 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <45EA2817.8060501@accesswave.ca> <45EA30E6.9030005@accesswave.ca> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.0.289146, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.4.14.130735 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: FreeBSD Native JDK/JRE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Apr 2007 20:20:18 -0000 patrick wrote: > You could also just install the pre-built, Sun-sanctioned build: > > http://www.freebsdfoundation.org/downloads/java.shtml > > On 3/3/07, Chris Bowlby wrote: >> Hi, >> >> As luck would have it, 2 minutes after posting this message, I managed >> to find this URL: >> >> http://lists.freebsd.org/pipermail/freebsd-questions/2006-August/129252.html >> >> >> Which addresses most of my issues, now I just have to work past a >> compiler error (I think due to sun-jdk-1.4 having been installed).. >> >> Thanks. >> >> Chris Bowlby wrote: >> > Hi, >> > >> > I've been attempting to install java/jdk15 into a jail under FreeBSD >> > 6.2 and have been running into some issues. I have appended a trimmed >> > out version of the output I get during an installation to the end of >> > the message. >> > >> > From what I can tell, it's attempting to install some Linux emulation >> > components and this is where I get stuck. I've not been able to find >> > any information that would help me either manually mount the >> > partitions so they are visible inside a jail (I am not sure if this is >> > even possible anymore), or to work around this particular issue and >> > just do a native installation. >> > >> > Can anyone offer up any help? >> > >> > >> > mail# portinstall java/jdk15 >> > ---> Installing 'jdk-1.5.0p4' from a port (java/jdk15) >> > ---> Building '/usr/ports/java/jdk15' >> > ===> Cleaning for unzip-5.52_2 >> > ===> Cleaning for m4-1.4.8_1 >> > ===> Cleaning for zip-2.32 >> > ===> Cleaning for open-motif-2.2.3_2 >> > ===> Cleaning for linux-sun-jdk-1.4.2.13 >> > ===> Cleaning for gmake-3.81_1 >> > ===> Cleaning for libiconv-1.9.2_2 >> > ===> Cleaning for javavmwrapper-2.3 >> > ===> Cleaning for libtool-1.5.22_3 >> > ===> Cleaning for xorg-libraries-6.9.0_1 >> > ===> Cleaning for imake-6.9.0_1 >> > ===> Cleaning for linux_base-fc-4_9 >> > ===> Cleaning for linux-xorg-libs-6.8.2_5 >> > ===> Cleaning for gettext-0.14.5_2 >> > ===> Cleaning for libdrm-2.0.2 >> > ===> Cleaning for freetype2-2.2.1_1 >> > ===> Cleaning for fontconfig-2.3.2_6,1 >> > ===> Cleaning for perl-5.8.8 >> > ===> Cleaning for rpm-3.0.6_13 >> > ===> Cleaning for linux-fontconfig-2.2.3_5 >> > ===> Cleaning for pkg-config-0.21 >> > ===> Cleaning for expat-2.0.0_1 >> > ===> Cleaning for automake-1.4.6_2 >> > ===> Cleaning for autoconf-2.13.000227_5 >> > ===> Cleaning for popt-1.7_2 >> > ===> Cleaning for linux-expat-1.95.8 >> > ===> Cleaning for jdk-1.5.0p4 >> > ===> Vulnerability check disabled, database not found >> > ===> Found saved configuration for jdk-1.5.0p4 >> > >> > IMPORTANT: To build JDK 1.5.0 port, you should have at least >> > 2.5Gb of free disk space in build area! >> > >> > IMPORTANT: To build JDK 1.5.0 port, you should have linux emulation >> > enabled in the kernel and linux procfs (linprocfs) filesystem >> > mounted. >> > >> > ===> Extracting for jdk-1.5.0p4 >> > => MD5 Checksum OK for jdk-1_5_0-src-scsl.zip. >> > => SHA256 Checksum OK for jdk-1_5_0-src-scsl.zip. >> > => MD5 Checksum OK for jdk-1_5_0-bin-scsl.zip. >> > => SHA256 Checksum OK for jdk-1_5_0-bin-scsl.zip. >> > => MD5 Checksum OK for bsd-jdk15-patches-4.tar.bz2. >> > => SHA256 Checksum OK for bsd-jdk15-patches-4.tar.bz2. >> > ===> jdk-1.5.0p4 depends on executable in : unzip - found >> > ===> Patching for jdk-1.5.0p4 >> > Hmm... Looks like a unified diff to me... >> > The text leading up to this was: >> > -------------------------- >> > |Index: control/make/Makefile >> > |=================================================================== >> > |RCS file: /var/jcvs/javasrc_1_5_scsl/control/make/Makefile,v >> > |retrieving revision 1.1.1.1 >> > |retrieving revision 1.3 >> > |diff -u -r1.1.1.1 -r1.3 >> > |--- control/make/Makefile 8 Nov 2004 22:26:52 -0000 >> 1.1.1.1 >> > |+++ control/make/Makefile 23 Dec 2004 19:28:25 -0000 1.3 >> > -------------------------- >> > Patching file control/make/Makefile using Plan A... >> > Hunk #1 succeeded at 12. >> > Hunk #2 succeeded at 69. >> > Hmm... The next patch looks like a unified diff to me... >> > The text leading up to this was: >> > <... SNIP ...> >> > done >> > ===> Applying FreeBSD patches for jdk-1.5.0p4 >> > /usr/bin/sed -i.bak -e "s:%%PREFIX%%:/usr/local:g" -e >> > "s:%%JDK_VERSION%%:1.5.0:g" >> > >> /usr/ports/java/jdk15/work/control/make/../../deploy/src/plugin/solaris/controlpanel/sun_java.desktop >> >> > >> > ===> jdk-1.5.0p4 depends on executable in : gm4 - found >> > ===> jdk-1.5.0p4 depends on executable in : zip - found >> > ===> jdk-1.5.0p4 depends on file: /usr/X11R6/lib/libXm.so - found >> > ===> jdk-1.5.0p4 depends on file: >> > /usr/local/linux-sun-jdk1.4.2/bin/javac - found >> > ===> jdk-1.5.0p4 depends on executable in : gmake - found >> > ===> jdk-1.5.0p4 depends on shared library: iconv.3 - found >> > ===> Configuring for jdk-1.5.0p4 >> > ===> Building for jdk-1.5.0p4 >> > ERROR: You must have LINPROCFS mounted before >> > starting to build the native JDK 1.5.0. >> > >> > You may do it with the following commands: >> > >> > # kldload linprocfs >> > >> > and >> > >> > # mount -t linprocfs linprocfs /compat/linux/proc >> > >> > *** Error code 1 >> > >> > Stop in /usr/ports/java/jdk15. >> > ** Command failed [exit code 1]: /usr/bin/script -qa >> > /tmp/portinstall.7259.0 env make >> > ** Fix the problem and try again. >> > ** Listing the failed packages (*:skipped / !:failed) >> > ! java/jdk15 (unknown build error) >> > ---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed ports/diablo-jdk15 and ports/diablo-jre15 are only available for FreeBSD 5.x and 6.x (thought I should mention that). As for the patch error above I'd do what the error message says if you want to install / compile a Linux copy of the JDK. That's what happens when Sun and FreeBSD disagree on licensing issues :(.. -Garrett