Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Oct 1996 16:06:11 -0700
From:      John Polstra <jdp@polstra.com>
To:        nate@mt.sri.com
Cc:        max@wide.ad.jp, current@freefall.freebsd.org
Subject:   Re: kaffe problems
Message-ID:  <199610102306.QAA00370@austin.polstra.com>
In-Reply-To: <199610101955.NAA16866@rocky.mt.sri.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I changed the subject to something reasonable, since I inadvertently
got the thread going with a subject of "none".

Nate wrote:
> > Thanks.  If you can help me a little, I'll try to reproduce the
> > problem here.  I assume I need to install the "kaffe" and "jdk"
> > ports.
> 
> I just did because I could, and it works fine for me.  I was getting
> weird errors when I had a screwed up CLASSPATH and/or LD_LIBRARY_PATH,
> so I suspect those.

I installed the "jdk" and "kaffe" ports, and tried the HelloWorldApp
that came with kaffe.  It worked OK here.  Then I installed Max's
ld.so.hints file, and it still worked OK.

I did have problems at first.  As Nate said, it was caused by errors
in my environment.  The DESCR file from the kaffe port says to set
CLASSPATH to ".:/usr/local/share/kaffe/classes.zip".  However, that
is wrong, because it disagrees with the check in the Makefile, and
with the location where the jdk port actually puts the classes.zip
file.  (To fix it, change "kaffe" to "java".)

Also, LD_LIBRARY_PATH _must_ be set to include "/usr/local/lib", even if
you've already run ldconfig on that directory.

Both of these must be exported into the environment, of course.  If they
don't appear in the output of "printenv" then they're not exported.

Gdb worked OK for me, except that it did get an error when I entered
the "help set" command.  The version from ports/devel/gdb didn't
exhibit that problem.

I don't know what is going on with Max's system.  It is hard for
me to see how the presence or absence of /usr/local/lib/m3/FreeBSD2
in the ldconfig command line could make any difference to kaffe.
Max's output from "ldd" indicates that no libraries are being taken
from there, anyway.  I also don't understand the behavior of his
gdb.  Maybe he's got a hardware problem.  Maybe he's got a corrupted
libc.so.3.0.

I went over the recent changes to the dynamic linker and to ldconfig
again.  I still don't see any new problems.

I've about run out of ideas, until Max or somebody else can get more
information about what is happening when kaffe fails.

John
--
   John Polstra                                       jdp@polstra.com
   John D. Polstra & Co., Inc.                Seattle, Washington USA
   "Self-knowledge is always bad news."                 -- John Barth



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610102306.QAA00370>