From owner-freebsd-ports@FreeBSD.ORG Mon Apr 28 17:46:18 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 04FA137B401 for ; Mon, 28 Apr 2003 17:46:18 -0700 (PDT) Received: from ms-smtp-03.southeast.rr.com (ms-smtp-03.southeast.rr.com [24.93.67.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id E732343FBF for ; Mon, 28 Apr 2003 17:46:16 -0700 (PDT) (envelope-from marcus@marcuscom.com) Received: from mail4.nc.rr.com (fe4 [24.93.67.51])h3T0isMu012713; Mon, 28 Apr 2003 20:44:54 -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 20:48:13 -0400 Received: from [192.168.1.4] (shumai.marcuscom.com [192.168.1.4]) h3T0hTaa083684; Mon, 28 Apr 2003 20:43:29 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Philip Paeps In-Reply-To: <20030429002250.GM643@juno.home.paeps.cx> References: <20030429002250.GM643@juno.home.paeps.cx> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-yHSba0AEEI2hpgDKNjE9" Organization: MarcusCom, Inc. Message-Id: <1051577165.40488.5.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.3.2 (Preview Release) Date: 28 Apr 2003 20:46:05 -0400 X-Spam-Status: No, hits=-39.2 required=5.0 tests=BAYES_00,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 00:46:18 -0000 --=-yHSba0AEEI2hpgDKNjE9 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2003-04-28 at 20:22, Philip Paeps wrote: > For some obscure reason, I can't get anything to link properly with libxm= l2 > today. I keep getting errors like: >=20 > /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_destro= y' > /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' >=20 > I don't know what all changed on the box either, perhaps someone could po= int > me in the right direction towards debugging this, and preferably fixing i= t :-) 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. Joe >=20 > Things which were linked with libxml2 (such as PHP) die with errors like: >=20 > /usr/libexec/ld-elf.so.1: /usr/local/lib/libxml2.so.5: Undefined symbol= "pthread_once" >=20 > This might be a bit thin, but I've not found anything else so far. I man= aged > to get things to work again by simply not linking with libxml2, but in th= e > long run, that obviously doesn't solve the problem. >=20 > I've already portupgraded -Rf textproc/libxml2 without any sort of succes= s. >=20 > Thanks for any help. >=20 > - Philip [who's supposed to fix things others have broken *sigh*] --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-yHSba0AEEI2hpgDKNjE9 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+rctMb2iPiv4Uz4cRAt8IAJ4o0ktYlvAIfOUd2ik6emNV3j69qwCfcEGP i7rho2Or1WO7iOQe6r+ScEM= =a/Y2 -----END PGP SIGNATURE----- --=-yHSba0AEEI2hpgDKNjE9--