From owner-freebsd-current@FreeBSD.ORG Sun Sep 21 22:07:04 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 B21BA16A4B3 for ; Sun, 21 Sep 2003 22:07:04 -0700 (PDT) Received: from smtp.mho.com (smtp.mho.net [64.58.4.6]) by mx1.FreeBSD.org (Postfix) with SMTP id 8DA3B43F75 for ; Sun, 21 Sep 2003 22:07:02 -0700 (PDT) (envelope-from scottl@freebsd.org) Received: (qmail 27714 invoked by uid 1002); 22 Sep 2003 05:07:01 -0000 Received: from unknown (HELO freebsd.org) (64.58.1.252) by smtp.mho.net with SMTP; 22 Sep 2003 05:07:01 -0000 Message-ID: <3F6E8368.6000205@freebsd.org> Date: Sun, 21 Sep 2003 23:06:48 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Doug Barton References: <20030921083800.GB31793@freebsd1.cimlogic.com.au> <20030921125422.I22563@znfgre.qbhto.arg> In-Reply-To: <20030921125422.I22563@znfgre.qbhto.arg> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: Daniel Eischen cc: Freebsd Current Subject: Re: Fixing -pthreads (Re: ports and -current) 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: Mon, 22 Sep 2003 05:07:04 -0000 Doug Barton wrote: > On Sun, 21 Sep 2003, John Birrell wrote: > > >>On Sun, Sep 21, 2003 at 01:25:09AM -0700, Doug Barton wrote: >> >>>I am a little confused about one thing though. What is going to >>>happen to third party apps that use -pthread that aren't compiled >>>through the ports? >> >>They need to replace -pthread with their thread library of choice >>(e.g. -lc_r or -lpthread). > > > Errrr... I'm not sure this is an optimal solution. There is an awful > lot of software out there which expects -pthread to "just work." > Wouldn't it make more sense to default it to one thing or the other, > then make it configurable (isn't this what libmap.conf is supposed to > help with)? > > Doug > I have to agree with this. '-pthread' seems to have taken on the meaning of 'turn on whatever magic makes the pthreads library work'. The application writer is allowed to focus on the application, not the FreeBSD-specific threading library options. The user is allowed to compile a third-party app without having to worry about the FreeBSD-specific threading library options. Everyone wins. If we take the stand that any software that uses '-pthread' is broken and should be fixed by the author, it will make FreeBSD wildly unpopular. If we take the stand that the only sactioned way to compile a third-party app in FreeBSD is via the ports system, then FreeBSD will become much less usable. I've tried to stay silent on this issue in hopes that it would work itself out, but I'm not quite sure that it is. Making FreeBSD harder to use and harder to program for in the name of pendanticy is not the best direction. Scott