Date: Sun, 22 Jul 2001 17:49:58 -0400 From: Christopher Rued <c.rued@xsb.com> To: Christopher Rued <c.rued@xsb.com> Cc: Greg Lewis <glewis@eyesbeyond.com>, freebsd-java@FreeBSD.ORG Subject: Re: Mozilla webclient Message-ID: <15195.19078.279362.308647@chris.xsb.com> In-Reply-To: <15195.13272.921265.427814@chris.xsb.com> References: <15194.31800.275932.992863@chris.xsb.com> <20010723032654.A2102@misty.eyesbeyond.com> <15195.13272.921265.427814@chris.xsb.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Christopher Rued writes: > > > I followed the instructions given on the website and was able to get > > > everything compiled, but when I try to run it I get the following: > > > (I've reformatted it a little to make it more readable): > > > > > > $ ./runem > > > > > > /usr/local/jdk1.2.2/bin/java -native -Djava.library.path=/usr/home/chris/mozilla/mozilla/dist/bin -classpath /usr/local/jdk1.2.2/lib/tools.jar:/usr/local/jdk1.2.2/lib/rt.jar:/usr/home/chris/dom/java:/usr/home/chris/mozilla/mozilla/dist/bin/../classes org.mozilla.webclient.test.EmbeddedMozilla /usr/home/chris/mozilla/mozilla/dist/bin > > > > > > Creating new EmbeddedMozilla window > > > > > > constructed with binDir: /usr/home/chris/mozilla/mozilla/dist/bin url: http://www.mozilla.org/projects/blackwood/webclient/ > > > > > > Inside NativeLoaderStub.cpp::loadMainDll > > > > > > in BrowserControlCanvas setBounds: x = 0 y = 0 w = 640 h = 480 > > > > > > native library does implement webclient.WindowControl > > > > > > Can't setBounds(java.awt.Rectangle[x=0,y=0,width=639,height=479]) null > > > > > > /usr/libexec/ld-elf.so.1: /usr/home/chris/webclient/mozilla/dist/bin/libnspr4.so: Undefined symbol "pthread_mutex_lock" > > > > > > This last line seems to indicate that some function is missing from > > > some library. > > > > No, it just looks like the pthreads library wasn't linked in. > > > > > Has anyone tried this? Any ideas for a fix? > > > > Make sure libnspr4 is linked with the pthreads library (you need to use > > the -pthread flag to gcc). [SNIP] > You would think (I have not yet tried to wade through the Makefiles) > that the --with-pthreads would cause -pthread to be passed to gcc. It looks like -lpthread is passed to gcc, not -pthread. The weird thing is that, even without the patches, I am able to run the browser that I compile without any (apparent) problems. It's when I try to run the browser embedded in java that I get the error. I have applied the patches from the port, most applied cleanly -- the port uses a different version of the source. Let's see if that fixes anything. -- Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15195.19078.279362.308647>