Skip site navigation (1)Skip section navigation (2)
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>

index | next in thread | previous in thread | raw e-mail

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

======================================================================

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

======================================================================

i enabled it for jails

jail_jboss6_fdescfs_enable="YES"                # mount fdescfs in the jail
jail_jboss6_procfs_enable="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

=> 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 écrit :
> 
> Hello
> 
>> i have a question regarding the hint that procfs must be enabled on
>> openjdk6
>> 
>> if this is already mounted before installation of openjdk6 the build
>> fails with:
> 
>> build Error: could not find libjava.so Error: could not find Java 2
> 
> 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.
> 
> I was hited by this:
> http://www.freebsd.org/cgi/query-pr.cgi?pr=docs/157234
> 
> Regards.



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A19DF58-AAA0-4D59-8FD1-B87BA7311FCD>