From owner-freebsd-questions@FreeBSD.ORG Tue Feb 20 18:39:29 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 06ACA16A41B for ; Tue, 20 Feb 2007 18:39:29 +0000 (UTC) (envelope-from zhengyi@zhengyi.ath.cx) Received: from zhengyi.ath.cx (adsl-69-236-174-234.dsl.pltn13.pacbell.net [69.236.174.234]) by mx1.freebsd.org (Postfix) with ESMTP id E2BD213C4A3 for ; Tue, 20 Feb 2007 18:39:28 +0000 (UTC) (envelope-from zhengyi@zhengyi.ath.cx) Received: by zhengyi.ath.cx (Postfix, from userid 1001) id 567405081B; Tue, 20 Feb 2007 11:38:41 -0800 (PST) Date: Tue, 20 Feb 2007 11:38:41 -0800 From: Justin Meyer To: freebsd-questions@freebsd.org Message-ID: <20070220193841.GA94390@oracle.local.lan> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Organization: Absolutely None Subject: Can't upgrade misc/shared-mime-info X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: zhengyi@anarkismus.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Feb 2007 18:39:29 -0000 Hi all, I'm not sure if this should go to -ports, so I thought I'd start here. As part of a portupgrade, shared-mime-info-0.19 is supposed to be upgraded to -0.20. This is failing w/ a linker error, apparently like this: cc -O -pipe -march=athlon-xp -Wall -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -L/usr/local/lib -o update-mime-database update_mime_database- update-mime-database.o -L/usr/local/lib -lxml2 -lglib-2.0 -liconv /usr/local/lib/libxml2.so: undefined reference to `pthread_equal' gmake[1]: *** [update-mime-database] Error 1 gmake[1]: Leaving directory `/usr/ports/misc/shared-mime-info/work/shared-mime-info-0.20' gmake: *** [check-recursive] Error 1 *** Error code 2 Stop in /usr/ports/misc/shared-mime-info. What's bugging me here is that libxml2.so is *not* linked against pthread: # ldd /usr/local/lib/libxml2.so /usr/local/lib/libxml2.so: libz.so.3 => /lib/libz.so.3 (0x282bf000) libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x282d0000) libm.so.4 => /lib/libm.so.4 (0x283c0000) ... although strings shows me that there are nonetheless at least references to pthread_* functions in there: # strings /usr/local/lib/libxml2.so.5 |grep pthread_ pthread_mutex_init pthread_mutex_destroy pthread_mutex_lock pthread_mutex_unlock pthread_cond_init pthread_cond_destroy pthread_self pthread_equal ... I made a point of forcing a recompile of libxml2, making sure that I wasn't defining WITH_THREADS. Still no dice, so what gives? Can anyone tell me: 1) what's going on, and how to fix it? Or 2) what more info could I usefully provide about my system? or 3) that this should definitely go to -ports? :) Thanks! Justin