Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 51018 invoked by uid 500); 16 Feb 2001 01:45:36 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 50999 invoked from network); 16 Feb 2001 01:45:35 -0000 X-Authentication-Warning: kurgan.lyra.org: gstein set sender to gstein@lyra.org using -f Date: Thu, 15 Feb 2001 17:48:01 -0800 From: Greg Stein To: dev@apr.apache.org Subject: Re: threads on FreeBSD - disable? Message-ID: <20010215174801.F27443@lyra.org> Mail-Followup-To: dev@apr.apache.org References: <3A8C49C3.15EB4D5F@raleigh.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <3A8C49C3.15EB4D5F@raleigh.ibm.com>; from gregames@raleigh.ibm.com on Thu, Feb 15, 2001 at 04:27:31PM -0500 X-URL: http://www.lyra.org/greg/ X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N On Thu, Feb 15, 2001 at 04:27:31PM -0500, Greg Ames wrote: > rbb@covalent.net wrote: > > > > > So far it seems counterproductive to build a threaded APR app on > > > FreeBSD. I suggest that APR needs logic like the following: > > > > > > if FreeBSD: > > > if --enable-threads specified, > > > abort configure with an error message > > > else > > > configure without thread support > > > > > > Maybe other apps work fine (so far :) ) using threaded APR on BSD? > > > > > > Thoughts? It is pretty sucky to disable thread support, but it is > > > even worse to present it as working and end up tracking down weird > > > problems caused by the way we tickle the thread library or perhaps > > > just the thread library itself. > > > > I would suggest just putting this into hints.m4 for APR, so that we > > automagically disable threading on FreeBSD for anything before > > 4.2-STABLE. Rumor is that 4.2-STABLE has valid thread support. > > > > I wouldn't put much stock into this source of rumors. daedalus is on > 4.2-STABLE, and it's pretty hosed when you run Apache 2.0 prefork built > with threads enabled. Sounds like we should just flat out disable threading on FreeBSD until somebody can show otherwise. In other words, disable threading for *all* FreeBSD ports, then specifically enable revisions that are known to work. Does this disabling apply to OpenBSD and NetBSD, too? Note: it would also be best to have the *default* be disabled. If somebody uses --enable-threads (explicitly), then we ought to spit a warning out, but otherwise let them be. Maybe the person who passed --enable-threads to the command line knows something. Cheers, -g -- Greg Stein, http://www.lyra.org/