From owner-freebsd-ports@FreeBSD.ORG Mon Apr 28 19:43:00 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 219DA37B401 for ; Mon, 28 Apr 2003 19:43:00 -0700 (PDT) Received: from tartarus.telenet-ops.be (tartarus.telenet-ops.be [195.130.132.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id E86D943FB1 for ; Mon, 28 Apr 2003 19:42:58 -0700 (PDT) (envelope-from philip@paeps.cx) Received: from localhost (localhost.localdomain [127.0.0.1]) by tartarus.telenet-ops.be (Postfix) with SMTP id EC110DB94D for ; Tue, 29 Apr 2003 04:42:57 +0200 (CEST) Received: from fortuna.home.paeps.cx (D5768746.kabel.telenet.be [213.118.135.70]) by tartarus.telenet-ops.be (Postfix) with ESMTP id D16C1DB924 for ; Tue, 29 Apr 2003 04:42:57 +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 B109B2111 for ; Tue, 29 Apr 2003 04:42:57 +0200 (CEST) Received: by juno.home.paeps.cx (Postfix, from userid 1001) id 85808210C; Tue, 29 Apr 2003 04:42:57 +0200 (CEST) Date: Tue, 29 Apr 2003 04:42:57 +0200 From: Philip Paeps To: freebsd-ports@freebsd.org Message-ID: <20030429024257.GT643@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 02:43:00 -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. > > If this is a port in the system, let me know which one is failing. Mmm, it seems as though www/mod_php4 isn't compiling. It's giving the same errors as above. From work/php4.3.1/config.log: configure:28839: cc -o conftest -O2 -pipe -I/usr/local/include -DHARD_SERVER_LIMIT=512 -DDOCUMENT_LOCATION="/usr/local/www/data/" -DDEFAULT_PATH="/usr/ local/bin:/bin:/usr/bin" -DACCEPT_FILTER_NAME="httpready" -DMOD_SSL=208114 -DEAPI -DEAPI_MM -DUSE_EXPAT -DNO_IDEA -L/usr/local/lib -R/usr/local/lib -L/usr/local/lib conftest.c -ljpeg -lz -lz -lcrypt -lssl -lcrypto -lm -lcrypt -lxml2 -lz -liconv -lm 1>&5 /usr/local/lib/libxml2.so: undefined reference to `pthread_cond_signal' /usr/local/lib/libxml2.so: undefined reference to `pthread_getspecific' /usr/local/lib/libxml2.so: undefined reference to `pthread_equal' /usr/local/lib/libxml2.so: undefined reference to `pthread_once' /usr/local/lib/libxml2.so: undefined reference to `pthread_key_create' /usr/local/lib/libxml2.so: undefined reference to `pthread_mutex_unlock' /usr/local/lib/libxml2.so: undefined reference to `pthread_self' /usr/local/lib/libxml2.so: undefined reference to `pthread_mutex_destroy' /usr/local/lib/libxml2.so: undefined reference to `pthread_mutex_lock' /usr/local/lib/libxml2.so: undefined reference to `pthread_cond_wait' /usr/local/lib/libxml2.so: undefined reference to `pthread_mutex_init' /usr/local/lib/libxml2.so: undefined reference to `pthread_setspecific' [Sorry about the long line] I'm trying to figure out where in the configure script best to add the -pthread bit. - Philip -- Philip Paeps Please don't CC me, I am philip@paeps.cx subscribed to the list. You're all clear now, kid. Now blow this thing so we can all go home. -- Han Solo