From owner-freebsd-ports@FreeBSD.ORG Mon Apr 28 20:12:38 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 B823337B401 for ; Mon, 28 Apr 2003 20:12:38 -0700 (PDT) Received: from ms-smtp-02.southeast.rr.com (ms-smtp-02.southeast.rr.com [24.93.67.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id D35A443F93 for ; Mon, 28 Apr 2003 20:12:37 -0700 (PDT) (envelope-from marcus@marcuscom.com) Received: from mail4.nc.rr.com (fe4 [24.93.67.51])h3T3ASgs021705; Mon, 28 Apr 2003 23:10:28 -0400 (EDT) Received: from creme-brulee.marcuscom.com ([66.57.17.158]) by mail4.nc.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Mon, 28 Apr 2003 23:14:36 -0400 Received: from [192.168.1.4] (shumai.marcuscom.com [192.168.1.4]) h3T39uaa084643; Mon, 28 Apr 2003 23:09:56 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Philip Paeps In-Reply-To: <20030429024257.GT643@juno.home.paeps.cx> References: <20030429002250.GM643@juno.home.paeps.cx> <1051577165.40488.5.camel@shumai.marcuscom.com> <20030429024257.GT643@juno.home.paeps.cx> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-5o2hXFzyS1pfUdaKO0pl" Organization: MarcusCom, Inc. Message-Id: <1051585952.41275.8.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.3.2 (Preview Release) Date: 28 Apr 2003 23:12:33 -0400 X-Spam-Status: No, hits=-39.4 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,QUOTE_TWICE_1,REFERENCES, REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) cc: freebsd-ports@freebsd.org 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 03:12:39 -0000 --=-5o2hXFzyS1pfUdaKO0pl Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2003-04-28 at 22:42, Philip Paeps wrote: > 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 l= ibxml2 > > > today. I keep getting errors like: > > >=20 > > > /usr/local/lib/libxml2.so: undefined reference to `pthread_cond_sig= nal' > > > [...] > > >=20 > > > I don't know what all changed on the box either, perhaps someone coul= d > > > point me in the right direction towards debugging this, and preferabl= y > > > fixing it :-) > >=20 > > 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 neede= d for > > libxml2. > >=20 > > If this is a port in the system, let me know which one is failing. >=20 > Mmm, it seems as though www/mod_php4 isn't compiling. It's giving the sa= me > errors as above. From work/php4.3.1/config.log: >=20 > configure:28839: cc -o conftest -O2 -pipe -I/usr/local/include -DHARD_SE= RVER_LIMIT=3D512 -DDOCUMENT_LOCATION=3D"/usr/local/www/data/" -DDEFAULT_PAT= H=3D"/usr/ local/bin:/bin:/usr/bin" -DACCEPT_FILTER_NAME=3D"httpready" -DMO= D_SSL=3D208114 -DEAPI -DEAPI_MM -DUSE_EXPAT -DNO_IDEA=20 > -L/usr/local/lib=20 > -R/usr/local/lib -L/usr/local/lib conftest.c -ljpeg -lz -lz -lcr= ypt -lssl -lcrypto -lm -lcrypt -lxml2 -lz -liconv -lm 1>&5=20 > /usr/local/lib/libxml2.so: undefined reference to `pthread_cond_s= ignal'=20 > /usr/local/lib/libxml2.so: undefined reference to `pthread_getspe= cific'=20 > /usr/local/lib/libxml2.so: undefined reference to `pthread_equal'= =20 > /usr/local/lib/libxml2.so: undefined reference to `pthread_once'=20 > /usr/local/lib/libxml2.so: undefined reference to `pthread_key_cr= eate'=20 > /usr/local/lib/libxml2.so: undefined reference to `pthread_mutex_= unlock'=20 > /usr/local/lib/libxml2.so: undefined reference to `pthread_self'=20 > /usr/local/lib/libxml2.so: undefined reference to `pthread_mutex_= destroy'=20 > /usr/local/lib/libxml2.so: undefined reference to `pthread_mutex_= lock'=20 > /usr/local/lib/libxml2.so: undefined reference to `pthread_cond_w= ait'=20 > /usr/local/lib/libxml2.so: undefined reference to `pthread_mutex_= init'=20 > /usr/local/lib/libxml2.so: undefined reference to `pthread_setspe= cific' >=20 > [Sorry about the long line] >=20 > 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. Joe >=20 > - Philip --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-5o2hXFzyS1pfUdaKO0pl 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+re2gb2iPiv4Uz4cRAm4LAJ4/cwN8g2FjK03GcP6EfN69Pcf40gCcDPdr t6yhic21ZiUvtEhwbg4jOmA= =vF3D -----END PGP SIGNATURE----- --=-5o2hXFzyS1pfUdaKO0pl--