From owner-freebsd-threads@FreeBSD.ORG Sat Sep 20 08:20:24 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89C0116A4B3; Sat, 20 Sep 2003 08:20:24 -0700 (PDT) Received: from hex.athame.co.uk (guru164.netsonic.fi [194.29.193.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id A043E43FBF; Sat, 20 Sep 2003 08:20:23 -0700 (PDT) (envelope-from andy@athame.co.uk) Received: from vimes.int.athame.co.uk ([192.168.1.3]) by hex.athame.co.uk with esmtp (Exim 4.22) id 1A0jX4-0001aq-DP; Sat, 20 Sep 2003 18:20:22 +0300 From: Andy Fawcett To: deischen@freebsd.org, Daniel Eischen Date: Sat, 20 Sep 2003 18:20:21 +0300 User-Agent: KMail/1.5.4 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309201820.21929.andy@athame.co.uk> cc: threads@freebsd.org cc: Arjan van Leeuwen Subject: Re: [kde-freebsd] Compiling arts in -CURRENT without -pthread X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Sep 2003 15:20:24 -0000 On Saturday 20 September 2003 18:17, Daniel Eischen wrote: > On Sat, 20 Sep 2003, Andy Fawcett wrote: > > On Saturday 20 September 2003 17:53, Daniel Eischen wrote: > > > On Sat, 20 Sep 2003, Arjan van Leeuwen wrote: > > > > On Saturday 20 September 2003 12:56, Arjan van Leeuwen wrote: > > > > > Hi, > > > > > > > > > > I'm trying to compile arts (audio/arts) in -CURRENT. I > > > > > replaced -lpthread with ${PTHREAD_LIBS} in the ports' > > > > > configure script. This makes it recognize -lc_r correctly, > > > > > and it also uses that when building the port. > > > > > > > > > > However, after some time, the port will fail with these error > > > > > messages: > > > > > > > > (...) > > > > > > > > > How can all these pthread_* functions be undefined when it is > > > > > linking against -lc_r? > > > > > > > > I just discovered that it works without any errors when using > > > > -lkse instead of -lc_r. Aren't these two libraries supposed to > > > > be compatible? > > > > > > Yes, that's really strange. Are you sure that you have a correct > > > libc_r in /usr/lib? You seem to be building arts in the correct > > > manner, and -lc_r _should_ work. > > > > I've also seen the identical effect, FWIW, when I started making > > the post-pthread changes. Unfortunately I ran out of time to check > > further. > > > > I don't do anything special with the world build, so I don't know > > what the problem is. > > I think the problem might be with libstool^Wlibtool. Take a > look at the libtool that the build is using (from my experience > some of these ports use the system's installed libtool, others > use their own libtool). See if it handles -lc_r specially. KDE uses its own version. I know this from several years of KDE experience. A. -- Andy Fawcett | andy@athame.co.uk | tap@kde.org "In an open world without walls and fences, | tap@lspace.org we wouldn't need Windows and Gates." -- anon | tap@fruitsalad.org