From owner-freebsd-current@FreeBSD.ORG Tue Sep 23 22:49:52 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 654C816A4B3; Tue, 23 Sep 2003 22:49:52 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8337643FB1; Tue, 23 Sep 2003 22:49:51 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id h8O5nogG000545; Wed, 24 Sep 2003 01:49:50 -0400 (EDT) Date: Wed, 24 Sep 2003 01:49:50 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Michael Edenfield In-Reply-To: <20030924053413.GA28722@wombat.localnet> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: ports@FreeBSD.org cc: jb@FreeBSD.org cc: current@FreeBSD.org cc: Kris Kennaway Subject: Re: Initial list of ports that fail due to -pthread X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@FreeBSD.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2003 05:49:52 -0000 On Wed, 24 Sep 2003, Michael Edenfield wrote: > * Kris Kennaway [030923 22:21]: > > > Here is a partial list of the ports that need to be taught to respect > > PTHREAD_LIBS and PTHREAD_CFLAGS, from the latest 5.x package build (I > > just grepped for the "-pthread is deprecated" error message). None of > > One very important group of ports that should get looked at when this > gets worked out is KDE. Apparently, Qt uses a different means of > determining wether to use threading, than the ports that depend on it. > The qt-using ports appear to check for -lpthread, then c++ -pthread, and > if neither of those checks pass, disable threading: > > checking for pthread_create in -lpthread... no > checking whether c++ supports -pthread... no When libkse gets installed as libpthread, the above check will be different. But, if we want the thread library to be selectable by PTHREAD_LIBS, this isn't what you'd want if PTHREAD_LIBS != -lpthread. This was going to be the next hurdle to jump over. If FreeBSD wants to take the simple approach and only support one thread library in ports (-pthread == -lpthread) and not make it selectable via PTHREAD_LIBS, then its not a problem. It would be nice to be able to support all our thread libraries, but I grow weary. -- Dan Eischen