From owner-freebsd-ports@FreeBSD.ORG Thu Jul 22 19:14:43 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A75816A4CE for ; Thu, 22 Jul 2004 19:14:43 +0000 (GMT) Received: from ack.Berkeley.EDU (ack.berkeley.edu [128.32.206.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC25F43D31 for ; Thu, 22 Jul 2004 19:14:42 +0000 (GMT) (envelope-from mhunter@ack.Berkeley.EDU) Received: (from mhunter@localhost) by ack.Berkeley.EDU (8.11.3/8.11.3) id i6MJEfZ15676; Thu, 22 Jul 2004 12:14:41 -0700 (PDT) Date: Thu, 22 Jul 2004 12:14:41 -0700 From: Mike Hunter To: Mark Linimon Message-ID: <20040722191441.GA14830@ack.Berkeley.EDU> References: <20040718170140.GA19238@ack.Berkeley.EDU> <20040722173026.GA8839@ack.Berkeley.EDU> <200407221318.19570.linimon@lonesome.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200407221318.19570.linimon@lonesome.com> User-Agent: Mutt/1.5.6i cc: freebsd-ports@freebsd.org Subject: [Solved] (Was: Firefox Compilation Problems ( _PT_PTHREAD_MUTEX_IS_LOCKED(lock->mutex))) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jul 2004 19:14:43 -0000 On Jul 22, "Mark Linimon" wrote: > What settings do you have in /etc/make.conf? (If you are doing this > from portupgrade, any settings in /usr/local/etc/pkgtools.conf will be > useful, as well.) Thanks for your reply. I was able to get the thing to build by running the command that core-dumped by hand under gdb cd /usr/ports.... gdb FreeBSD5.2_DBG.OBJ/shlibsign set args -v -i /usr/ports/www/firefox/work/mozilla/dist/lib/libsoftokn3.so ... success (firefox builds its own build tools as part of compiling...sigh) Don't know if the gdb part actually fixed it anything or if it was the by hand part that was key. So I got it to make and install, only to have it dump core upon startup with the same message as it was dumping with during build: Assertion failure: _PT_PTHREAD_MUTEX_IS_LOCKED(lock->mutex), at ptsynch.c:207 I went fishing and came across some trusty libmap.conf advice: http://lists.freebsd.org/pipermail/freebsd-gnome/2004-June/007159.html I added the following to my /etc/libmap.conf: [/usr/X11R6/lib/firefox/lib/firefox-0.9.1/firefox-bin] libpthread.so.1 libc_r.so.5 libpthread.so libc_r.so (notice that putting the firefox-bin binary file is important, it won't work if you put the script /usr/X11R6/bin/firefox) Everything is working now. Yeah. FTR this is my make.conf # -- use.perl generated deltas -- # # Created: Wed Sep 3 23:10:59 2003 # Setting to use base perl from ports: PERL_VER=5.6.1 PERL_VERSION=5.6.1 PERL_ARCH=mach NOPERL=yo NO_PERL=yo NO_PERL_WRAPPER=yo WITH_LIBMAP=yes My libmap.conf was all commented out at the time of the compile problem. My /usr/local/etc/pkgtools.conf seems pretty vanilla: module PkgConfig ENV['PORTSDIR'] ||= '/usr/ports' ENV['PACKAGES'] ||= ENV['PORTSDIR'] + '/packages' ENV['PKG_PATH'] ||= ENV['PACKAGES'] + '/All' SANITY_CHECK = true IGNORE_CATEGORIES = [ ] EXTRA_CATEGORIES = [ ] HOLD_PKGS = [ 'bsdpan-*', ] USE_PKGS = [ ] USE_PKGS_ONLY = [ ] ALT_PKGDEP = { } MAKE_ARGS = { } BEFOREBUILD = { } BEFOREDEINSTALL = { } AFTERINSTALL = { # Re-enable the X wrapper 'x11-servers/XFree86-4-Server' => sprintf( 'cd %s/bin && if [ -x Xwrapper-4 ]; then ln -sf Xwrapper-4 X; fi', x11base()), } PKG_SITES = [ pkg_site_mirror(), ] PORTUPGRADE_ARGS = ENV['PORTUPGRADE'] end So, the question that remains in my mind is why is firefox building itself (and its build tools) with the "wrong" threading libraries and how can that be influenced? Thanks again, Mike