From owner-freebsd-ports@FreeBSD.ORG Sat May 19 14:05:43 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4CBA01065673; Sat, 19 May 2012 14:05:43 +0000 (UTC) (envelope-from horst.leitenmueller@liwest.at) Received: from lilzmailso02.liwest.at (lilzmailso02.liwest.at [212.33.55.13]) by mx1.freebsd.org (Postfix) with ESMTP id CFE6D8FC0A; Sat, 19 May 2012 14:05:42 +0000 (UTC) Received: from [90.146.7.130] (helo=[192.168.10.21]) by lilzmailso02.liwest.at with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1SVkIZ-0001tD-Ox; Sat, 19 May 2012 16:06:24 +0200 Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=iso-8859-1 From: Horst Leitenmueller In-Reply-To: <20120519100620.4f7660b7@davenulle.org> Date: Sat, 19 May 2012 16:05:35 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <4A19DF58-AAA0-4D59-8FD1-B87BA7311FCD@liwest.at> References: <907F19BE-DB86-42A7-A153-60830A5CD5CC@liwest.at> <20120519100620.4f7660b7@davenulle.org> To: Patrick Lamaiziere X-Mailer: Apple Mail (2.1084) X-Spam-Score: -1.4 (-) Cc: java@freebsd.org, glewis@FreeBSD.org, freebsd-ports@freebsd.org Subject: Re: Procfs in Jail on fresh install of openjdk6 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 May 2012 14:05:43 -0000 Hi Thanks; but i'm not shure if this is the problem, for me just not clear why then the procfs must be enabled ? this is the hint in build of openjdk6 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This OpenJDK implementation requires fdescfs(5) mounted on /dev/fd and procfs(5) mounted on /proc. If you have not done it yet, please do the following: mount -t fdescfs fdesc /dev/fd mount -t procfs proc /proc To make it permanent, you need the following lines in /etc/fstab: fdesc /dev/fd fdescfs rw 0 0 proc /proc procfs rw 0 0 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D i enabled it for jails jail_jboss6_fdescfs_enable=3D"YES" # mount fdescfs in the = jail jail_jboss6_procfs_enable=3D"YES" # mount procfs in jail and it will be mounted as this devfs 1.0K 1.0K = 0B 100% /usr/jails/jboss6/dev fdescfs 1.0K 1.0K = 0B 100% /usr/jails/jboss6/dev/fd procfs 4.0K 4.0K = 0B 100% /usr/jails/jboss6/proc =3D> not nullfs ? or do i understand something wrong ? br horst On 19.05.2012, at 10:06, Patrick Lamaiziere wrote: > Le Fri, 18 May 2012 09:22:31 +0200, > Horst Leitenmueller a =E9crit : >=20 > Hello >=20 >> i have a question regarding the hint that procfs must be enabled on >> openjdk6 >>=20 >> if this is already mounted before installation of openjdk6 the build >> fails with: >=20 >> build Error: could not find libjava.so Error: could not find Java 2 >=20 > Not sure if this is related but java uses /proc/curproc/file to = retrieve > the path of its libraries. This failed when a nullfs mount is used. >=20 > I was hited by this: > http://www.freebsd.org/cgi/query-pr.cgi?pr=3Ddocs/157234 >=20 > Regards.