From owner-freebsd-stable@FreeBSD.ORG Tue Jan 13 11:40:11 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64E9416A4CE for ; Tue, 13 Jan 2004 11:40:11 -0800 (PST) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07AE243D46 for ; Tue, 13 Jan 2004 11:40:00 -0800 (PST) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id E831F72DBF; Tue, 13 Jan 2004 11:39:59 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id E601772DB5; Tue, 13 Jan 2004 11:39:59 -0800 (PST) Date: Tue, 13 Jan 2004 11:39:59 -0800 (PST) From: Doug White To: Jozef Babjak In-Reply-To: <20040113063436.GA28270@neuron.tuke.sk> Message-ID: <20040113113739.W63732@carver.gumbysoft.com> References: <20040113063436.GA28270@neuron.tuke.sk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-stable@freebsd.org Subject: Re: undefined reference to pthread_cond_init during many ports compilation X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2004 19:40:11 -0000 On Tue, 13 Jan 2004, Jozef Babjak wrote: > I installed FreeBSD-4.9 Release, CVSup-ed system sources according to > /usr/share/examples/cvsup/stable-supfile and ports according to > /usr/share/examples/cvsup/ports-supfile yesterday. Updating by make > buildworld, make buildkernel, make installkernel and shutdown now and > make installworld was fine and without any errors. Now I'm trying to > install applications from CVSup-ed ports collection and lot of > installations ends with the same error (this one from > /usr/ports/graphics/gimp1): > > /usr/X11R6/lib/libXt.so: undefined reference to `pthread_cond_signal' > /usr/X11R6/lib/libXThrStub.so.6: undefined reference to `_Xthr_zero_stu > b_' > /usr/X11R6/lib/libX11.so: undefined reference to `pthread_cond_broadcas > t' > /usr/X11R6/lib/libXThrStub.so.6: undefined reference to `_Xthr_self_stu > b_' > /usr/X11R6/lib/libXt.so: undefined reference to `pthread_cond_init' > /usr/X11R6/lib/libXt.so: undefined reference to `pthread_mutex_unlock' > /usr/X11R6/lib/libXt.so: undefined reference to `pthread_self' > /usr/X11R6/lib/libXt.so: undefined reference to `pthread_mutex_destroy' > /usr/X11R6/lib/libXt.so: undefined reference to `pthread_mutex_lock' > /usr/X11R6/lib/libXt.so: undefined reference to `pthread_cond_wait' > /usr/X11R6/lib/libXt.so: undefined reference to `pthread_cond_destroy' > /usr/X11R6/lib/libXt.so: undefined reference to `pthread_mutex_init' There appear to be multipe issues here. XThrStub is getting pulled in, yet -lc_r wasn't selected so the pthread stuff is missing. Since you're building this from a port, it looks like the port is broken. Try updating the port and rebuilding. I'd have to see the command line (prior to the errors) to make sure the libraries were selected properly. > [babjak]{~}<7:32:39>uname -a > FreeBSD cronin.chtf.stuba.sk 4.9-STABLE FreeBSD 4.9-STABLE #0: Mon Jan 12 16:03:27 CET 2004 > root@cronin.chtf.stuba.sk:/usr/src/sys/compile/KERONIN i386 This all works on -current, but that has special handling WRT threads. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org