From owner-freebsd-ports@FreeBSD.ORG Mon Apr 28 18:34:45 2003 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 30E4537B401 for ; Mon, 28 Apr 2003 18:34:45 -0700 (PDT) Received: from eos.telenet-ops.be (eos.telenet-ops.be [195.130.132.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00DD443F75 for ; Mon, 28 Apr 2003 18:34:44 -0700 (PDT) (envelope-from philip@paeps.cx) Received: from localhost (localhost.localdomain [127.0.0.1]) by eos.telenet-ops.be (Postfix) with SMTP id 0BDBF1FF18 for ; Tue, 29 Apr 2003 03:34:43 +0200 (CEST) Received: from fortuna.home.paeps.cx (D5768746.kabel.telenet.be [213.118.135.70]) by eos.telenet-ops.be (Postfix) with ESMTP id EE5481FF12 for ; Tue, 29 Apr 2003 03:34:42 +0200 (CEST) Received: from juno.home.paeps.cx (juno.home.paeps.cx [2001:ab8:2007:0:240:f4ff:fe31:3090]) by fortuna.home.paeps.cx (Postfix) with ESMTP id BCB4C2103 for ; Tue, 29 Apr 2003 03:34:42 +0200 (CEST) Received: by juno.home.paeps.cx (Postfix, from userid 1001) id 8171C210C; Tue, 29 Apr 2003 03:34:42 +0200 (CEST) Date: Tue, 29 Apr 2003 03:34:42 +0200 From: Philip Paeps To: freebsd-ports@freebsd.org Message-ID: <20030429013442.GO643@juno.home.paeps.cx> Mail-Followup-To: freebsd-ports@freebsd.org References: <20030429002250.GM643@juno.home.paeps.cx> <1051577165.40488.5.camel@shumai.marcuscom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1051577165.40488.5.camel@shumai.marcuscom.com> X-Date-in-Rome: ante diem III Kalendas Maias MMDCCLVI ab Urbe Condida X-PGP-Fingerprint: FA74 3C27 91A6 79D5 F6D3 FC53 BF4B D0E6 049D B879 X-Message-Flag: Get a proper mailclient! Mutt: User-Agent: Mutt/1.5.4i Subject: Re: Loads of undefined reference to `pthread_foo` 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: Tue, 29 Apr 2003 01:34:45 -0000 On 2003-04-28 20:46:05 (-0400), Joe Marcus Clarke wrote: > On Mon, 2003-04-28 at 20:22, Philip Paeps wrote: > > For some obscure reason, I can't get anything to link properly with libxml2 > > today. I keep getting errors like: > > > > /usr/local/lib/libxml2.so: undefined reference to `pthread_cond_signal' > > [...] > > > > I don't know what all changed on the box either, perhaps someone could > > point me in the right direction towards debugging this, and preferably > > fixing it :-) > > libxml2 as of 2.5.7 has thread supported enabled by default. Therefore, you > need to link in -pthread on -STABLE or -lc_r on -CURRENT. If you're > building your own app, you should be using either pkg-config --libs > libxml-2.0 or gnome-config --libs libxml-2.0 to get the libraries needed for > libxml2. Ah, thanks for the hint, I located the problem :-) This machine has loads of things compiled manually instead of entrusting them to the ports with proper dependencies listed. Both internal things and things which are in the 'real' ports tree. I just put up thttpd with a little blurb telling $USER that I'm fixing things, and am now rebuilding all these things from the ports as they should have been in de first place. > If this is a port in the system, let me know which one is failing. It's the fatal mix of ports and non-ports which is causing pain. Portupgrade upgraded libxml but not the sepparately installed Apache/PHP and the internal muck. Thanks again! - Philip [compile compile] -- Philip Paeps philip@paeps.cx +32 486 114 720