From owner-freebsd-java Sun Jul 22 14:50:11 2001 Delivered-To: freebsd-java@freebsd.org Received: from sunysb.edu (dh198-236.dhcp.sunysb.edu [129.49.198.236]) by hub.freebsd.org (Postfix) with ESMTP id 20E9237B406 for ; Sun, 22 Jul 2001 14:50:06 -0700 (PDT) (envelope-from chris@sunysb.edu) Received: (from chris@localhost) by sunysb.edu (8.11.3/8.11.3) id f6MLnwF90491; Sun, 22 Jul 2001 17:49:58 -0400 (EDT) (envelope-from chris) From: Christopher Rued MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15195.19078.279362.308647@chris.xsb.com> Date: Sun, 22 Jul 2001 17:49:58 -0400 To: Christopher Rued Cc: Greg Lewis , freebsd-java@FreeBSD.ORG Subject: Re: Mozilla webclient 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> X-Mailer: VM 6.92 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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