From owner-freebsd-ports@FreeBSD.ORG Tue Apr 29 12:28:52 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 EE0D037B401 for ; Tue, 29 Apr 2003 12:28:52 -0700 (PDT) Received: from horkos.telenet-ops.be (horkos.telenet-ops.be [195.130.132.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A12A43FBD for ; Tue, 29 Apr 2003 12:28:51 -0700 (PDT) (envelope-from philip@paeps.cx) Received: from localhost (localhost.localdomain [127.0.0.1]) by horkos.telenet-ops.be (Postfix) with SMTP id B0825841E1 for ; Tue, 29 Apr 2003 21:28:49 +0200 (CEST) Received: from fortuna.home.paeps.cx (D5768746.kabel.telenet.be [213.118.135.70]) by horkos.telenet-ops.be (Postfix) with ESMTP id 77E67840B6 for ; Tue, 29 Apr 2003 21:28:49 +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 3968020AA for ; Tue, 29 Apr 2003 21:28:49 +0200 (CEST) Received: by juno.home.paeps.cx (Postfix, from userid 1001) id 20B7220E3; Tue, 29 Apr 2003 21:28:49 +0200 (CEST) Date: Tue, 29 Apr 2003 21:28:49 +0200 From: Philip Paeps To: freebsd-ports@freebsd.org Message-ID: <20030429192849.GK643@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> <20030429024257.GT643@juno.home.paeps.cx> <1051585952.41275.8.camel@shumai.marcuscom.com> <20030429113159.GV643@juno.home.paeps.cx> <1051633366.326.7.camel@gyros> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1051633366.326.7.camel@gyros> 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 19:28:53 -0000 On 2003-04-29 12:22:47 (-0400), Joe Marcus Clarke wrote: > On Tue, 2003-04-29 at 07:31, Philip Paeps wrote: > > On 2003-04-28 23:12:33 (-0400), Joe Marcus Clarke wrote: > > > On Mon, 2003-04-28 at 22:42, Philip Paeps wrote: > > > > 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: > > > > > > > > [...] > > > > /usr/local/lib/libxml2.so: undefined reference to `pthread_setspecific' > > > > [...] > > > > > > > > I'm trying to figure out where in the configure script best to add the > > > > -pthread bit. > > > > > > You shouldn't need to. What does: > > > > > > xml2-config --libs > > > > > > report? It should contain -pthread. > > > > That gives me: > > > > (pub:/usr/ports/www/mod_php4)# xml2-config --libs > > -L/usr/local/lib -lxml2 -lz -pthread -L/usr/local/lib -liconv -lm > > -L/usr/local/lib > > > > For some reason, PHP doesn't seem to be picking it up though :-/ > > Yeah, I looked further at PHP's configure, and it explicitly filters out > -lc_r and -pthread. I add a flag to libxml2 to build it without thread > support. Rebuild libxml2 with -DLIBXML_WITHOUT_THREADS, and you should be > set with PHP. Thanks! That works :-) > I wonder if it would be okay to allow -pthread in mod_php (of course, > FreeBSD may prevent -pthread from being linked in to the final mod_php .so). I seem to recall that there was a reason for disabling pthread, at least on FreeBSD-4? - Philip -- Philip Paeps Please don't CC me, I am philip@paeps.cx subscribed to the list. If more than one person is responsible for a miscalculation, no one will be at fault.