From owner-freebsd-java Sun Jul 22 21:53:15 2001 Delivered-To: freebsd-java@freebsd.org Received: from mail.xmission.com (mail.xmission.com [198.60.22.22]) by hub.freebsd.org (Postfix) with ESMTP id CBEA537B401 for ; Sun, 22 Jul 2001 21:53:11 -0700 (PDT) (envelope-from glewis@misty.eyesbeyond.com) Received: from [166.70.9.91] (helo=misty.eyesbeyond.com) by mail.xmission.com with esmtp (Exim 3.22 #1) id 15OXiO-0003QI-00; Sun, 22 Jul 2001 22:53:09 -0600 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.3/8.11.3) id f6N4qvP04345; Mon, 23 Jul 2001 14:22:57 +0930 (CST) (envelope-from glewis) Date: Mon, 23 Jul 2001 14:22:56 +0930 From: Greg Lewis To: Christopher Rued Cc: Greg Lewis , freebsd-java@FreeBSD.ORG Subject: Re: Mozilla webclient Message-ID: <20010723142255.A4307@misty.eyesbeyond.com> References: <15194.31800.275932.992863@chris.xsb.com> <20010723032654.A2102@misty.eyesbeyond.com> <15195.13272.921265.427814@chris.xsb.com> <15195.19078.279362.308647@chris.xsb.com> <20010723084709.A3410@misty.eyesbeyond.com> <15195.43774.261412.856429@chris.xsb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <15195.43774.261412.856429@chris.xsb.com>; from c.rued@xsb.com on Mon, Jul 23, 2001 at 12:41:34AM -0400 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 On Mon, Jul 23, 2001 at 12:41:34AM -0400, Christopher Rued wrote: > Greg Lewis writes: > > > It looks like -lpthread is passed to gcc, not -pthread. > > > > Thats the correct flag for most OSes, but not FreeBSD :). > > Any idea why FreeBSD uses a different flag? FreeBSD has no libpthread. The pthread functionality is contained in libc_r. However, -lc_r isn't quite correct either, as there are issues with the linker still wanting -lc as well by default (it'll mostly work in general, but its not quite right according to discussions I've seen). The -pthread flag makes it all DTRT. > > > 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. > > > > It should, as I'd expect the mozilla patches to fix the linking flag > > to be -pthread. I'd be interested in hearing if this fixes the problem :). > > I applied the patches, but still: > > /usr/libexec/ld-elf.so.1: /usr/home/chris/webclient/mozilla/... > ...dist/bin/libnspr4.so: Undefined symbol "pthread_mutex_lock" > > -lpthread still shows up all over the Makefile in mozilla/nsprpub/pr/src. > > I guess I'll just have to manually modify the Makefile, and see if > that solves the problem. Hmmm. The port itself sets BSD_PTHREAD_LIBS="${PTHREAD_LIBS}" in the environment to configure and fixes the NSPR linking line in patch-qt. Have you got your environment set up correctly when you invoke configure? That good be a problem. Try setenv BSD_PTHREAD_LIBS '-pthread' before you configure (assuming patch-qt is applying ok) and see how that works. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Mobile: 0419 868 494 Information Technology Web : http://www.eyesbeyond.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message