From owner-freebsd-stable Wed Aug 21 18: 0: 8 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D3C0137B400 for ; Wed, 21 Aug 2002 18:00:03 -0700 (PDT) Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D08743E6E for ; Wed, 21 Aug 2002 18:00:03 -0700 (PDT) (envelope-from archie@dellroad.org) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id RAA96251; Wed, 21 Aug 2002 17:51:02 -0700 (PDT) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g7M0oGB08579; Wed, 21 Aug 2002 17:50:16 -0700 (PDT) (envelope-from archie) From: Archie Cobbs Message-Id: <200208220050.g7M0oGB08579@arch20m.dellroad.org> Subject: Re: libc_r (-pthread) linking problem In-Reply-To: <1029976919.66786.7.camel@shumai.marcuscom.com> "from Joe Marcus Clarke at Aug 21, 2002 08:41:59 pm" To: Joe Marcus Clarke Date: Wed, 21 Aug 2002 17:50:16 -0700 (PDT) Cc: freebsd-stable@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Joe Marcus Clarke writes: > > I'm trying to link an application with a library (libpdel) that itself > > links against libc_r. However, the application fails to link: > > > > cc -O -pipe -D_THREAD_SAFE ... -pthread -o ... -L/usr/local/lib -lpdel -lexpat -lssl -lcrypto -lcrypt > > lws_tmpl_misc.o: In function `lws_tf_crypt_hash': > > lws_tmpl_misc.o(.text+0x3c3): undefined reference to `__pthread_read' > > main.o: In function `main': > > main.o(.text+0x21c): undefined reference to `__pthread_sigwait' > > /usr/local/lib/libpdel.so: undefined reference to `pthread_yield_np' > > /usr/local/lib/libpdel.so: undefined reference to `__pthread_connect' > > /usr/local/lib/libpdel.so: undefined reference to `__pthread_accept' > > /usr/local/lib/libpdel.so: undefined reference to `__pthread_detach' > > /usr/local/lib/libpdel.so: undefined reference to `__pthread_poll' > > /usr/local/lib/libpdel.so: undefined reference to `__pthread_write' > > *** Error code 1 > > > > This is on FreeBSD 4.6-stable as of today. This works fine on FreeBSD 4.5. > > I think you need to recompile libpdel for -stable. This should fix your > problem. Those symbols don't even exist in -stable. I built libpdel on Ack! You're right.. must be brain-dead today.. libpdel hasn't been rebuilt since upgrading this particular machine to -stable. Thanks & sorry for the noise... -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message