consolekit/polkit problem

Joe Marcus Clarke marcus at marcuscom.com
Fri Mar 28 12:46:54 PDT 2008


On Fri, 2008-03-28 at 12:38 -0700, Kevin Downey wrote:
> On Fri, Mar 28, 2008 at 12:30 PM, Joe Marcus Clarke
> <marcus at marcuscom.com> wrote:
> > On Fri, 2008-03-28 at 12:29 -0700, Kevin Downey wrote:
> >  > On Fri, Mar 28, 2008 at 11:12 AM, Joe Marcus Clarke
> >  > <marcus at marcuscom.com> wrote:
> >  > > On Fri, 2008-03-28 at 18:49 +0100, Stefan Hauser wrote:
> >  > >  > > XDG_SESSION_COOKIE should be set by gdm.  You can do a ps -auwwex and
> >  > >  > > grep for gnome-session to see that it's being set in the environment.
> >  > >  >
> >  > >  > tadaaa.. i did the ps and saw nothing.. there was no procfs mouted.
> >  > >  > now with /proc, everything runs as expected...
> >  > >
> >  > >  Yeah, procfs IS REQUIRED for GNOME.  Sucks, I know, but until we have a
> >  > >  replacement for /proc/PID/file on all supported versions of FreeBSD,
> >  > >  we're stuck with it.
> >  > >
> >  > >  Joe
> >  > >
> >  >
> >  > so procfs is required for GNOME,
> >  > That means you have to choose between java and gnome?
> >
> >  I use both on my workstation with /proc mounted and I don't have a
> >  problem.  Where does it state that the /proc and Java don't mix?
> >
> >
> >
> >  Joe
> >
> >  --
> >  PGP Key : http://www.marcuscom.com/pgp.asc
> >
> 
> I forgot where I read it, but I was having trouble getting java to
> work and I googled and found a site that said they don't mix. When I
> unmounted /proc java started working.
> 
> 
> kpd at eskarina ~/clojure_20080213% java -version
> java version "1.5.0_14-p8"
> Java(TM) 2 Runtime Environment, Standard Edition (build
> 1.5.0_14-p8-root_28_feb_2008_23_34)
> Java HotSpot(TM) Server VM (build 1.5.0_14-p8-root_28_feb_2008_23_34,
> mixed mode)
> kpd at eskarina ~/clojure_20080213% java -cp
> /usr/local/share/java/classes/jline.jar:clojure.jar
> jline.ConsoleRunner clojure.lang.Repl
> Clojure
> user=> (+ 1 3)
> 4
> user=>
> kpd at eskarina ~/clojure_20080213% sudo mount -t procfs null /proc
> kpd at eskarina ~/clojure_20080213% java -cp
> /usr/local/share/java/classes/jline.jar:clojure.jar
> jline.ConsoleRunner clojure.lang.Repl
> Error: could not find libjava.so
> Error: could not find Java 2 Runtime Environment.
> zsh: exit 2     java -cp /usr/local/share/java/classes/jline.jar:clojure.jar
> kpd at eskarina ~/clojure_20080213%

I've never seen this.  I'm running RELENG_7:

java version "1.5.0_14-p8"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0_14-p8-marcus_23_feb_2008_12_31)
Java HotSpot(TM) Server VM (build 1.5.0_14-p8-marcus_23_feb_2008_12_31,
mixed mode)

% cat hello.java
public class hello {
    public static void main(String argv[]) {
	System.out.println("hello");
    }
}
% javac hello.java
% java -cp /home/marcus hello
hello
% mount
...
procfs on /proc (procfs, local)
...

That said, I do see the JVM access /proc/curproc/file.  Right after
this, it tries to access /usr/local/jdk1.5.0/lib/i386/libjava.so which
fails.  But then right after that, it successfully
accesses /usr/local/jdk1.5.0/jre/lib/i386/libjava.so.  I'd be interested
to see what your ktrace -d -i looks like.

Joe

-- 
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20080328/12491605/attachment.pgp


More information about the freebsd-gnome mailing list