From owner-freebsd-current@FreeBSD.ORG Tue Sep 9 12:09:06 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F19D16A4BF; Tue, 9 Sep 2003 12:09:06 -0700 (PDT) Received: from postal3.es.net (postal3.es.net [198.128.3.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8765843FE0; Tue, 9 Sep 2003 12:09:05 -0700 (PDT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal3.es.net (Postal Node 3) with ESMTP (SSL) id MUA74016; Tue, 09 Sep 2003 12:09:02 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 9FF8C5D04; Tue, 9 Sep 2003 12:09:01 -0700 (PDT) To: Doug Barton In-Reply-To: Message from Doug Barton <20030909010434.H26496@znfgre.qbhto.arg> Date: Tue, 09 Sep 2003 12:09:01 -0700 From: "Kevin Oberman" Message-Id: <20030909190901.9FF8C5D04@ptavv.es.net> cc: freebsd-current@freebsd.org cc: Harald Schmalzbauer Subject: Re: -pthread deprecated, but when? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 19:09:06 -0000 > Date: Tue, 9 Sep 2003 01:07:46 -0700 (PDT) > From: Doug Barton > Sender: owner-freebsd-current@freebsd.org > > On Tue, 9 Sep 2003, Harald Schmalzbauer wrote: > > > On Tuesday 09 September 2003 06:23, leafy wrote: > > > IMO this deprecation deserves a place in UPDATING. And what are the > > > plans to Do The Right Thing? QT currently does not compile on -current > > > with the -pthread deprecated. > > Probably be nice to bump __FreeBSD_version too, just for fun. > > > Was port@ informed before the change? > > Yes. > > > I'm also very interested what the plans are to Do The Right Thing. > > The right thing to do is to file a PR when this stuff breaks. This > process will actually be a good thing, since ports should not have been > compiling on -current with -pthread for a long time now. > > BTW, several ports have already been fixed, and the fix is not > difficult. I do the following in my ports: > > @ ${CP} ${WRKSRC}/configure ${WRKSRC}/configure.Patched > @ ${SED} -e 's#-lpthread#${PTHREAD_LIBS}#g' \ > -e 's#malloc.h#stdlib.h#g' \ > ${WRKSRC}/configure.Patched > ${WRKSRC}/configure > > Any occurences of -lc_r should be changed to ${PTHREAD_LIBS} too. For which versions of FreeBSD? I just tried using ${PTHREAD_LIBS}, but the loader could not find any of the pthread routines. I assume it should be defined in one of the .mk files, but it does not seem to be on either a current (yesterday) or an older current (9/19). -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634