Date: Sat, 19 May 2012 16:05:35 +0200 From: Horst Leitenmueller <horst.leitenmueller@liwest.at> To: Patrick Lamaiziere <patfbsd@davenulle.org> Cc: java@freebsd.org, glewis@FreeBSD.org, freebsd-ports@freebsd.org Subject: Re: Procfs in Jail on fresh install of openjdk6 Message-ID: <4A19DF58-AAA0-4D59-8FD1-B87BA7311FCD@liwest.at> In-Reply-To: <20120519100620.4f7660b7@davenulle.org> References: <907F19BE-DB86-42A7-A153-60830A5CD5CC@liwest.at> <20120519100620.4f7660b7@davenulle.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <horst.leitenmueller@liwest.at> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A19DF58-AAA0-4D59-8FD1-B87BA7311FCD>