Date: 29 Apr 2003 12:22:47 -0400 From: Joe Marcus Clarke <marcus@marcuscom.com> To: Philip Paeps <philip@paeps.cx> Cc: freebsd-ports@freebsd.org Subject: Re: Loads of undefined reference to `pthread_foo` Message-ID: <1051633366.326.7.camel@gyros> In-Reply-To: <20030429113159.GV643@juno.home.paeps.cx> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-YB9TPDU8Ic9n+a1HWOho Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2003-04-29 at 07:31, Philip Paeps wrote: > On 2003-04-28 23:12:33 (-0400), Joe Marcus Clarke <marcus@marcuscom.com> = 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 th= e same > > > errors as above. From work/php4.3.1/config.log: > > >=20 > > > [...] > > > /usr/local/lib/libxml2.so: undefined reference to `pthread_setspe= cific' > > > [...] > > >=20 > > > I'm trying to figure out where in the configure script best to add th= e > > > -pthread bit. > >=20 > > You shouldn't need to. What does: > >=20 > > xml2-config --libs > >=20 > > report? It should contain -pthread. >=20 > That gives me: >=20 > (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 >=20 > 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. 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). Joe >=20 > - Philip =20 --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-YB9TPDU8Ic9n+a1HWOho Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQA+rqbWb2iPiv4Uz4cRAia7AJ9YLFgS640sViZjisFXhVIXyla1swCdFFEP zhBgtq/xtvYA13HrNPEbj8c= =hrsx -----END PGP SIGNATURE----- --=-YB9TPDU8Ic9n+a1HWOho--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1051633366.326.7.camel>