From owner-freebsd-java Sun Jul 22 13:14: 4 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 9618737B403 for ; Sun, 22 Jul 2001 13:13:59 -0700 (PDT) (envelope-from chris@sunysb.edu) Received: (from chris@localhost) by sunysb.edu (8.11.3/8.11.3) id f6MKDD552742; Sun, 22 Jul 2001 16:13:13 -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.13272.921265.427814@chris.xsb.com> Date: Sun, 22 Jul 2001 16:13:12 -0400 To: Greg Lewis Cc: Christopher Rued , freebsd-java@FreeBSD.ORG Subject: Re: Mozilla webclient In-Reply-To: <20010723032654.A2102@misty.eyesbeyond.com> References: <15194.31800.275932.992863@chris.xsb.com> <20010723032654.A2102@misty.eyesbeyond.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 > > 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). > > Whats a URL to download this from? http://www.mozilla.org/projects/blackwood/webclient/ I am trying to build Webclient 1.0. After I downloaded the Mozilla source, I ran ./configure with the options (which I gleaned from the mozilla port Makefile): --disable-cpp-exceptions --disable-cpp-exceptions --disable-cpp-rtti --disable-debug --disable-idltool --disable-jar-packaging --disable-md --disable-pedantic --disable-xterm-updates --enable-double-buffer --enable-editor --enable-mailnews --enable-mathml --enable-optimize --enable-pics --enable-svg --enable-tests --enable-toolkit=gtk --enable-x11-shm --with-jpeg=/usr/local --with-png=/usr/local --with-pthreads After I downloaded the Webclient source, I ran ./configure with the options (same as above, plus --with-java-supplement): --disable-cpp-exceptions --disable-cpp-exceptions --disable-cpp-rtti --disable-debug --disable-idltool --disable-jar-packaging --disable-md --disable-pedantic --disable-xterm-updates --enable-double-buffer --enable-editor --enable-mailnews --enable-mathml --enable-optimize --enable-pics --enable-svg --enable-tests --enable-toolkit=gtk --enable-x11-shm --with-jpeg=/usr/local --with-png=/usr/local --with-pthreads --with-java-supplement Other than that I followed the instructions as written. 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. I will take a look. Thanks. --Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message